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

TokenMod - UDL and Dimming Start

Good Morning all, UDL includes a "Dimming Start" distance when you use the "Dimming" Night Vision Effect. I am trying to set this in a macro using TokenMod but can't seem to figure out the correct name of the property. I have tried a few but none seem to have the desired effect: night_vision_dimming_start dimming_start dimmingstart Does anyone happen to know: (1) Is this supported in API / TokenMod at the moment? (2) If so, what is the correct name to use in order to set it in a macro? If it matters the macro line I am using is: !token-mod --set has_night_vision#1  night_vision_distance#5 night_vision_tint#transparent night_vision_effect#dimming dimming_start#0 emits_bright_light#0  emits_low_light#0 lightColor#transparent
1634473936
Andreas J.
Forum Champion
Sheet Author
Translator
The info is found in the TokenMod handout. Found the answer by ctrl+f in the external journal, way quicker than manually scrolling through the handout in-game. Night Vision Effect Night Vision Effect specifies how the region of night vision around a token looks. There are two effects that can be turned on: dimming and nocturnal . You can disable Night Vision Effects using off , none , or leave the field blank. Any other value is ignored. Available Night Vision Effect Properties: night_vision_effect Enable the nocturnal Night Vision Effect on a token: !token-mod --set night_vision_effect|nocturnal Enable the dimming Night Vision Effect on a token, with dimming starting at 5ft from the token: !token-mod --set night_vision_effect|dimming Dimming can take an additional argument to set the distance from the token to begin dimming. The default is 5ft if not specified. Distances are provided by appending a another | character and adding a number followed by either a unit or a % : !token-mod --set night_vision_effect|dimming|5ft !token-mod --set night_vision_effect|dimming|1u Using the % allows you to specify the distance as a percentage of the Night Vision Distance. Numbers less than 1 are treated as a decimal percentage. Both of the following are the same: !token-mod --set night_vision_effect|dimming|20% !token-mod --set night_vision_effect|dimming|0.2% You can also use operators to make relative changes. Operators are + , - , * , and / !token-mod --set night_vision_effect|dimming|+10% !token-mod --set night_vision_effect|dimming|-5ft !token-mod --set night_vision_effect|dimming|/2 !token-mod --set night_vision_effect|dimming|*10
Thanks Andreas, I did try looking at the help file in game but didn't manage to find the dimming part for some reason. Thank you!