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 .
×
Create a free account

TokenMod - Toggle markers on/off

Hello, I am messing with TokenMod API and am trying to build a Macro which, through a single button click, toggles a token marker on/off. I think I need to use the boolean logic function of TokenMod, but I'm not sure I understand completely how to apply it after reading through "!token-mod <-help I have the following code to place a marker on a selected token: !token -mod { { - -set   statusmarkers |FinalGrappled }} and the following code to remove the marker from the selected token. !token -mod { { - -set   statusmarkers |-FinalGrappled }} But  what do I need to do to combine these into a single macro button which checks to see if the token has an applied marker and either applies it or removes it? Thank you
1708303104
Andrew R.
Pro
Sheet Author
Exclamation Mark.  !token -mod { { - -set   statusmarkers |!FinalGrappled }}
Andrew R. said: Exclamation Mark.  !token -mod { { - -set   statusmarkers |!FinalGrappled }} It was so simple! Haha, thank you very much! I was doing all sort of experimentation with "--flip" and "--on" and "--off". Thank you!