+ "description": "# It's A Trap!\r\r###### Updates\r\r_3.1_\r* When you open the trap creation wizard for a token, that token is automatically set to be a trap.\r* You can now specify whether a trap is actually a trap, a secret door, or some other hidden secret.\r* You can now specify which layer individual traps are revealed to (default is map layer). This deprecates the revealTrapsToMap user option.\r* Trap activation messages now tell you who is being targeted by the trap.\r* Trap properties in the menu now have tooltips to explain them.\r\r_3.0_\r* Traps are now modified through a chat menu instead of editing the JSON by hand.\r* Traps can now be disabled so that they won't activate but can still be spotted.\r* There is now an option to reveal the trap token when it is spotted. This, along with the disable option, can be used to create hidden things that are not necessarily traps such as secret doors.\r* The script exposes a TrapTheme base class.\r* The script exposes a TrapEffect class.\r* Fixed 'revealTrapsToMap' user option bug.\r* Fixed 'GM Only' output bug.\r* Note: Some things have been deprecated and some interfaces have been changed in this version, which is why I decided to bump up its major version. On that note, TrapThemes created for v2.X are no longer compatible. Please use v3.X TrapThemes with this new version.\r\rThis is a script that allows GMs to quickly and very easily set up traps,\rsecret doors, and other hidden things on the GM layer, and detect when tokens\ron the objects layer move over them. This trap detection even works for tokens\rmoving by waypoints.\r\rCombined with modules called Trap Themes, this script also allows system-specific\rautomation of trap effects and passive perception used to spot them.\r\r### Creating traps:\r\rPlace the token for your trap on the ```GM layer```. Give it the ```cobweb```\r<img src=\"http://game-icons.net/icons/lorc/originals/png/cobweb.png\" width=\"32\"> status marker.\rThen, select the trap token and activate its 'ItsATrap_trapCreationWizard' token macro.\rThis will present a menu for setting up the trap's configurations.\r\r### Activating traps:\r\rIf a token moves across a trap at ANY point during its movement, the trap will\rbe activated!\r\rA trap can also be manually activated by clicking the 'Activate Trap' button\rin the trap's configuration menu.\r\r### TrapThemes:\r\rTrapThemes are used to provide support for formatting messages for traps and\rautomating system-specific trap activation and passive search mechanics.\r\rIf you are using the One-Click API Library, you can specify which theme to use\rin the ```theme``` user option.\r\rBy default the ```default``` theme will be used. This is a very basic,\rsystem-agnostic TrapTheme which provides support for the basic TrapEffect properties\rand has no passive search mechanics.\r\rAdditional system-specific themes will be made available as their own API scripts.\rIf you would like to implement a TrapTheme for your system, take a look at\rthe ```default``` or ```5E-OGL``` TrapThemes as an example to get you started.\r\r### Support\r\rIf you experience any issues while using this script or the trap themes, or if\ryou have a neat suggestion for a new feature, please reply to this thread:\rhttps://app.roll20.net/forum/post/3280344/script-its-a-trap-v2-dot-3\r",
0 commit comments