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

Token-mod question

March 20 (2 years ago)

Do you have a moment to help me understand how to template a tokenmod command to cause a token to emit bright light 10, dim light 10, and have a color of html color FF3F33, as an example?


Thanks

March 20 (2 years ago)

Edited March 20 (2 years ago)

I use this macro to set a token to have the properties that you specified.  Run the macro, and the line . --ids @{target|Target 1|token_id}  will cause it to prompt you to select the token. The line  has_directional_bright_light|off and night_vision|off turns off those properties in case they were previously in effect for that token.

!token-mod {{
--set 
emits_bright_light|on
bright_light_distance|10
emits_low_light|on
low_light_distance|10
light_color|#ff3ff33
has_directional_bright_light|off
night_vision|off
--ids @{target|Target 1|token_id}
}}


March 20 (2 years ago)

Thank you Rick