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

How do i make this success macro work?

How do I make something like this work? /r 1d100+260+60>280+?{|0} Where you take the "1d100+260+60" and check if its bigger then the "280+?{|0}" part? The only way I was able to make the success macro work with stuff other then /r 1d10>10 was /r 1d10>10+20 but then it only uses the last part in this case 20 also if you put anything at all between the 1d10 and the ">" it doesn't seem to work
At the moment, <'s, >'s, ='s or any if/than/else statements don't funciton with macros, but they do with the API if you make a script that will make it happen!
Michael The '&gt;' should work. See the wiki for more info <a href="https://wiki.roll20.net/Dice_Reference" rel="nofollow">https://wiki.roll20.net/Dice_Reference</a> I think that you cant have the +?{0} after the target number but you should be able to subtract it from the other side of the equation.
1388344047

Edited 1388344212
GiGs
Pro
Sheet Author
API Scripter
There are two steps you need. First, put the bit after the "&gt;" in an inline roll. /r 1d100+260+60&gt;[[280+?{|0}]] On its own, this still doesn't work. You now need to put the bit before the "&gt;" in a group /r {1d100+260+60}&gt;[[280+?{|0}]] Make sure there are no spaces either side of the "&gt;" I dont know why Emile said "&gt;" dont work in macros. You cant do If/Then statements but the comparison operators do work.
Thanks a bunch G G this has helped me a ton!
1388344809
GiGs
Pro
Sheet Author
API Scripter
Glad I could help :)
Argh, no if / then statements : (
1389328555
GiGs
Pro
Sheet Author
API Scripter
Yes, that's a real pain. You're a mentor though, the API is available to you and if/then is supported there.