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

How do I change Nightvision Tint for everyone in game?

I've been looking into ways to make it clear when someone's in Dim Light vs Bright Light vs Nightvision, and I'm wanting to change it so the Nightvision is a different tint color.  Now, I know I can go token by token to update the tint, but is there a way to 1) make it so everyone's tint is assigned to the right color by default? And 2) Change all tokens to have that same nightvision tint? If so, how? Whether it be something native to Roll20, an API or what have you, any help would be appreciated!
1690224777
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Red Archon! I usually recommend against tinting Night Vision. It actually can cause confusion where it overlaps with colored light, with unexpected color shifts. The checkLightLevel script by Oosh can give you a report on light that is shining on the token, and the Dynamic Lighting Tool script can also do this (it installs the other script if it is not already installed), as well as much more. Token Mod can change every selected token on a given page very quickly, but you would need to write a custom script to affect all tokens in a game, as well as default tokens.
What sort of color shifts?  Main reason is I want the players to be able to see when they’re in dark vs dim vs bright. Also me, but for players too. Partially for Stealth purposes, but also for those who are Gloom Stalkers or Way of Shadow Monks.
Honestly, I would be happy if it just made new character sheets have it by default. Not 100% sure how to do that though.
1690234762
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Red Archon  said: What sort of color shifts?  Hard to describe because they are unpredictable, especially when they intersect colored light. An individual player might not notice much, but the GM view can go wonky. I'd suggest experimenting on  page with multiple sight0tinted tokens, a map image and DL turned on. Throw in a tinted light source or two for testing. Red Archon said: Honestly, I would be happy if it just made new character sheets have it by default. Not 100% sure how to do that though. You can do this, but I'd suggest the experimentation above to make sure that really what you want to do. Set it on your Game Settings page, under Dynamic Light. Activate the settings in this order. Note that this will result in all new tokens having tinted night vision. I think you can set the color, then turn night vision and vision off, and the tint setting will stay, but I haven't ever tried this. Test on a game copy . Note also, that even if this works, this will just be the default for new tokens, it won't affect default tokens already created. Once the settings are saved (use the save button directly under this section, not the one at the bottom of the page), load your (test) game and go to the settings tab. Find "Apply Default settings and chose to update night vision tint. Apply. Wait for the nearly invisible progress bar to finish. It's hidden way up at the top of the Apply Settings dialog and is easy to miss.
1690244191
The Aaron
Roll20 Production Team
API Scripter
If you just need to update all player tokens, you could use TokenMod with the character id and save it to the default token. Just make sure the defaulttoken is the last set option: !token-mod --set <VARIOUS OPTIONS> defaulttoken --ids @{some char|character_id} @{some other char|character_id}
keithcurtis said: Red Archon  said: What sort of color shifts?  Hard to describe because they are unpredictable, especially when they intersect colored light. An individual player might not notice much, but the GM view can go wonky. I'd suggest experimenting on  page with multiple sight0tinted tokens, a map image and DL turned on. Throw in a tinted light source or two for testing. Red Archon said: Honestly, I would be happy if it just made new character sheets have it by default. Not 100% sure how to do that though. You can do this, but I'd suggest the experimentation above to make sure that really what you want to do. Set it on your Game Settings page, under Dynamic Light. Activate the settings in this order. Note that this will result in all new tokens having tinted night vision. I think you can set the color, then turn night vision and vision off, and the tint setting will stay, but I haven't ever tried this. Test on a game copy . Note also, that even if this works, this will just be the default for new tokens, it won't affect default tokens already created. Once the settings are saved (use the save button directly under this section, not the one at the bottom of the page), load your (test) game and go to the settings tab. Find "Apply Default settings and chose to update night vision tint. Apply. Wait for the nearly invisible progress bar to finish. It's hidden way up at the top of the Apply Settings dialog and is easy to miss. Thank you so much. I did the tests, and it works so much better now! I stuck with a basic black tint so if it's in the dark, it's a bit darker than it is in the light. Not only that, but it fixes an issue I was having where if someone has nightvision and I used a tinted light, they couldn't see the tinted light. Now it's still there, albeit a bit darker :)
I can second this, that using the black tint for night vision doesn't seem to cause the problems with colored lights that using any other color for night vision does.  Red Archon said: Thank you so much. I did the tests, and it works so much better now! I stuck with a basic black tint so if it's in the dark, it's a bit darker than it is in the light. Not only that, but it fixes an issue I was having where if someone has nightvision and I used a tinted light, they couldn't see the tinted light. Now it's still there, albeit a bit darker :)
1690316317
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
That's good to know. Thanks both. I'll be sure to recommend that to other users who need to use tinted vision.
I don't have an answer for you (The Aaron is the guru above), but I do have a comment. I tried using colour tints for dark vision but found it unsatifactory because of the way it interacts with other light sources.  Also colour tints obscure a fair bit of detail. I'd be great of Roll20 introduced a proper "darkvision" option where it give the token a "dim light" sight that turns the map colours etc. black and white.