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

[help] torch

Api stopped working,  is it still supported  Is the Aaron out there
I just re-installed it and it wasn't working for me, either, but I couldn't figure out why. My favorite script!
1671589497
The Aaron
Roll20 Production Team
API Scripter
Hmm. I'll take a look. It should work for LDL and UDL both. 
That is awesome,   has not worked for me for some time.  It would be good to get back and working.   Small question for your.  As the DM am i able to set the torch API for my players, i think i would rather them not accidently pick something they do not have.
I use TokenMod for lighting with a macro.  I also give the players (by way of all tokens) access to a version of the macro that lets them choose the kind of light source they are using (torch, candle, etc)  Light Sources macro: ?{Light options: |Candle (br5/dim10), !token-mod --set has_bright_light_vision#on emits_bright_light#on bright_light_distance#5 emits_low_light#on low_light_distance#5 |Lamp (br15/dim45), !token-mod --set has_bright_light_vision#on emits_bright_light#on bright_light_distance#15 emits_low_light#on low_light_distance#30 |Torch/Light Cantrip (br20/dim40), !token-mod --set has_bright_light_vision#on emits_bright_light#on bright_light_distance#20 emits_low_light#on low_light_distance#20 |Hooded Lantern (br30/dim60), !token-mod --set has_bright_light_vision#on emits_bright_light#on bright_light_distance#30 emits_low_light#on low_light_distance#30 |Extinguish (none), !token-mod --set emits_bright_light#off emits_low_light#off } My vision setting macro (stolen from a forum post somewhere): /w gm ?{ Light/Vision options: |Normal vision, !token-mod --set has_bright_light_vision#on has_night_vision#off emits_bright_light#off emits_low_light#off |Darkvision (60ft), !token-mod --set has_bright_light_vision#on has_night_vision#on night_vision_distance#60 night_vision_tint#666666 emits_bright_light#off emits_low_light#off |Darkvision (90ft), !token-mod --set has_bright_light_vision#on has_night_vision#on night_vision_distance#90 night_vision_tint#666666 emits_bright_light#off emits_low_light#off |Darkvision (120ft), !token-mod --set has_bright_light_vision#on has_night_vision#on night_vision_distance#120 night_vision_tint#666666 emits_bright_light#off emits_low_light#off |Darkvision (300ft), !token-mod --set has_bright_light_vision#on has_night_vision#on night_vision_distance#300 night_vision_tint#666666 emits_bright_light#off emits_low_light#off |Candle (br5/dim10), !token-mod --set has_bright_light_vision#on emits_bright_light#on bright_light_distance#5 emits_low_light#on low_light_distance#5 |Lamp (br15/dim45), !token-mod --set has_bright_light_vision#on emits_bright_light#on bright_light_distance#15 emits_low_light#on low_light_distance#30 |Torch/Light Cantrip (br20/dim40), !token-mod --set has_bright_light_vision#on emits_bright_light#on bright_light_distance#20 emits_low_light#on low_light_distance#20 |Hooded Lantern (br30/dim60), !token-mod --set has_bright_light_vision#on emits_bright_light#on bright_light_distance#30 emits_low_light#on low_light_distance#30 |Blind (no vision), !token-mod --set has_bright_light_vision#off has_night_vision#off emits_bright_light#off emits_low_light#off }