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

Control token status marker using sheet worker?

I'd like to use a sheet worker to listen for a change in a checkbox (e.g., "isStunned") and when that box is toggled, also toggle the appearance of a token status marker on the token itself.  I'm sure it's a simple code, but I'm new to interactions between the character sheet/sheet worker code and API codes.  How can I use API commands from a sheet worker?  I would rather do this via a character sheet checkbox rather than a macro.  (Pro account and going to use Token mod (or any recommended API for this task.)
1611379369
GiGs
Pro
Sheet Author
API Scripter
Nothing on the character sheet (including sheetworkers) can directly affect a token. The only way to do this would be a custom API script. I believe there are several that manipulate tokens - I'm pretty sure I've seen this exact request so someone may have written one that does what you need already.