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

Light View Control for players

Is there a script or action that allows a player to use the Ctrl-L lighting view for a token? I have players on occasion run NPC's or other players due to commitment issues, and it would be nice if they could know what the other token could/could not see in situations where they may be in different rooms/areas, etc, or different viewpoints in a combat situation.
1592321685
The Aaron
Roll20 Production Team
API Scripter
There is not.
The Aaron said: There is not. Bummer. I do it as DM, and I guess I will continue to do so!
1592322315
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Could you use token mod with @{target} to add and remove the PC as controller? !token-mod --ids@{target|token_id} --set controlledby|+Bob)  !token-mod --ids@{target|token_id} --set controlledby|-Bob)  If it works (I use this to test lighting setup on a currently logged-in  Dummy Account ) it has high potential for abuse, so be careful. With some pre-setting of ids, this could be made even more automatic: turning "off" a specific character and turning "on" another in one action.
keithcurtis said: Could you use token mod with @{target} to add and remove the PC as controller? !token-mod --ids@{target|token_id} --set controlledby|+Bob)  !token-mod --ids@{target|token_id} --set controlledby|-Bob)  If it works (I use this to test lighting setup on a currently logged-in  Dummy Account ) it has high potential for abuse, so be careful. With some pre-setting of ids, this could be made even more automatic: turning "off" a specific character and turning "on" another in one action. Let me know how it works for you, I'll add it to my token mod to-do list (still sorting out healing spells)
1592323818
The Aaron
Roll20 Production Team
API Scripter
There could be a better API solution, similar to Observer, but it would need to be written.
1592324353
The Aaron
Roll20 Production Team
API Scripter
keithcurtis said: Could you use token mod with @{target} to add and remove the PC as controller? !token-mod --ids@{target|token_id} --set controlledby|+Bob)  !token-mod --ids@{target|token_id} --set controlledby|-Bob)  If it works (I use this to test lighting setup on a currently logged-in  Dummy Account ) it has high potential for abuse, so be careful. With some pre-setting of ids, this could be made even more automatic: turning "off" a specific character and turning "on" another in one action. That gives me a good idea of a nice way to solve this in a pretty simple script.  Something that takes the currently selected token, finds all other tokens on the page controlled by the calling player, and sets their light_losangle to 0, then running it again (or with nothing selected) can set it back to what it was.  That would let you toggle the vision off/on for a players tokens pretty easily.
1592324501
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Yeah, setting the LOS angle would be a better solution than changing controller, since the player wouldn't have to mess with targeting. They would be able to select their tokens.