
Update v0.11 -- Minor update to restrict rotation along with movement. This brought up by William R. in this thread: https://app.roll20.net/forum/post/1358099/#post-13...
Ari K. was looking for a way to prevent players from moving their tokens in a theater of the mind game. This is a script for that purpose.
TokenLock allows the GM to selectively restrict the moving of player tokens. Since there isn't any way to tell who is moving a token from the on('change:graphic',...) callback, this script assumes that any token with a controlled by (either on the token or the character that token represents) is a player token.
TokenLock can be either Locked or Unlocked. When Locked, it will move any moved player token back to the spot where it was before being moved. When Unlocked, player token movement works as normal. Cards can still be moved no matter what lock state TokenLock is in.
There are 3 commands:
- !tl lock -- This locks the tokens.
- !tl unlock -- This unlocks the tokens.
- !tl -- This will print out the help and instructions
Git: https://github.com/shdwjk/Roll20API/blob/master/To...