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

TokenMod Macro - How to set multiple condition statuses at once

Hi, was hoping someone could tell me what I'm  doing wrong here . My goal is to set two statuses, one being the actual status and one being the dominated status, based on the answer to the question.  Bonus question, is the number that appears in the status always red?   !token-mod --set ?{Choose an Elemental Affinity from Your Natural Affinity or a Magicite you carry| Light (Dominates Shadow/Weak against Astral), statusmarkers#=36_blessed::328636,statusmarkers#37_cursed::328637:2 | Shadow (Dominates Astral/Weak against Light),  statusmarkers#=37_cursed::328637,statusmarkers#7_mana::328607:2 | Astral (Dominates Light/Weak against Shadow), statusmarkers#=7_mana::328607,statusmarkers#36_blessed::328636:2 | Water (Dominates Fire/Weak against Earth),  statusmarkers#=97_water::328702,statusmarkers#96_fire::328701:2 | Fire (Dominates Air/Weak against Water), statusmarkers#=96_fire::328701,statusmarkers#01_wind::328706:2 | Earth (Dominates Water/Weak against Air),  statusmarkers#=99_earth::328704,statusmarkers#97_water::328702:2 | Air (Dominates Earth/Weak against Fire), statusmarkers#=01_wind::328706,statusmarkers#99_earth::328704:2 | Cold (Dominates Metal/Weak against Nature),  statusmarkers#=98_ice::328703,statusmarkers#=80_defense::328684:2 | Metal (Dominates Eletricity/Weak against Cold), statusmarkers#=80_defense::328684,statusmarkers#102_thunder:2 | Nature (Dominates Cold/Weak against Eletricity),  statusmarkers#=100_nature::328705,statusmarkers#98_ice::328703:2 | Eletricity (Dominates Nature/Weak against Metal), statusmarkers#=102_thunder::328707,statusmarkers#100_nature::328705:2 | }
1645722790

Edited 1645722871
The Aaron
Roll20 Production Team
API Scripter
Using = will force the status markers to be just the thing you are saying: !token-mod --set statusmarkers|=blue This says "clear everything and set blue on." You can use + to add a status to the list ("add blue to the list of statuses on the token"). !token-mod --set statusmarkers|+blue That's actually the default action, so you can omit the + and it does the same thing: !token-mod --set statusmarkers|blue You can use ! to toggle just that status ("if blue is present, turn it off, otherwise add it"). !token-mod --set statusmarkers|!blue You can perform multiple operations in a single command ("add blue, remove green, toggle pink"): !token-mod --set statusmarkers|+blue|-green|!pink There are a bunch of other options, see the help handout for examples and descriptions. Also, the numbers displayed are always that red color.  The API has no control over that.
Thank you, I think the problem I am having is that the different question answers are seperated by the " |"  and when i use it to separate the two conditions it thinks the second option is a question.  How do i get around that? 
You can use # instead of | for the TokenMod macro so that it doesn’t interfere with a query. 
Thanks aaron and Jarren. This worked. This was much appreciated.  My players will love you.