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

Roll 2d6, compare total to a number?

1414736724
Gen Kitty
Forum Champion
Playing in a game Friday night where the mechanic is roll 2d6 and compare that result to a target number. Without API can I make a dice macro for this?
1414746771
DXWarlock
Sheet Author
API Scripter
would [[2d6?{number|1}]] do what you need?
1414748067
Gen Kitty
Forum Champion
I think your formula there is missing something. That just makes me roll 2d61, not at all what I'm trying to do.
1414761970

Edited 1414761979
Gauss
Forum Champion
Here you go: (6 is just an example target number) /r {2d6, 0d0}>6
1414785407
Gen Kitty
Forum Champion
Thank you, Gauss.
1414871057

Edited 1414871479
DXWarlock
Sheet Author
API Scripter
ahh yea sorry I forgot the '>' when typing. That was important :) Wasn't sure if you meant compare the result to target as in "compare each result". Now I saw gauss's I didn't think of "total sum". so for each its: [[2d6>?{number|1}]] or like gauss already said for total sum vs result: [[{2d6, 0d0}> ?{number|1} ]] First will give you total results for each dice (2 successes, etc) the other gauss gave gives sum results. whichever you're going for.