Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Pathfinder 2E Roll Query Attack Roll

Hello, I'm a macro novice. I read the example of the Roll Query on the Wiki and created my own. However, I don't know how to get it to trigger an attack. For example, I created a simple macro to make an attack with a longsword on a selected token: %{selected|repeating_melee-strikes_$0_ATTACK-DAMAGE} However, once I attempt to imbed that attack in my Roll Query based on the Wiki, it breaks. I feel like it should replace the bold '1st Attack' in Line 4, since I'm clicking the 1st Attack button to trigger, but no dice. What am I doing wrong? Any help would be greatly appreciated. Here is the Roll Query in question: ?{Attack|    Melee, ?{Melee|      Longsword, ?{Longsword |         1st Attack , 1st Attack |         2nd Attack , 2nd Attack |         3rd Attack , 3rd Attack } |     Dagger, ?{Dagger|         1st Attack, 1st Attack|          2nd Attack, 2st Attack|          3rd Attack, 3rd Attack} |              Unarmed Strike, ?{Unarmed Strike|       1st Attack, 1st Attack|          2nd Attack, 2st Attack|          3rd Attack, 3rd Attack} |    } |    Ranged, ?{value2|value2} 
1692523670
Gauss
Forum Champion
Hi Manfromleng,  In short, don't do what you are trying to do. It is a nightmare to use HTML substitution on that many macro templates.  What you are doing is trying to call a template within a query, so you have to substitute all of the control characters inside the template, which I am guessing you are not doing since you are probably calling an attack directly from the sheet.  Instead, use a Chat Menu . This will be vastly simpler to set up.