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 Multiple Possibilities

Hello ! I want to make a macro with mutiple choices like that : ?{Which Test? | Adresse, [[d20<[[@{Adresse}+@{AdresseMod}]] ]] (Epreuve d'Adresse) | Force,[[d20<[[@{Force}+@{ForceMod}]] ]] (Epreuve de Force) | Charisme, [[d20<[[@{Charisme}+@{CharismeMod}]] ]] (Epreuve de Charisme) | Intelligence, [[d20<[[@{Intelligence}+@{IntelligenceMod}]] ]] (Epreuve d'Intelligence) | Courage, [[d20<[[@{Courage}+@{CourageMod}]] ]] (Epreuve de Courage) } It works like always... But can I add some possibilities. For example "Adresse" : If it's <Adresse + Adresse Mod, it's ok but I want to add if it's = to Adresse + Adresse Mod. It is possible ? Thanks a lot !
Or just a simpla macro with if it's <Adresse + Adresse Mod, it's ok but I want to add if it's = to Adresse + Adresse Mod.
Hello, Try the following macro, it will ask you to choose the trait then the condition: = or < or >. ?{Choose trait| Adresse, Epreuve d'Adresse: [[d20?{select type|Strictly equal to,=|Less-than or equal-to,<|Greater-than or equal-to,>}[[(@{selected|Adresse})+(@{selected|AdresseMod})| Force, Epreuve de Force: [[d20?{select type|Strictly equal to,=|Less-than or equal-to,<|Greater-than or equal-to,>}[[(@{selected|Force})+(@{selected|ForceMod})]]]]}
Hello thanks for help. Let's make more simple. How can I make a macro that call a caracteristic like "Strengh", roll a 2D6, if result is under "Strengh" then it say "Success" if result is more than "Strengh" then it say "Fail" if result is egual to "Strengh" then it say "Critical Success" ?
Such macro may be possible with API (a Pro feature) but I can't help you there as I am not a scripter myself.
1587162011
GiGs
Pro
Sheet Author
API Scripter
You cant do what you want with standard macros. You can roll to see if you get under an attribute, like /roll 2d6<@{strength} or [[2d6<@{strength}]] The first one will say success or failure, but cant do the critical success label, and it doesnt look very good. The second will only tell you 1 or 0, 1 for success, 0 for failure.