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

Attack macros

Soo here's what I've been trying to do.  Make a macros,  with a nice drop down menu that can be used for x amount of attacks I want to make with an additional prompt to make up for any potential buffs. I've tried several variations,  and though this is not what my final looked like,  thus is the closest I can think of making it work.  [[?{Number of attacks|1, [[1d20+@{INT}+@{Half Level}+@{Enhancement}+@{Expertise}]]|2, [[1d20+@{INT}+@{Half Level}+@{Enhancement}+@{Expertise}]] [[1d20+@{INT}+@{Half Level}+@{Enhancement}+@{Expertise}]] |3, [[1d20+@{INT}+@{Half Level}+@{Enhancement}+@{Expertise}]] [[1d20+@{INT}+@{Half Level}+@{Enhancement}+@{Expertise}]]}+?{Attbonus|0}]]   Thanks for any help!!
1496570231

Edited 1496570310
Ziechael
Forum Champion
Sheet Author
API Scripter
Hi TC, what specifically doesn't work. It looks pretty solid to me unless you are wanting to add the buff to ALL potential attacks instead of just as a value at the end? If so then just move the query to the end of each attack iteration. Also, your value for 3 attacks is lacking one of the attacks...
1496587504

Edited 1496587613
The issues you're running into are explained in Advanced Usage for Roll Queries . You might be able to avoid Advanced Roll Query stuff by using a Grouped Roll : Attacks that hit: [[ {?{Number of attacks|1}d20 + @{INT} + @{Half Level} + @{Enhancement} + @{Expertise} + ?{Attbonus|0}}>@{target|AC} ]]