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 not working

1664301387
I've got the Torch script installed in my campaign - phenomenal idea - but am having some issues with it not actually creating any lighting or flickering. The script and token mod are both running in my campaign. If I drop a new token on the token layer then select it and run either '!torch' or '!flicker-on', I can see that it creates an object on the dynamic lighting layer (which twitches around if flicker is used), but doesn't set any light to be emitted for it. If I enable light manually on the object on the lighting layer then it kinda works, but doesn't flicker. Any ideas? Am I missing a required mod?
1664302529
Some further research indicates torch only works with legacy dynamic lighting :-( Does anyone have any suggestions for how we could achieve a flickering light effect?
1664303185
The Aaron
Forum Champion
API Scripter
I have a UDL version of Torch that I need to test before releasing it.&nbsp; If you want to give it a try, that would be super helpful for me!&nbsp;&nbsp; <a href="https://gist.github.com/shdwjk/b6a6c88d6e0c59f9308f0ff4fef7756b" rel="nofollow">https://gist.github.com/shdwjk/b6a6c88d6e0c59f9308f0ff4fef7756b</a>
1664304202
More than happy to - I'm running CoS at the moment, so this could be perfect.
The Aaron said: I have a UDL version of Torch that I need to test before releasing it.&nbsp; If you want to give it a try, that would be super helpful for me!&nbsp;&nbsp; <a href="https://gist.github.com/shdwjk/b6a6c88d6e0c59f9308f0ff4fef7756b" rel="nofollow">https://gist.github.com/shdwjk/b6a6c88d6e0c59f9308f0ff4fef7756b</a> i'll be happy to test it. Can you just remind us about the commands as i tried just "!torch" with nothing selected and no help is showing up.&nbsp; Also can't remember if it is needed to have the token named torch or if it can work on any token' name once selected...&nbsp;
1664381546
The Aaron
Forum Champion
API Scripter
Sure, you can use: !torch --help to get the help. Generally speaking, everything in the original post should work:&nbsp; <a href="https://app.roll20.net/forum/permalink/1104897/" rel="nofollow">https://app.roll20.net/forum/permalink/1104897/</a> As a review, this script is quite old, so uses a not as wonderful syntax.&nbsp; Here are some examples: 30ft bright, 30ft more dim, visible to all players for the selected tokens !torch 60 40ft bright, 20ft more dim, visible to all players for the selected tokens !torch 60 20 60ft night vision for the selected tokens !torch 60 - no Clearing light settings: !snuff For flicker, it works the same as !torch/!snuff, but uses: !flicker-on !flicker-off Hopefully that helps smooth things along. =D Thanks for taking a look, I really appreciate the help!
1664548554
So, this seems to be working really well so far. With the flicker functionality, is there any way the light can flicker on and off periodically?
1664550957
The Aaron
Forum Champion
API Scripter
Not built in, but that could be added as an enhancement.&nbsp; What settings would you want for that?
1664572375
Good question - I was thinking of something akin to a sputtering candle or torch, maybe not going off completely, but dimming for a few seconds.
1665430234
I've been trying this out in my latest game, and seem to have hit a small problem, when I use the !snuff command it turns off the token's vision as well as the light.&nbsp; Is there a different command that would keep the vision settings and just give the character a light to see by without putting them entirely in the dark.