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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
So, thanks to the Holy Ice spell, I get to make a dozen attacks at once. Short of making a macro with exactly how many rolls I need, is there any other way to handle this? Like /r 10(1d20+x)?
So you do or you don't know exactly how many attacks you get? If you know it's twelve attacks (in other words you're not saying "a dozen" meaning "a lot"), and the die is d20, what is the problem with a macro? If you're talking about a variable number of attacks, you'd be best off making a set of macros like 1d20,2d20,3d20,4d20, 5d20 and 10d20 and just using arithmetic.
The problem with ?d20 is that it sums up the total of the d20s. I need something to do, say, 1d20+8 12 times, displaying each result separately. I guess the only way is a 12-line macro... ugh. Is there at least a way I can insert a variable once and use it all through the macro? As in, define "X" early on, and make all 12 attacks 1d20+X?
If you use ?{modifier|0} for every instance of "X" or any other same-same named variable call in a single multi line macro they are all read as the same number imputed once. So you could use /r 1d20+?{X|0} and type that 12 times, but the prompt box will just have X:0 in it and might not be very helpful. Hope this streamlines things for ya.
If you end up just listing the rolls out, don't forget that you can roll those inline to save some screen space. When you use roll queries of the same name, it only prompts you once and uses that input for all instances of that query name used. (as the fearsome Alpaca described) Macro Text [[ 1d20 + ?{Modifier|0} ]] | [[ 1d20 + ?{Modifier|0} ]] | [[ 1d20 + ?{Modifier|0} ]] | [[ 1d20 + ?{Modifier|0} ]] [[ 1d20 + ?{Modifier|0} ]] | [[ 1d20 + ?{Modifier|0} ]] | [[ 1d20 + ?{Modifier|0} ]] | [[ 1d20 + ?{Modifier|0} ]] [[ 1d20 + ?{Modifier|0} ]] | [[ 1d20 + ?{Modifier|0} ]] | [[ 1d20 + ?{Modifier|0} ]] | [[ 1d20 + ?{Modifier|0} ]] Results in: User Prompted a single time for "Modifier", using 0 as the default value if you just hit enter Output in Chat : 12 | 15 | 9 | 20 17 | 11 | 11 | 18 19 | 23 | 16 | 9
/roll {?{Number of dice|0}d20 + ?{Modifier|0}} > ?{Target Number|0} It asks for the number of dice (how many attacks you have), the modifier to the roll, and the number you need to beat (ask your GM/DM). It'll tell you how many attacks hit. You can
You could use: /roll {?{Number of Dice|0}d20 +(?{Modifier|0}*?{Number of Dice|0}) if you don't want to multiply the modifier by the number of dice in your head...