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

Dynamic Lighting Tool API

I have installed the subject API. Is there a way to configure output so that the players can see the results for their token? I installed in a game where I am using Jumpgate and 2024 character sheet. As the GM, it appears that the API is working with the appropriate outputs.
1743882028
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Steve! Since controlling Dynamic Lighting has a great potential for accidentally spoiling scenarios, and Roll20 itself places such control in GM territory, I elected to make the interface mostly cater to the GM role. If a player runs the base command, they will get a modified version of the "Why Can't This Token See?" function. This is to help them communicate vision and light problems with their GM. That being said, there have been a couple of requests for a player control panel in the last month or so. What would you envision for a player interface? An enhanced report? The ability to set individual light and vision settings? If the latter, by way of presets (torch, light spell, standard and enhanced darkvision), or by way of inputting specific values?
Thanks for your response Keith.  I think the ability for the players to set thier own individual light  and vision settings would be nice. The preset torch, light spell, standard and enhanced darkvision, along with lamps, candles, etc, would be nice.  Also it would be nice for players to be able to see if they are in Dim light, bright light, as a percentage, just like for the DM, would be useful.
Just in case - this might be of use for you as well These are 2 macros, One is Darkvision and the other Vision. You will also see something called "Day 60", "Day 30", "Day 15" and the same for Darkvision - I don't always allow the full 60 feet on smaller maps and inform them to change it up. Example": It's Day time but your in a very dense forest, thus the trees are preventing you from seeing 60ft+ ahead. I need you to put your Day or Darkvision to 15ft.  You can set these macros under the "Collection" Tab, next to the Settings cogwheel inside your games. These will appear for your players and have them assign it either to their Macro Bar or as a Token Action. You can also set it up for them on the fly if you wish to have full control of it.  Dark Vision !token-mod {{?{What Type of Vision - DIM/BRIGHT |None/Blind, --set has_bright_light_vision#no emits_bright_light#no bright_light_distance#0 has low_light_vision#no emits_low_light#no low_light_distance#0 aura1_radius# has_night_vision#no has night_vision_distance#0 night_vision_tint #transparent |Darkvision 60ft, --set has_bright_light_vision#yes emits_bright_light#no bright_light_distance#60 has low_light_vision#yes emits_low_light#no low_light_distance#60 has_night_vision#yes night_vision_distance#60 night_vision_tint #transparent night_vision_effect#nocturnal aura1_radius# |Darkvision 30ft, --set has_bright_light_vision#yes emits_bright_light#no bright_light_distance#60 has low_light_vision#yes emits_low_light#no low_light_distance#60 has_night_vision#yes night_vision_distance#30 night_vision_tint #transparent night_vision_effect#nocturnal aura1_radius# |Darkvision 15ft, --set has_bright_light_vision#yes emits_bright_light#no bright_light_distance#60 has low_light_vision#yes emits_low_light#no low_light_distance#60 has_night_vision#yes night_vision_distance#15 night_vision_tint #transparent night_vision_effect#nocturnal aura1_radius#|}}} Normal Vision !token-mod {{?{What Type of Vision - DIM/BRIGHT |Full Blind, --set has_bright_light_vision#no emits_bright_light#no bright_light_distance#0 has low_light_vision#no emits_low_light#no low_light_distance#0 aura1_radius# has_night_vision#no has night_vision_distance#0 night_vision_tint #transparent |No Lights, --set has_bright_light_vision#yes emits_bright_light#no bright_light_distance#0 has low_light_vision#no emits_low_light#no low_light_distance#0 aura1_radius# has_night_vision#yes has night_vision_distance#2.5 night_vision_tint #transparent |Candle 10ft 5/5, --set has_bright_light_vision#yes emits_bright_light#yes bright_light_distance#5 has low_light_vision#yes emits_low_light#no low_light_distance#5 has_night_vision#yes night_vision_distance#10 night_vision_tint #transparent has_directional_bright_light#yes directional_bright_light_total#360 bright_light_Center#00 lightColor#ffff00 aura1_radius# |Torch Light 40ft 20/20, --set has_bright_light_vision#yes emits_bright_light#yes bright_light_distance#20 has low_light_vision#yes emits_low_light#no low_light_distance#20 has_night_vision#yes night_vision_distance#40 night_vision_tint #transparent has_directional_bright_light#yes directional_bright_light_total#360 directional_bright_light_center#00 lightColor#ffff00 aura1_radius# |Lamp 45ft 30/15, --set has_bright_light_vision#yes emits_bright_light#yes bright_light_distance#15 has low_light_vision#yes emits_low_light#no low_light_distance#30 has_night_vision#yes night_vision_distance#45 night_vision_tint #transparent has_directional_bright_light#yes directional_bright_light_total#360 directional_bright_light_center#00 lightColor#ffff00 aura1_radius# |Hooded Lamp 60ft 30/30, --set has_bright_light_vision#yes emits_bright_light#yes bright_light_distance#30 has low_light_vision#yes emits_low_light#no low_light_distance#30 has_night_vision#yes night_vision_distance#60 night_vision_tint #transparent has_directional_bright_light#yes directional_bright_light_total#360 directional_bright_light_center#00 lightColor#ffff00 aura1_radius# |Covered Hooded Lamp 35ft 30/5, --set has_bright_light_vision#yes emits_bright_light#yes bright_light_distance#5 has low_light_vision#yes emits_low_light#no low_light_distance#30 has_night_vision#yes night_vision_distance#35 night_vision_tint #transparent has_directional_bright_light#yes directional_bright_light_total#360 directional_bright_light_center#00 lightColor#ffff00 aura1_radius# |Bullseye Lantern 120ft 60/120, --set has_bright_light_vision#yes emits_bright_light#yes bright_light_distance#60 has low_light_vision#yes emits_low_light#no low_light_distance#60 lightColor#ffff00 has_night_vision#yes night_vision_distance#120 night_vision_tint #transparent aura1_radius# has_directional_bright_light#yes directional_bright_light_total#60 directional_bright_light_Center#270 |Day Open 60 ft 60/60, --set has_bright_light_vision#yes emits_bright_light#no bright_light_distance#60 has low_light_vision#yes emits_low_light#no low_light_distance#60 has_night_vision#yes night_vision_distance#60 night_vision_tint #transparent night_vision_effect#none aura1_radius# |Day Woods 30ft 30/30, --set has_bright_light_vision#yes emits_bright_light#no bright_light_distance#60 has low_light_vision#yes emits_low_light#no low_light_distance#60 has_night_vision#yes night_vision_distance#30 night_vision_tint #transparent night_vision_effect#none aura1_radius# |Day Forest 15ft 15/15, --set has_bright_light_vision#yes emits_bright_light#no bright_light_distance#60 has low_light_vision#yes emits_low_light#no low_light_distance#60 has_night_vision#yes night_vision_distance#15 night_vision_tint #transparent night_vision_effect#none aura1_radius#|}}}
1743952797
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Additional info for the uninitiated following this thread: The macros Novercallis supplied require you to install the Token Mod script. Dynamic Lighting Tool also requires this, but if installed through One-Click, will make sure that Token Mod gets installed automatically.
1743983798
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
This still needs a little more work to tease out the hardwired stuff on the checklist, but the next upgarde should allow the GM to grant the players the privilege to use the Light and Vision panels, including preset buttons and all the toggles and values.
Thank you both!