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

Switch tokens like rollable table, one has light, one does not?

Curious if this is possible in the hassle free way I'd like it to work, I'm still new to API and getting it work thus far has eluded me, it's probably me being me and not searching in the right places. But what I'm looking to do is be able to switch from token to another with one token having a light radius and the other not having one, to represent a torch or sconce when it's lit and when it's unlit. Is this possible as I would like it to be? And if so how user friendly would it be? Thanks in advance for any help/feedback.
Since you're Pro, I would suggest using the TokenMod script combined with a macro for this. The macro I use is: ?{ Light/Vision options: |Normal vision,!token-mod --set light_radius#1 light_dimradius#0 --on light_otherplayers |Off,!token-mod --set light_radius#0 light_dimradius#0 --off light_otherplayers |Darkvision,!token-mod --set light_radius#60 light_dimradius#=-5 --off light_otherplayers |Candle,!token-mod --set light_radius#10 light_dimradius#7 --on light_otherplayers |Lamp,!token-mod --set light_radius#30 light_dimradius#17 --on light_otherplayers |Torch/Light Cantrip,!token-mod --set light_radius#40 light_dimradius#22 --on light_otherplayers |Hooded Lantern/Bonfire,!token-mod --set light_radius#60 light_dimradius#31 --on light_otherplayers |Daylight Spell,!token-mod --set light_radius#120 light_dimradius#61 --on light_otherplayers } It sends commands via TokenMod to set the lighting on the selected token(s). You may want to customize the numbers to your liking.
I'll take a look at this, thanks.
this is nice and tidy -- ty!  I had a separate macro for some of these
noted for when i have time to work these in.