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 Issues

So, I have downloaded the Torch API and I am having some serious issues. I cant get it to work...at all. The API is installed, and I have set up a Macro for the character in the abilities section of the character sheet that looks like this: !torch 40 20 yes But, when clicking the macro, nothing happens. What I want is for my players to be able to light a torch as and when they need it. I am totally new to APIs and scripting and macros, so, I would appreciate any help that I can get. :)
1597785317
David M.
Pro
API Scripter
Things to check in Page Settings: Dynamic Lighting must be enabled on the page in question, and Global Illumination must be unchecked. After that, if you are testing this as the GM, then the opacity settings will attenuate the lighting fx you will see. To see as a player, you can select a nearby token with sight and press Ctrl-L. 
Hello, Thank you for responding. Yeah, I have checked all that. I am using the new Dyamic lighting, will that effect it at all?
1597862795
David M.
Pro
API Scripter
Ah yes, sorry, that is almost certainly the problem, and should have been the first thing I asked. I did a quick poking around in the Torch code and didn't see anything that referenced any of the UDL light settings, so it doesn't look like it is supported. The latest version of Token-mod has some UDL support, so I'd recommend using that. Well, I'd actually recommend sticking with Legacy DL, but if you are really into UDL, use Token-mod for setting light.