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

Macro Conditions, Success/Failure and Activation

Hello there. I have been searching the help menus and the forums for a way to make an attack macro with success failure conditions. For example: 1. Successful or failed attack. /roll 1d20+@{selected|applicable modifiers} vs target AC If the attack failed then => /emas {selected|token_name} missed his target If the attack was successful => /emas @{selected|token_name} slashes @{target|token_name} for [[1d6+{applicable modifiers }]] points of damage. 2. A way to define a range parameters for actions. For example, an emote macro where i roll a d12 dice and for the range 1-4 the dwarf cries "Havoc!"; 5-8 the dwarf cries "Charge!"; 9-12 the dwarf cries "Attack". And please tell me if that is at all possible. Thanks!
1414890341
Pat S.
Forum Champion
Sheet Author
I hate to be the bearer of bad new but the standard dice roller can't do those if else type of macro's. The first one would be doable with the API (mentor level feature) The second one is doable with a rollable table or the API There will probably be some more people dropping by to give more details or suggestions so good luck.
1414897559

Edited 1414897597
Lithl
Pro
Sheet Author
API Scripter
Yes, the second one is fairly simple with a rollable table. name weight Havoc! 1 Charge! 1 Attack 1 /me cries [[1t[battlecry]]