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

Rolling multiple sets of dice at once

March 02 (11 years ago)
Is there a way to roll multiple, identical rolls at once? When my group was playing in IRC, we could use /roll 4[1d20+5] to generate 4 d20 rolls at once, and get individual results. So far, all I can figure out here is to /roll 1d20+5 four times, which seems a bit clunky to me. I've looked at the dice reference page on the wiki, and nothing seems to be what I'm looking for - it all seems to handle more complex situations. If I'm missing something, or someone knows of a workaround, please, help!
March 02 (11 years ago)
Currently, no... not using /roll... but you can use inline rolls. [[1d20+4]] | [[1d20+4]] | [[1d20+4]] | [[1d20+4]]
Sorry Chuck, there's no looping mechanic in the macro system (repeating rolls). You won't be able to automate the number of rolls, but you can make make the modifier more flexible at least.

[[ 1d20 + ?{Modifier|0} ]] [[ 1d20 + ?{Modifier|0} ]] [[ 1d20 + ?{Modifier|0} ]] [[ 1d20 + ?{Modifier|0} ]] all on the same line would give you four rolls and only ask you for the modifier once. (using a query with the exact same name multiple times will just re-use the original input)

Of course, if the modifier is coming from a Player Sheet attribute or other referenced value, you can just refer to that instead.
March 02 (11 years ago)
If the roll is not set up as a macro and you just want to repeat the same roll again you can also use the up arrow key. So for example if you just typed in /r 1d20+5 you can then hit the up arrow and the same command will appear then just enter, you can scroll up through all your previous rolls for that session if you wish.
March 02 (11 years ago)
Paladintodd
KS Backer
Cool trick, thanks John.
March 02 (11 years ago)
Yeah, John, that's what I'm using right now, but it just felt clunky, and I was hoping that there would be a more elegant solution. Thanks for the help, everyone!
March 02 (11 years ago)

Chuck said:

Yeah, John, that's what I'm using right now, but it just felt clunky, and I was hoping that there would be a more elegant solution. Thanks for the help, everyone!

Since you're a mentor, you can use API scripts. There's two scripts out there right now that allow you to repeat rolls. Mine is far more involved though, with power card formatting and everything whereas the Roll Repeater script is much simpler.
March 02 (11 years ago)
I will look into that... I'm a little bit intimidated by API scripts, but I will look into it.
March 02 (11 years ago)
The Roll Repeater is much easier to use. Mine... is very involved, but makes really pretty power cards that can handle any number of custom tags, multiple attack rolls, multiple damage rolls, and more. ^_^

Though really... a simple roll repeat option built in for dice rolling without the API would be nice.