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

Sum Dice roll and compare to result

probably a very simple one but for some reason i cant work it out, i want to roll 2D10  (5+6) and then compare the result total added together to something else i dont care about the results of the individual dice just want the total, i have tried /roll  [[2D10]]>[[(10-5)]] and a few others i am sure its simple but just cant find the right info.
1539895494
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Try this (not sure it will work, but it might): /roll {[[2d10]],[[0d0]]}>[[10-5]]
great thanks, works perfect, now need to find a way of dealing with negative numbers, the [[10-5] comes from stats and modifier , and can read those directly but sometimes the value can be negative , and the macro doesnt run,.
1539896242
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
so, if that is negative, then it would always be a success correct? Then you could do this: /roll {[[2d10]],[[0d0]]}>[[{10-5,0}kh1]]
pretty much , trying to wrap it into the full macro , getting lost in the brackets though /me evasion [[{[[2d10]],[[0d0]]}>{[[?{Speed|10}-@{Ghrom|Evasion|max})]],3}k1]] trying to unwind it so the minimum of the x-y sum is always 3
1539897595
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
take the inline roll off of the target number, and you need to specify that you are keeping the highest: /me evasion [[{[[2d10]],[[0d0]]}>[[{?{Speed|10}-@{Ghrom|Evasion|max},3}kh1]] ]]
thanks so much for that , really appreciate the help.