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 for setting a status marker

I need a macro (prolly using TokenMod) that sets a specific status marker with a specific number on it, on the selected token. And an idea where to find the name of the markers.
1581191643
The Aaron
Roll20 Production Team
API Scripter
You can see the names of markers (including custom ones) in the TokenMod help: !token-mod --help You can set a marker with a number: !token-mod --set statusmarkers|+blue:3 The marker "blue" with the number "3" will get set. See the help for many more options. 
Thank you f or that.  Is there a way to make a toggle, where for example a statusmarker is set, then another press increments the number, then a third press clears the statusmarker?
1581194909
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
All those cases are covered in the token-mod documentation, which you can find with !token-mod --help But each operation would probably need to be made a separate action (or macro).
That was my question - so you cannot make a macro that "steps through" multiple actions?
1581205366
GiGs
Pro
Sheet Author
API Scripter
You can make a macro that does multiple actions, as long as they aren't conditional on the results of others. What specifically are you trying to do?
1581208565
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Unless you were going to create a custom API, one macro does one thing. It can call up a chat menu or drop down menu for you to choose which specific action you want, but it can't say "If this condition exists, then do this action". A custom script could do this, but you would need to write it from scratch.
1581209733

Edited 1581211388
I wanted to apply one or two out of 4 statusmarkers, and the option to clear them.  I would like to avoid having 5 macros for this. So the token could be marked with either Stymied or Very Stymied, and/or Vulnerable or Very Vulnerable. You can only have Stymied or Vulnerable, not BOTH Stymied or Very Stymied for instance. So it looks like I would need four macros to each apply a statusmarker.  I was hoping to minimize that somehow.  The drop down sounds like it could work better - it could choose which of the four conditions to apply, along with the option to clear them, correct?
1581218990
GiGs
Pro
Sheet Author
API Scripter
If you had 4 seperate conditions, and they are simple toggled (switch on, switch off) that's easy to do with a simple dropdown or chat menu. But if you want to go from stymied to very stymied automatically, and that might not be possible without a custom script.  A custom script could manage the promotion of conditions, and also update the related attributes on a character sheet for tokens that are linked to one. A chat menu with 4 buttons (stymied + /-, vulnerable + / -) might be a good way to handle it.
Just a simple toggle dropdown would work.
Ok so I think I know what I am looking for. One button that brings up a dropdown with "Stymied" that puts up the Back Pain symbol with a 2 on it. And another option that puts up "V. Stymied" that puts up the Back Pain symbol with a 4 on it. And a thrid option that clears it. (the stymied status) Then another button that brings up a dropdown with "Vulnerable" that puts up the Broken SHield symbol with a 2 on it. And another option that puts up "V. Vulnerable" that puts up the BRoken SHield symbol with a 4 on it. And a thrid option that clears it. (the Vuln status)