Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Script:ShareVision

From Roll20 Wiki

Revision as of 20:30, 16 June 2016 by Scott C. (Talk | contribs)

Jump to: navigation, search
API ScriptAuthor: Scott C.
Version: 1.4
Last Modified: 2016-04-14
Code: ShareVision
Dependencies: None
Conflicts: None

Let your players see each other around corners and through walls.

Using the Script

PC vs. NPC:The script determines if a character is a PC or an NPC based on the value of the character's player-name attribute. If the attribute is empty, it is an NPC. If it has any value, it is a PC.

Using the Script

​This script has no chat commands. To use the script simply add the Aura status marker to a token to share normal vision (based on available light) or the overdrive marker to share the token's light generation stats (useful for sharing DarkVision).

The normal vision share uses the default vision multiplier of 1 instead of the token's multiplier.

Changelog

V0.1.4 update: Darkvision sharing was not working properly; changed the function so that having the aura marker active triggers the normal vision sharing. Activating the overdrive marker activates Darkvision sharing. Darkvision sharing overrides the normal vision sharing, so having both markers active results in Darkvision sharing (but not two children tokens being made).

Previous Version: I have updated the script so that you can now pass the light radius and dim radius of the parent token to the child token. This will not pass the "can all player's see light" status as that seemed redundant. This does allow you to share darkvision with the party if you so choose. In order to trigger this simply use the 'overdrive' status marker (1st status in the 4th row of markers, looks like a bladestorm) in addition to the 'aura' status marker . This will trigger the script to get the light radius and dim radius values from the parent. If only the 'aura' marker is active, it will function as before; if only the 'overdrive' marker is active, there is no effect. If you no longer want Darkvision to be shared, but still want normal vision shared you will need to remove both status markers and reapply only the 'aura' marker.

-Scott C.