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

comparing attributes, taking lower?

Okay, so I have a game where damage boxes being checked creates a variable penalty. (-1 and -2 respectively)  I want to be able to set the roll macro to take the two attributes, compare them and take the lower of the two. Is this possible?
1489152503

Edited 1489152522
The Aaron
Pro
API Scripter
Something like this should work: [[ 1d20 + {@{attr1},@{attr2}}kl1 ]]
1489153329

Edited 1489153366
perfect, now I don't have to beg the sheet designer to change how the damage boxes work. THANKS SO MUCH.
1489153676
The Aaron
Pro
API Scripter
No problem!  Happy Rolling!