tokens.moveCount: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
m (Conversion script moved page tokens.moveCount to Tokens.moveCount without leaving a redirect: Converting page title to first-letter uppercase)
(No difference)

Revision as of 22:28, 9 February 2023

tokens.moveCount


You can use this variable in onTokenMove and onMultipleTokensMove events to find out how many tokens were moved.

usage

<!-- @onMultipleTokensMove -->
<!-- cancel movement if more than one token was moved -->
[h, if(tokens.moveCount>1): tokens.denyMove = 1]