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 .
×

Statusmarkers Using Token-Mod

1774171228

Edited 1774171586
Just found this today. When I run a macro that is to update a statusmarker on a targeted token it also appears on the selected token. Have been using some of these macros for awhile and never had this issue. I am using the 2014 sheet and the default sandbox. Anyone else seen this? UPDATE: Just found out that even if you run token-mod from the chat box does the same thing. If you have one token selected, run token-mod to put a statusmarker on a targeted token both tokens get the statusmarker
Try adding "ignore-selected" to the macro like in this example (A macro that turns on torchlight for a targeted token): !token-mod {{ --set emits_bright_light|on bright_light_distance|20 emits_low_light|on low_light_distance|20 light_color|transparent --ignore-selected --ids @{target|Target 1|token_id} }}
Thanks Rick. Did the trick. Now to go back to all the macros and add this. 
1774356352
The Aaron
Roll20 Production Team
API Scripter
Another command you might find helpful: !token-mod --help-statusmarkers That will give you a nice list of all the status markers the API knows about.  
1774360563
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The Aaron said: Another command you might find helpful: !token-mod --help-statusmarkers That will give you a nice list of all the status markers the API knows about.   Ooh, I did not know that one.
Thanks Aaron.  Have used that one a couple of times, It is a big help when needed. In this case it is the macro functioning differently then it had in the pass. The selected token never use to have the statusmarker show up on it when the macro was just calling for the targeted token to get it. But there is worse things in life to worry about then having to add a simple line of code to the macros to make them work the way the use to  lol