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

Using token mod to cycle through multiple status marker values?

I'm running Savage Worlds and want to make the magic slightly easier. There's plenty of powers in it that increase a statistic (Like damage, armor, etc.) by either +2 or +4 if the casting roll is high enough. I'm wondering if there's a way to loop through those 3 values (No status marker, Status marker 2, Status marker 4) on a status marker with a single button. Then I can just click it a couple of times to set the value easily. I'm currently trying to tokenmod but there only seems to be a conditional for whether it exists at all, instead of checking the specific value.
1612923672
The Aaron
Roll20 Production Team
API Scripter
Hmmm. I can't think of a good way to do that with TokenMod. I'm not even sure how I'd write the syntax for such a command. If you knew you were always only affecting a single character's token, you might be able to do something with either a bar or chatsetattr and an attribute.  That said, this is the kind of thing I'd just write a little custom script for. What's the precise behavior you want out of it?
Basically the system allows magic users to buff/debuff people with about a half-dozen different attributes, each of which can be extra powerful if they roll really high when they cast the spell. A character could very easily make their first few rounds entirely about throwing out a dozen different stat changes across the map. Plus you can apply some to multiple tokens. When I learned that you could attach numbers I realized that would save me about 20 status markers, but I'm trying to set things up for both myself and the players to make it easier to apply the different levels to their tokens. My theory was that having one status marker / button per "Spell" would then give me the ability to quickly select some, click or double-click a button, and then move on. Removing isn't too much of a pain (just means going through the token menu) but I figured a way to cycle through the different levels would make things quicker. I figured it'd be difficult with the limitations of roll20, but figured I'd see if someone had a simple solution I hadn't seen yet. Loving tokenmod, btw. it's made a ton of stuff way easier.
1612930609
The Aaron
Roll20 Production Team
API Scripter
Hmm.. If clearing isn't a problem, you could have a button to add a 2 to the particular marker, and bound it to a max of 4: !token-mod --set statusmarkers|blue:+2:0:4 That will add the marker with 2 the first time, then set it to 4 the second time, but won't let it go higher.
Yah, I have that and it'll do well enough. Thanks!