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

Dynamic Light Macro help

1641420660

Edited 1641421203
Im trying to make a selectable light setting for Dynamic Lighting. So far I have !token-mod --set ?{Vision|Torch, --on emits_bright_light emits_low_light --set bright_light_distance 20 low_light_distance 20| Hooded Lantern, --on emits_bright_light emits_low_light --set bright_light_distance 30 low_light_distance 30| Lamp, --on emits_bright_light emits_low_light --set bright_light_distance 15 low_light_distance 15| Candle, --on emits_bright_light emits_low_light --set bright_light_distance 2 low_light_distance 5| Bullseye Lantern, --on emits_bright_light emits_low_light --set bright_light_distance 60 low_light_distance 60| No Light, --off emits_bright_light emits_low_light --set } Now, the torch selection and the no light selection works fine but the other selections just give off the torchlight setting. Where am I going wrong.
You've got some extra parameters in there, and you're missing the separators for the arguments: !token-mod ?{Vision| Torch, --on emits_bright_light emits_low_light --set bright_light_distance#20 low_light_distance#20| Hooded Lantern, --on emits_bright_light emits_low_light --set bright_light_distance#30 low_light_distance#30| Lamp, --on emits_bright_light emits_low_light --set bright_light_distance#15 low_light_distance#15| Candle, --on emits_bright_light emits_low_light --set bright_light_distance#2 low_light_distance#5| Bullseye Lantern, --on emits_bright_light emits_low_light --set bright_light_distance#60 low_light_distance#60| No Light, --off emits_bright_light emits_low_light }
Fantastic....This is a great help. Really appreciated.
Im trying to add a toggle to add and remove 60ft darkvision to this macro. Any ideas on the wording of this...thanks.
Try adding these: Darkvision On, --set night_vision_distance#60| Darkvision Off, --set night_vision_distance#0|
Your a top man :)