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

Can you limit the maximum result of a roll?

I am looking for a way to limit the maximum result of a roll, regardless of bonuses, to 15. So if you get 12, you get 12. If you get 15, you get 15. If you get 42, you get 15. Is there a way to do that without scripts?
1453776323

Edited 1453776444
Silvyre
Forum Champion
Yup; group the roll with your maximum within a keep/drop function. (Note that you might have to use 15+0d0 instead of 15 to prevent an error.)
[[{1d100, 15 + 0d0}DH1]]
1453777072
Lithl
Pro
Sheet Author
API Scripter
Silvyre said: Yup; group the roll with your maximum within a keep/drop function. (Note that you might have to use 15+0d0 instead of 15 to prevent an error.) Yes, a group has to all be the same expression type, either a dice expression or a math expression. So {100, 15}kl1 is fine, {d100, 2d10}kl1 is fine, and {d100, 0d0 + 15}kl1 is fine, but {d100, 15}kl1 is an error.
Excellent! I thank you all.