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

Cap of a dice result

1594275924
Tealk
Pro
Sheet Author
Hello, I'd like to work with exploding dice but cap the end result. For example 3d10! but the result should not exceed 40. Thanks for your help Tealk
1594278770
Oosh
Sheet Author
API Scripter
Something like this should do the trick: /r {3d10!,1d0+40}kl1 You can also write the second roll as "40d1" (or some other ways) but it will take up more chatbar. Or, if you want something with Queries: /r {?{Number of dice?|3}d10!,1d0+?{Cap?|40}}kl1
1594280490

Edited 1594281694
Tealk
Pro
Sheet Author
super thanks, awesome idea only disadvantage is that now a Critical Success is always displayed here's what I would have tried: [[{3d10!,1d0>1+40}kl1]] but I cannot mix sum and success rolls in a roll group //Edit The solution was actually very simple: [[{20d10!,{40}}kl1]]