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

"Roll under" macro with modifiers

Hello all, I'm trying to create a "roll under" D20 roll macro using the critical success range as a synonymous to "success" in this case. I don't want the result to show "x successes" since I don't pretent do more than 1d20 per roll, I just wanted the green outline to be showed. It's curently like this: &{template:default} {{name=Sword}}{{[[1d20cs<@{Str}+2+?{Modifier}]]}} My problem is: the modifiers (+2 and also the querie) are interfering with the total. All I want here is to roll a D20 with no modifiers and compare it to a "target number", then show a fail/success result using the "<" formula. In other words, I want the original d20 roll to appear at the chat screen as a "success" or a "failure", just as a normal "critical succes" would (outlined in green or red). How can I improve this? Also, how can I make a roll under d20 roll make sense in this case without the "cs" command?
1627934559

Edited 1627934574
timmaugh
Roll20 Production Team
API Scripter
You can nest and re-use your rolls... &{template:default}{{name=Sword}}[[[[1d20cs<@{Str}]]+2+?{Modifier}]]{{Roll=$[[0]] + [[2 + ?{Modifier}]] = $[[1]]}} That would give you the first/base roll with the green box if you make it, followed by the modifiers, followed by the total. Still fairly easy to read, visually.