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

Minimum roll of Constitution Modifier, then add Constitution Modifier - help request

In our game, NPCs have a minimum hit dice rolls of their Con Mod but when I try to script it, the < sign gives less than or equal to.  Is there a way to script this to give rerolls only if less Con Mod for the rolls? [[ (20)d8r<@{selected|constitution_mod} + @{selected|constitution_mod}*(20) ]] Thank you!
1695571902

Edited 1695572059
GiGs
Pro
Sheet Author
API Scripter
InRoll20 the < really does mean less than or equal to. If you want to use a true less than, you need to subtract 1 from the comparison target. Try something like this: [[ ?{How Many Dice?|20}d8r<[[@{selected|constitution_mod} -1]] + @{selected|constitution_mod}*?{How Many Dice?} ]]
Thank you! :)