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 .
×
This post has been closed. You can still view previous posts, but you can't post any new replies.

Macro question

So far I haven't come across an answer for this. I'm looking to make a macro that rolls dice and then outputs a success/fail message. I've figured out this: /em @{selected|token_name} rolls for Dodge ( @{selected|AG} AG) /roll 1d6 + @{selected|AG}>{6} But I don't know how to include a text message if the die result (plus modifier) is over 6. If the total is over 6, I would like to display "Success!". If the roll total is under 6, I would like to display text "Fail!".
1411073707
Lithl
Pro
Sheet Author
API Scripter
Sorry, you can only get "# Successes" (in your case, 0 or 1) without resorting to the API, or creating a rollable table for every single possible value of AG.
Thanks Brian, I think the "# Successes" I kept reading about tripped me up mentally. I kept thinking there must be some way (other than API) to make this happen. I might look into the rollable table since there the AG (Agility) range is about 1-6 for this game.
1411078761
Lithl
Pro
Sheet Author
API Scripter
For that route, you could make a series of rollable tables, like: dodge-0 name weight Success! 1 Fail! 5 dodge-1 name weight Success! 1 Fail! 2 dodge-2 name weight Success! 1 Fail! 1 dodge-3 name weight Success! 2 Fail! 1 dodge-4 name weight Success! 5 Fail! 1 dodge-5 name weight Success! 1 And then roll: /roll 1t[dodge-@{selected|AG}] OR [[1t[dodge-@{selected|AG}]]] Should work!
Thanks Brian, that worked quite well! I hadn't thought of using rollable tables in that way, but it's a great idea. I think next I will try to make tables based off of stats other than skills. Then I can maybe build success tables based off of AG+0, AG+1, etc.