Character Vault
Any Concept / Any System
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
(Script Use)
m (235259 moved page Script:ItsATrap to Script:It's a Trap)

Revision as of 06:46, 22 January 2015

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.



none. Traps are set up through token interaction. See below.

Installation and Configuration

Copy the script's code, available from the menu on the right and stored at Roll20's API GitHub Repository. Paste the code into a new script in your campaign's 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!


See GitHub commit log/wiki page history.