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

"Lesser of" in roll check

I have a simple skill check roll button like so: [[d100<@{total}]] However the best a skill can be is 98%, so I want to check against `total` or 98, whichever is lower. Is this possible?
1627188399
Kraynic
Pro
Sheet Author
I think this would work.  [[1d100<[[{@{total},98}kl1]]]]
Thanks! This works great. Can you point me to where the "kl1" bit is documented? I can't seem to find it anywhere.
1627238894
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
<a href="https://help.roll20.net/hc/en-us/articles/360037773133-Dice-Reference#DiceReference-Drop/Keep" rel="nofollow">https://help.roll20.net/hc/en-us/articles/360037773133-Dice-Reference#DiceReference-Drop/Keep</a>
Thanks!