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

Capped Exploding Dice?

Is there a means of capping the number of times a die roll may explode consecutively or otherwise setting a maximum value for a given roll?


e.g.: roll 1d6 exploding on 6 up to 3 times (giving a maximum possible roll of 24)

or

e.g.: roll 1d6 exploding on 6. Maximum value of 24.

November 12 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

You cant cap the number of rerolls, but you can set a maximum (it'll just keep rerolling and ignore anything past the maximum). Do do this you need to use the kl operator (keep lowest), something like

/roll {1d6!,24+0d0}kl1

You enclose the expression in { } and separate each element with a comma. You'd think you could do it this way:

/roll {1d6!,24}kl1

But a limitation of roll20 is that you cannot mix rolls and numbers. you have to trick the system into thinking that24 is a roll, which you do by adding the roll 0d0 (which is always equal to 0).


Your solution works perfectly. Thank you.