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 api script - is it still supported?

December 26 (1 year ago)

Edited December 26 (1 year ago)
nico
Pro

I installed the Torch API script from the script library:

Spinning up new sandbox...
"Loading character sheet data..."
"Starting webworker script..."
"Loading 0 translation strings to worker..."
"-=> Torch v0.8.13 <=-  [Tue Aug 06 2019 01:03:02 GMT+0000 (Coordinated Universal Time)]"
"  > Updating Schema to v0.1 <"

The help is working fine:

  • !torch help
  • => this shows me the help

But I have no idea how to use it:

  • I select a token
  • I type "!torch"
  • => Nothing happens. No error message. And the token doesn't emit any light.

If I edit the token and edit its dynamic light properties manually, it emits light as expected. 

December 26 (1 year ago)
nico
Pro

OK, after a bit of searching, this question seems to come up a lot, and for good reason: the script does NOT work with the "new" lighting system. It's a shame not to put it in the doc, it would save people a lot of time.

The solution is to uninstall "torch". Instead, install "tokenmod", then create the macros below (to quote Surren):

As an example, this is someone using a torch:
!token-mod --on has_bright_light_vision emits_bright_light emits_low_light --set bright_light_distance#20 low_light_distance#20
and this is when the torch has been put out:
!token-mod --on has_bright_light_vision emits_bright_light emits_low_light --set bright_light_distance#0 low_light_distance#0
This is someone with 60ft Darkvision:
!token-mod --on has_bright_light_vision has_night_vision --set night_vision_distance#60
December 27 (1 year ago)
The Aaron
Roll20 Production Team
API Scripter

Sorry for the trouble. I'll try and push an update to make the issue explicit soon.