
I've created a trap script that is not only very easy to define traps with, but also detects if your players move through a trapped square during their movement. This works even if they didn't end their movement on the trap!
If the player activates a trap during their movement, Admiral Ackbar will alert everyone, the player's token will be moved to the trap, and the player's token will receive a status marker to indicate that they are trapped. This system also supports flying tokens. If a character token is flying, they will only activate traps that are also flying.
To create traps:
Create a token on the GM layer with the "cobweb" status marker enabled. That is all. Easy, with no need to manually set trap coordinates in the script! If the trap also affects flying characters, also enable either the "fluffy-wing" or "angel-outfit" status.
I'll have fun with this in my campaign. I hope other GMs find this useful as well!
https://github.com/Roll20/roll20-api-scripts/tree/master/Its%20A%20Trap
Notice: Requires the additional scripts mentioned in the header comment.
If the player activates a trap during their movement, Admiral Ackbar will alert everyone, the player's token will be moved to the trap, and the player's token will receive a status marker to indicate that they are trapped. This system also supports flying tokens. If a character token is flying, they will only activate traps that are also flying.
To create traps:
Create a token on the GM layer with the "cobweb" status marker enabled. That is all. Easy, with no need to manually set trap coordinates in the script! If the trap also affects flying characters, also enable either the "fluffy-wing" or "angel-outfit" status.
I'll have fun with this in my campaign. I hope other GMs find this useful as well!
https://github.com/Roll20/roll20-api-scripts/tree/master/Its%20A%20Trap
Notice: Requires the additional scripts mentioned in the header comment.