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:It's a Trap"

From Roll20 Wiki

Jump to: navigation, search
(3 intermediate revisions by 2 users not shown)
Line 10: Line 10:
 
This is a script that allows GMs to quickly and very easily set up traps on the GM layer, and detect when tokens on the objects layer move over them. This trap detection even works for tokens moving by waypoints.
 
This is a script that allows GMs to quickly and very easily set up traps on the GM layer, and detect when tokens on the objects layer move over them. This trap detection even works for tokens moving by waypoints.
  
== Syntax ==
+
This wiki page has been deprecated.
{{syntaxbox top|Example|nocat=true}}
+
Full information about the script, its installation, and use are documented in the Roll20 API repository on Github: https://github.com/Roll20/roll20-api-scripts/tree/master/Its%20A%20Trap
none. Traps are set up through token interaction. See below.
+
{{syntaxbox end}}
+
 
+
== Installation and Configuration ==
+
Copy the script's code, available from the menu on the right and stored at Roll20's [https://github.com/Roll20/roll20-api-scripts API GitHub Repository]. Paste the code into a new script in your campaign's [[API:Use_Guide#The_Script_Editor|API Script Editor]]. Save the new script and it will be available inside your campaign.
+
 
+
== Script Use ==
+
To set up traps:
+
 
+
Place the token for your trap on the GM layer. Give it the cobweb status marker.
+
 
+
By default, traps will only affect characters on the ground (ones that don't have a wing or angel status marker). To have a trap also affect flying characters, give it the wing or angel status marker.
+
 
+
By default, trap tokens won't appear when they are activated. If you would like the trap to become visible to the players when it is activated, give it the bleeding eye status marker.
+
 
+
To set off traps:
+
 
+
If a token moves across a trap at ANY point during its movement, the trap will be activated!
+
 
+
== Changelog ==
+
See GitHub commit log/wiki page history.
+

Revision as of 19:52, 8 December 2017

API ScriptAuthor: Stephen L
Version: 2.0
Last Modified: 2015-01-21
Code: Its A Trap
Dependencies: Token Collisions, Vector Math
Conflicts: none

This is a script that allows GMs to quickly and very easily set up traps on the GM layer, and detect when tokens on the objects layer move over them. This trap detection even works for tokens moving by waypoints.

This wiki page has been deprecated. Full information about the script, its installation, and use are documented in the Roll20 API repository on Github: https://github.com/Roll20/roll20-api-scripts/tree/master/Its%20A%20Trap