Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am TheWhiteWolves on github.
  • I am thewhitewolves (https://keybase.io/thewhitewolves) on keybase.
  • I have a public key whose fingerprint is 0061 B8D6 7290 BC21 8ED7 46C0 D411 76FE 6427 4378

To claim this, I am signing this object:

@TheWhiteWolves
TheWhiteWolves / Interpolated Trap Detection Revision
Created July 24, 2014 19:18
Roll20 API script: Checks if a character token moved through a trapped square during its movement.
/**
* Advanced trap-detection script
*
* A script that checks the interpolation of a token's movement to detect
* whether they have passed through a square containing a trap.
*
* A trap can be any token on the GM layer for which the cobweb status is
* active. Flying tokens (ones with the fluffy-wing status or angel-outfit
* status active) will not set off traps unless the traps are also flying.
*