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 Scripts and API's with Token Mod not working.

June 27 (2 years ago)

Hi all.

It's been a while since I DM'd as I've been a player in another VTT for some time.  I'm now DMing back in ROll20 and I want to set up a torch button as a token action for players.  I used to have this working in an old game but I can't seem to get it working now.  I've tried a few scripts from TheAaron and others from quite old posts but none seem to work.


Can someone help me with and updated script?  As I said, I am using Token mod for lots of other things and they seem to be working ok.  


Many thanks 

June 28 (2 years ago)
timmaugh
Forum Champion
API Scripter

You might be getting tripped up with the new settings in UDL. Here is a basic "light on/off" command I use. Other people have more diversified applications (bulls-eye lantern, heliomorphic arthropodic emission... pretty sure one of those isn't real).

!token-mod --set emits_bright_light|on emits_low_light|on bright_distance|5 low_distance|10 dim_light_opacity|0.75

Play with the number until you get the effect you're looking for.

June 28 (2 years ago)

Edited June 28 (2 years ago)
The Aaron
Roll20 Production Team
API Scripter

Hi Mike, can I suggest trying Keith Curtis's very excellent Dynamic Light Tool: https://app.roll20.net/forum/permalink/11316788/

It's a beautiful script for getting lighting and vision working and it's in the 1-click. 

Additionally, can you post the command you're using that's not working and describe how it's failing?  Also, are you using the latest version of TokenMod?

August 24 (1 year ago)
Enrique E.
Pro
Marketplace Creator


The Aaron said:

Hi Mike, can I suggest trying Keith Curtis's very excellent Dynamic Light Tool: https://app.roll20.net/forum/permalink/11316788/

It's a beautiful script for getting lighting and vision working and it's in the 1-click.


Curtis' work is just a masterpiece for the DMs, I can't praise it enough. But I've found a little shortcoming: I can't create a macro to let the players manage their own light sources. I t is possible to do it with TokenMod? Just a simple dropdown menu with the usual options and a "Turn Off!" that I can make into a Token Action.