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 .
×
🍵 What is a cleric’s favorite hot drink? Divini-tea. 🍵
Create a free account

Hello! I am looking for a Tokenmod macro that will...

Apply multiple statuses simultaneously to a single Token from a dropdown menu with each status having its own duration (sort of like the numbers you can assign using the numpad 1-0). I had posted this in the API Script forum and I believe that was the incorrect place to request assistance with creating a Tokenmod macro. :( Example:  Option 1: I want to apply Blinded and Slow with a Duration of 1.  Option 2: I want to apply Blinded and Slow with a Duration of 2. etc. Thank you so much in advance! :)
1767286965
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Hand of Fate! How were you planning on handling the duration? You can assign a number with Token-mod as you describe, but it doesn't track it in any way.
Hello and Happy New Years! ^^ I was hoping to assign a number to it like one would do using the NumPad numbers (1 through 0). 
1767289930

Edited 1767290210
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
This should handle setting two markers, with numbers. You could add more conditions to the "Condition" and "Condition2" queries. !token-mod --set statusmarkers#?{Blinded|Slow|}:?{Duration|0|1|2|3|4|5|6|7|8|9}#?{Condition2|Blinded|Slow}:?{Duration2|0|1|2|3|4|5|6|7|8|9} Since you are adding drop-down queries, the delimiters in the token mod command need to be changed to "#" from "|", in order to avoid confusing the parser, since queries also contain the "|" character. Each query needs to have its own name, so that they will not simply redefine each other: Condition, Condition2, Duration,Duration2 Check the token-mod Help handout to verify the actual names of the token markers in your game. If you have not installed libTokenMarkers in your Mod Scripts, you should do so. This will mean you don't need the IDs after the token marker names ("Bloodied", instead of "Bloodied::12345")
Thank you sooo much!