tokens.moveCount: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: {{code|tokens.moveCount}} You can use this variable in {{code|onTokenMove}} and {{code|onMultipleTokensMove}} events to find out how many tokens were moved. ==usage== <source lang="m...)
 
No edit summary
Line 1: Line 1:


{{code|tokens.moveCount}}
{{code|tokens.moveCount}}
Line 10: Line 9:
<source lang="mtmacro" line>
<source lang="mtmacro" line>
<!-- @onMultipleTokensMove -->
<!-- @onMultipleTokensMove -->
<!-- cance movement if more than one token was moved -->
<!-- cancel movement if more than one token was moved -->
[h, if(tokens.moveCount>1): tokens.denyMove = 1]
[h, if(tokens.moveCount>1): tokens.denyMove = 1]
</source>
</source>

Revision as of 07:29, 29 May 2012

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]