Here's a script I cooked up to toggle an arbitrary status marker, and set an attribute to either 0 or 1 to match. I use this for several abilities my players have, such as Smite Evil and Power Attack. The status marker visually indicates that the ability is turned on, and I can use the attribute to toggle the bonuses in macros by multiplying by it. I put the API command in token actions so that my players have a simple button to turn their abilities on and off. You can find the names of the status markers at the bottom of the Graphics section of the API Objects wiki page . Usage: !toggle-status <name of status marker>|<name of attribute> Example: !toggle-status all-for-one|smite