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 .
×
The developers are currently investigating an issue with logging in + accessing the VTT.
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

Lighting, Darkvision & Dead Monsters/NPCs/PCs

There may be a way to do this, but when monsters, NPCs, or PCs fall to 0 or less hp, are knocked unconscious, or otherwise "have their lights put out" there should be a way to easily "turn off" their darkvision or whatever sight they had since they don't have it anymore (death will do that to you). The same for torches in the rain or someone who simply blows out a lantern or candle. The only way I can see to do this currently is by editing the token. This slows combats down.
As a Pro subscriber, you have access to API scripts that can handle this for you. Ones that come to mind include TokenMod as well as Torch.
Ah! Thanks, I did not know that (I knew I had access to the API scripts, but had no other clue).
1548286242

Edited 1548286395
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Once you install token mod from the one-click, here is a sample lighting macro. This is tweaked for the shaped sheet roll template (pictured below), but if you need help converting, let me know. This basically sends the commands to chat as a Chat Menu . /w gm &{template:5e-shaped} {{title=Game Menu}} {{text_big=**Light & Vision** [Snuff](!token-mod --set light_otherplayers|off light_radius|0 light_dimradius|0 light_angle|360) | [Sight](!token-mod --on showname light_hassight --set light_angle|360 light_losangle|360) | [Blind](!token-mod --set light_losangle|0) | [Spot](!token-mod --set light_otherplayers|on light_radius|2 light_dimradius|2 light_hassight|on light_angle|360) | [GM](!token-mod --set light_otherplayers|off light_hassight|off light_radius|5 light_dimradius|5 light_angle|360) [Candle](!token-mod --set light_otherplayers|on light_radius|5 light_dimradius|0 light_angle|360) | [Lamp](!token-mod --set light_otherplayers|on light_radius|30 light_dimradius|15 light_angle|360) | [Torch](!token-mod --set light_otherplayers|on light_radius|40 light_dimradius|20 light_angle|360) [Hooded Lantern](!token-mod --set light_otherplayers|on light_radius|60 light_dimradius|30 light_angle|360) | [Bullseye Lantern](!token-mod --set light_otherplayers|on light_radius|120 light_dimradius|60 light_angle|90) **[Darkvision](!token-mod --set light_otherplayers|off light_hassight|on light_radius|60 light_dimradius|0 light_angle|360)** | [DV90](!token-mod --set light_otherplayers|off light_hassight|on light_radius|90 light_dimradius|0 light_angle|360) | [DV120](!token-mod --set light_otherplayers|off light_hassight|on light_radius|120 light_dimradius|0 light_angle|360) | [*Light*](!token-mod --set light_otherplayers|on light_radius|40 light_dimradius|20 light_angle|360) | [*Daylight*](!token-mod --set light_otherplayers|on light_radius|120 light_dimradius|60 light_angle|360) | [*Faerie Fire*](!token-mod --set light_otherplayers|on light_radius|1 light_angle|3600 light_dimradius|0 statusmarkers|purple light_angle|360)}} Snuff  turns off all light Sight  turns on sight Blind  turns off sight Spot  gives a character a slight spotlight so that players can see it more easily. Good for ghosts GM  puts a spotlight on an NPC that only the GM can see. Makes it easy to find dark minis on dark maps The next two lines are standard light sources The  Darkvision  lines control the various Darkvision ranges in 5e The last line is lighting for common spells,  Faerie Fire  is a Spot light with a purple status marker.
Gotcha'. Thanks! I'm working on it. May take me a few tries (I'm not new to Roll20 (I'm pretty sure I used it for awhile back in around 2008 or so and, of course, have 250+ hrs in on this particular incarnation) and use a lot of the tools available, but scripting and understanding how API scripts work is new to me - just want to learn how to do things better).
1548300862
Gen Kitty
Forum Champion
Does this meet your needs and thus you would like to have this Suggestion closed to regain your vote, or would you like it to stay to collect others' votes?
No, I think it's been answered well enough Gen Kitty. You can close it.
1548306279
Gen Kitty
Forum Champion
Well, no, I can't.  I'm not a Moderator anymore :)