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 Issues

Hello, I'm not great with scripts.  I have 3/4 characters with darkvision and the lighting for them, even with the update works excellently.  I am looking for an option though that I can put in as a token action (my players like everything easy and laid out for them) that allows them to easily toggle the torch on and off with darkvision, and especially for my new player who does not have darkvision.  All past scripts don't seem to work that I've tried off of youtube.  Nothing seems to change when I turn the torch "on". Thank you
Not sure without more information - it's a particularly good idea to state what character sheet format you are using and game style, but for DnD 5e OGL any time that you want to modify a token you will probably need to upgrade to Pro and use tokenmod or charsetattr scripts.  (Once you have Pro status, there are many good macros that you can find in the community for what you want or develop your own.) At Plus level, best I can recommend is creating a "Torch" character sheet, drag/drop a torch token from your art library, assign it to the character sheet and allow editing by the player(s). You can then set the token light values in the Advanced tab of the token.  Your player can then move the torch with their player token.
1603647300
The Aaron
Roll20 Production Team
API Scripter
If you're using the Torch script, it only works with Legacy Dynamic Lighting currently. 
1603655000

Edited 1603655239
GM Overlord
Translator
Aaron‘s Token Mod, on the other hand, does allow for changing the UDL settings for tokens. It‘s what I use for your intended purpose.  LightOn !token-mod --on emits_bright emits_low --set bright_light_distance|?{Quelle|Fackel,=20ft|Licht,=20ft|Tanzende Lichter,=20ft|Dauerhaftes Licht,=20ft|Laterne,=30ft|Sonnenstecken,=30ft|Tageslicht,=60ft} low_light_distance|?{Quelle} LightOff !token-mod --off emits_bright emits_low
If you have api access I have buttons for my players that are widely adored and simple on/off switches.  Heres the human buttons and they utilize torch and tokenmod api's:   (Human sight in darkness aka Lights Out) !torch 5 -5 no !token-mod --set statusmarkers|-half-haze (Torch lightsource AKA lightsource on) !torch 40 20 yes !token-mod --set statusmarkers|+half-haze You can give each player a token action or just set them in your macro section and give individual players access to them as a token action.  I host alot of one shots with different players and setups and I've gotten to the point of having just about every single vision setting and lightsource setup.  I also have a key setup that is a series of question prompts and sets lighting with Torch but that one is not player friendly.  I use it for me as the DM when setting lights on maps.