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

if/then in macro?

My apologies if I'm beating a dead horse but I can't seem to find a straight answer anywhere on these forums. Is there an if/then function available in basic macro, without needing the API? I'm not a coder but can handle if/then macros. And more of a suggestion than a question but is there a concise list of the commands available for macros? The Macro specific wiki only seems to be a little help, I'd like to see just a huge table with all commands and their functions.
1424642097
Stephen Koontz
Forum Champion
Marketplace Creator
Sheet Author
API Scripter
Compendium Curator
Terry, unfortunately not. The macro system and dice system don't have anything like logic indicators. You'd need the API for that. What many other people have done (take the D&D 5E sheet for example) is provide both results and let the player make the decision of which one to logically use. <a href="https://wiki.roll20.net/Macros" rel="nofollow">https://wiki.roll20.net/Macros</a> <a href="https://wiki.roll20.net/Dice_Reference" rel="nofollow">https://wiki.roll20.net/Dice_Reference</a>
1424657593
Gen Kitty
Forum Champion
There's a quasi-if/then available to you: Multiplying by 0|1. For example, a part of your macro might have +(2d6*?{Sneak Attack?|0}) -- It will prompt you, and if you're adding sneak attack you'd enter a 1, if not you leave the 0.