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 .
×

Cap on roll results?

Hey folks! Was wondering if it's possible to limit the result of a roll, so for example, roll d20, and the result can't be higher than 6 Is there a way to achieve that without scripts? If not, has anyone wrote such a script? Thanks in advance
1594730441
GiGs
Pro
Sheet Author
API Scripter
Yes, there's the drop highest operator: /roll {1d20,6+0d0}dh the dh operator requires all values to be of the same type. If one is a die roll, the other must also be a die roll. The +0d0 tricks roll20 into treating the 6 as a dice roll, so the expression works.
Thank you for the reply! I tried the command, unfortunately it doesn't seem to work, I've tried swapping parameters around, and tested the dh command with just {1d20}dh - It didn't work
1594809000

Edited 1594809008
GiGs
Pro
Sheet Author
API Scripter
oops i missed the 1 off the end. It should be /roll {1d20,6+0d0}dh1