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

Targeting conditions / getting to more than 9 stacks

Hi, I'm new to this API/Macro stuff so I apologize for anything in advance... I'm playing a game where status markers should be able to be set to a number greater than 9, which I figure is the limit. Well, at least I couldn't find any good way to reach the tens... I tried using the red marker for units and the blue marker for tens, while using the green marker as a flag. (i.e. applying a stack of a condition, I'd have two markers set for each condition) !token-mod --set statusmarkers|blue:+1|-red|red:0|green {&Select *, +red=9, -green, +bar3="Enemy"} !token-mod --set statusmarkers|red:+1|green {&Select *, -green, +bar3="Enemy"} !token-mod --set statusmarkers|-green {&Select *, +green, +bar3="Enemy"} It's working like this, but it's not what I need, because I'm currently using "all enemies" as target. Is there any way to just manually selecting the targets before clicking the macro, or with   --ids @{target|1|token_id} @{target|2|token_id}   or something like that, but still maintaining the "condition logic" inside " {&Select *, +red=9, -green, +bar3="Enemy"} " ?
1786815670
The Aaron
Roll20 Production Team
API Scripter
TokenMod does support multiple of the same marker. You can check the help doc for syntax details, but you specify which of the markers with [#] kind of like this (from memory, verify in doc:): !token-mod --set statusmarkers|red[2]:3|red[1]:5
1786816051
The Aaron
Roll20 Production Team
API Scripter
You might also be able to use my Flymore script, though it only lets you control a single multi-digit number.&nbsp; <a href="https://app.roll20.net/forum/permalink/9888181/" rel="nofollow">https://app.roll20.net/forum/permalink/9888181/</a>
I was messing around with it and ended up changing your FlyMore script a little so it wouldn't remove other markers, it truly helped a LOT. Thank you so much!
1786988874
The Aaron
Roll20 Production Team
API Scripter
Awesome!&nbsp; Glad to hear it worked for you!