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

I am creating a skill value in AD&D that possibly goes over 20. How can I cap the value at say 19? Is it max(some calculation | 19)?

I am creating a skill value in AD&D that possibly goes over 20. How can I cap the value at say 19? Is it max(some calculation | 19)?
1488224813
The Aaron
Pro
API Scripter
Where are you trying to do this?  In a dice expression, it would be something akin to: /r 1d20+{19,@{selected|stat}}kl1
1488226845

Edited 1488226959
My string is below &{template:default} {{name=BARKA makes a HORSE SPECIALIZATION RIDING Check}} {{A roll of [[19,{@{BARKA|WIS}+@{BARKA|Horse Specialization Riding}}]] or less is successful}}KL1]] /roll 1d20<[[@{BARKA|WIS}+@{BARKA|Horse Specialization Riding}]] It works! Thanks!
1488227241
The Aaron
Pro
API Scripter
Wow, I'm actually a bit surprised that works...
SORRY MISCOPIED. Just checked that this works &{template:default} {{name=BARKA makes a HORSE SPECIALIZATION RIDING Check}} {{A roll of [[19,{@{BARKA|WIS}+@{BARKA|Horse Specialization Riding}}]KL1]] or less is successful}} /roll 1d20<[[@{BARKA|WIS}+@{BARKA|Horse Specialization Riding}]]
I recommend adding the {}kl1 function to your /roll: &{template:default} {{name=BARKA makes a HORSE SPECIALIZATION RIDING Check }} {{A roll of [[ {19, @{BARKA|WIS} + @{BARKA|Horse Specialization Riding}}kl1 ]] or less is successful }} /roll 1d20<[[ {19, @{BARKA|WIS} + @{BARKA|Horse Specialization Riding}}kl1 ]]
Thank you! I missed that! With < the value on the second line would be 20, not 19.  Again thanks
1488231026

Edited 1488231070
Andy K. said: With < the value on the second line would be 20, not 19. Actually, Roll20 uses inequality operators inclusively, e.g. < functions as ≤ For more information, check out: Target Number (Successes)