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

A macro that says roll 2d6 and if the total is equal to or less than 8, its a success

I've seen some useful macros that show me how to roll 2d6 and if the total is equal to or greater than 8, its a success, but not less than, {2d6,0d0}>8 will tell you if the result of both 2d6 is equal to or greater than 8, however: {2d6,0d0}<8 will tell you if each dice rolled is less than 8 and not the total of both dice The full Macro will look something like: &{template:atkdmg} {{rname=Leadership Check}}  {{damage=1}} {{dmg1flag=1}} {{dmg1=[[{2d6,0d0}<?{Leadership}]]}} {{dmg1type=Pass}} My only work around is this &{template:atkdmg} {{rname=Leadership Check}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[{2d6,0d0}>[[?{Leadership}+1]]]]}} {{dmg1type=Failed}} By using > and adding +1 it will show me when the roll fails instead of passes Can anyone suggest what I might be doing wrong.
{2d6,0d0}<8 is checking the sum not the individual dice, however 0d0 is always going to be lower than 8 (and 2d6 will frequently be <= 8) For less than or equal comparisons the dummy value needs to be higher than the target. So you need {2d6,13+0d0}<8 This would check if the 2d6 total is less than or equal to 8. For less than 8 you need to compare vs [[8-1]] This is an open suggestion to rewrite the dice roller to (among other things) make such group comparisons easier. So you might want to upvote it.
1680366958

Edited 1680367367
Ooohhhhhhhh, yea that makes a lot of sense. Awesome!! Thanksies.  The check needs to be equal to or less than their leadership, which meant that my work around couldn’t be equal to their leadership but greater than (hence the +1) I do a lot of my coding running on sleep deprivation and coffee…..I’m also not a coder 🤣