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

Macro for roll with Modifier against a DC

Dear Community, I tried to create a Macro for my players that includes the roll of 3d6 with a modifier and a DC I tell them for the roll I would like it if the macro then checks if the dice+modifier is equal or greater than the DC and goes on to say that it's an (un- or) successfull roll. What I came up with is this: /me rolls /roll [[3d6+?{Modifier|0}]]>?{Difficulty Class|12} But the macro doesn't give out the counted successes that a normal /r 3d6+x>y would give you. I only have the square brackets in there because I read on a different topic that they might help, but they don't. I would really appreciate if someone more capable than I was able to help me.
1439401749

Edited 1439405616
One of these might accomplish what you'd like to do /me rolls /roll {3d6 + ?{Modifier|0}, 0d0}>?{Difficulty Class|12} /me rolls /roll {[[3d6]] + ?{Modifier|0} + d0cs}>?{Difficulty Class|12} A bit of guiding documentation.
You'll often find that any rolls or calculations on the right side of a Success/Fail comparison runs into problems. You generally have a better time checking against a static value. /roll 3d6+?{Modifier|0} - ?{Difficulty Class|12} > 0
1439454220
Ziechael
Forum Champion
Sheet Author
API Scripter
Mark G. said: You'll often find that any rolls or calculations on the right side of a Success/Fail comparison runs into problems. You generally have a better time checking against a static value. /roll 3d6+?{Modifier|0} - ?{Difficulty Class|12} > 0 That is inspired Mark, i've regularly banged my head against the desk/wall/through a nearby window when trying to get successes to work as desired using a variable check... that particular trick is going in my big box o'tricks filed under 'Mark the Genius'.
Thank y'all so much for your help! I really appreciate it!
No worries NiKO. That's what the Roll20 Community is for (and one of the big reasons it's as popular as it is.)