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

Need a macro that can roll up to 9 individual attack rolls at once

im doing some mass combat and I would like to create a macro that I can press once and get 9 totals from.  The gnolls have +3 to hit so I need 9 d20 rolls with +3 added to each one but not have them all add up I tried... /roll [1d20+3]1d20+3]1d20+3]1d20+3]1d20+3]1d20+3]1d20+3]1d20+3]1d20+3] but it didnt work
1579312284
GiGs
Pro
Sheet Author
API Scripter
All those closing brackets with no corresponding open brackets will cause an error. Try [[1d20+3]] [[1d20+3]] [[1d20+3]] [[1d20+3]] [[1d20+3]] [[1d20+3]] [[1d20+3]] [[1d20+3]] [[1d20+3]] or, for a prettier layout &{template:default} {{name=Gnoll Attack Rolls}} {{[[1d20+3]] [[1d20+3]] [[1d20+3]] [[1d20+3]] [[1d20+3]] [[1d20+3]] [[1d20+3]] [[1d20+3]] [[1d20+3]]}}
1579313107

Edited 1579313667
GiGs
Pro
Sheet Author
API Scripter
Here's a complex macro that will ask you what you're rolling for, then the attack bonus, then the number of rolls to make (up to 9) and will roll them all. Output will look like this The Macro: !?{What Are You Rolling For?|Attack Rolls} ?{Attack Bonus?|0} &amp;{template:default} {{name=?{What Are You Rolling For?}}} {{?{Number Of Attacks?| 1, [[1d20+?{Attack Bonus? &amp;#125; ]]| 2, [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]] | 3, [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]] | 4, [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]] | 5 , [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]] | 6 , [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]] | 7 , [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]] | 8, [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]] | 9, [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]&nbsp; [[1d20+?{Attack Bonus? &amp;#125; ]]} }} IMPORTANT WARNING: Because of the way roll20 works, if you save this is a macro, you must never open the edit screen for that macro . If you do, it will break.&nbsp; It's a good idea to save a copy in a character ability - Abilities do not suffer from this problem. Saving a copy means if you ever go to edit the macro, and break it, you can restore it from your backup and save it again. For more on the problem and how this works, see here:&nbsp; <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries</a> But you don't need to understand that - just save the macro, and dont open it again. Just click the button when you want to use it and you're good.