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

From Roll20 Wiki

Revision as of 03:51, 22 January 2015 by Stephen L. (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
API ScriptAuthor: Stephen L
Version: 2.0
Last Modified: 2015-01-21
Code: Its A Trap
Dependencies: none
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.

Contents

Syntax

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!

Changelog

See GitHub commit log/wiki page history.