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

Macro request to toggle Night Vision on/off on a token

Is there such a command or macro? ^ Thank you, Barry
1722799408
Gauss
Forum Champion
HI Barry S.,  Generally macros cannot make changes, they can only execute things. For this you will need a Mod (API Script). If the game owner has a Pro account this is possible. Here is a list of Mods (API Scripts) relative to Dynamic Lighting, perhaps one of them will do what you need it to. 
If APIs are possible, I have a scriptcard for DnD 5e that checks vision and allows players to select their vision type or illumination and places a marker on a token if shedding light. The system is for 5e but I adapted it from 3.5, so I don't imagine it would take much to shift to another version/game system if required. Let me know if you want to take a look and I will share 
I use Tokenmod and have these two macros NV on !token-mod --set  has_night_vision#on night_vision_distance|60 night_vision_effect|nocturnal !token-mod --set statusmarkers|+ninja-mask NV off !token-mod --set  has_night_vision#off !token-mod --set statusmarkers|-ninja-mask they also set/unset an indicator on the token as a reminder, it's not required. There may be more cunning ways to do it, but, this works for my needs
Thanks for the tips!