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

Difference between revisions of "Script:ShareVision"

From Roll20 Wiki

Jump to: navigation, search
(Overview)
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{script overview
 
{{script overview
 
|name=ShareVision
 
|name=ShareVision
|author={{user profile|459831|Scott C.}}
+
|author=[[Scott C.]]
|version=1.4
+
|version=1.5
|lastmodified=2016-04-14
+
|lastmodified=2017-04-18
 
|conflicts=None}}
 
|conflicts=None}}
 +
{{cleanup}}
 +
{{main|API:Script Index}}
 +
 +
Let your players see each other around corners and through walls. Works for [[LDL|Legacy Dynamic Lighting]].
 +
  
Let your players see each other around corners and through walls.
 
  
 
==Using the Script==
 
==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).
 
​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).
  
Line 16: Line 18:
  
 
==Changelog==
 
==Changelog==
 +
'''V0.1.5 update:''' 2017-04-18 fixes an error that prevented vision sharing from working properly if you had both the overdrive and aura markers on a token.
 +
 
'''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).
 
'''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).
  

Latest revision as of 20:17, 20 September 2021

API ScriptAuthor: Scott C.
Version: 1.5
Last Modified: 2017-04-18
Code: ShareVision
Dependencies: None
Conflicts: None

Main Page: API:Script Index

Let your players see each other around corners and through walls. Works for Legacy Dynamic Lighting.


[edit] 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.

[edit] Changelog

V0.1.5 update: 2017-04-18 fixes an error that prevented vision sharing from working properly if you had both the overdrive and aura markers on a token.

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.