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

Torch script - Player Vision Trouble

Howdy howdy. I set up some commands for the torch such as, torch, night vision, no vision, light spell, etc.. While my PCs can see just fine they cannot see other player's light. Additionally, I set some guards with lanterns so they can see a full circle of light ahead of them but yet again, the PC sees nothing but his own light emitting.  I have both boxes checked [all players see light] Here is an example of the light source from guard and the second example is one of PC darkvision light source NPC Guard with Lantern (all players see light, checked) - !torch 40 20 yes @{target|Who?|token_id} --360 PC with darkvision - !torch 60 0 1 @{target|Who?|token_id} --120 When I first set up this script and macros a few days earlier they were able to see each other's light. So, what's up?
My guess is that you are not updating their default tokens so when they drag a new one out it doesn't have proper settings.  As for the darkvision, I'm not sure if 1 for yes no is proper, just do yes/no.  
I double checked the defaults and also updated them just in case. 1 still = yes but I tried with yes/no command as well. Still nothing has changed. So weird. I might just disable the torch script and see if there is another that isn't causing me this trouble *shrug*
1603151340
David M.
Pro
API Scripter
Are you using Updated Dynamic Lighting, by chance? I could be wrong, but I seem to recall that !torch has not been updated for UDL. !token-mod should be able to handle UDL settings, though.  
David M. said: Are you using Updated Dynamic Lighting, by chance? I could be wrong, but I seem to recall that !torch has not been updated for UDL. !token-mod should be able to handle UDL settings, though.   I am not! I quickly learned updated lighting was quite problematic haha
1603192759

Edited 1603192851
David M.
Pro
API Scripter
Roger that. Not sure why torch isn't working, but you can still try token-mod. Here's a comprehensive drop down query macro to set light/vision for a bunch of different sources (torch, bullseye lantern, darkvision, etc.)  !token-mod --set ?{Vision|Torch, light_radius#40 light_dimradius#20 light_hassight#yes light_angle#360 light_otherplayers#yes|Hooded Lantern, light_radius#60 light_dimradius#30 light_hassight#yes light_angle#360 light_otherplayers#yes|Bullseye Lantern, light_radius#120 light_dimradius#60 light_angle#60 light_hassight#yes light_otherplayers#yes|Lamp, light_radius#30 light_dimradius#15 light_hassight#yes light_angle#360 light_otherplayers#yes|Candle, light_radius#5 light_dimradius#=0 light_hassight#yes light_angle#360 light_otherplayers#yes|Darkvision, light_radius#60 light_dimradius#=-5 light_hassight#yes light_angle#360 light_otherplayers#no|Darkvision (90'), light_radius#90 light_dimradius#=-5 light_hassight#yes light_angle#360 light_otherplayers#no|Warlock Devil's Sight, light_radius#120 light_dimradius#=120 light_hassight#yes light_angle#360 light_otherplayers#no|No light source(Dusk), light_radius#120 light_dimradius#=-5 light_hassight#yes light_angle#360 light_otherplayers#no|Fog, light_radius#200 light_dimradius#=5 light_hassight#yes light_angle#360 light_otherplayers#no|No light source, light_radius#5 light_dimradius#=-5 light_hassight#yes light_angle#360 light_otherplayers#no|Blinded, light_hassight#no light_angle#360 light_otherplayers#no} EDIT - though, it sounds like there is something weird going on, so not convinced this will solve anything. Does torch work in another game?
1603207435

Edited 1603207497
David M. said: Roger that. Not sure why torch isn't working, but you can still try token-mod. Here's a comprehensive drop down query macro to set light/vision for a bunch of different sources (torch, bullseye lantern, darkvision, etc.)  !token-mod --set ?{Vision|Torch, light_radius#40 light_dimradius#20 light_hassight#yes light_angle#360 light_otherplayers#yes|Hooded Lantern, light_radius#60 light_dimradius#30 light_hassight#yes light_angle#360 light_otherplayers#yes|Bullseye Lantern, light_radius#120 light_dimradius#60 light_angle#60 light_hassight#yes light_otherplayers#yes|Lamp, light_radius#30 light_dimradius#15 light_hassight#yes light_angle#360 light_otherplayers#yes|Candle, light_radius#5 light_dimradius#=0 light_hassight#yes light_angle#360 light_otherplayers#yes|Darkvision, light_radius#60 light_dimradius#=-5 light_hassight#yes light_angle#360 light_otherplayers#no|Darkvision (90'), light_radius#90 light_dimradius#=-5 light_hassight#yes light_angle#360 light_otherplayers#no|Warlock Devil's Sight, light_radius#120 light_dimradius#=120 light_hassight#yes light_angle#360 light_otherplayers#no|No light source(Dusk), light_radius#120 light_dimradius#=-5 light_hassight#yes light_angle#360 light_otherplayers#no|Fog, light_radius#200 light_dimradius#=5 light_hassight#yes light_angle#360 light_otherplayers#no|No light source, light_radius#5 light_dimradius#=-5 light_hassight#yes light_angle#360 light_otherplayers#no|Blinded, light_hassight#no light_angle#360 light_otherplayers#no} EDIT - though, it sounds like there is something weird going on, so not convinced this will solve anything. Does torch work in another game? I solved it! Thanks so much for your help though! I had to toggle the checkbox "enable line of sight" under dynamic lighting on the page setup options.  Also that macro is dope!!! I will try that out and update it if it works better than my current one :)