tokens.denyMove: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page Tokens.denyMove to tokens.denyMove: Converting page titles to lowercase)
No edit summary
Line 7: Line 7:


==usage==
==usage==
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
<!-- @onTokenMove -->
<!-- @onTokenMove -->
<!-- cance movement if condition -->
<!-- cance movement if condition -->
[h, if(condition): tokens.denyMove = 1]
[h, if(condition): tokens.denyMove = 1]
</source>
</syntaxhighlight>




[[Category:Special Variable]]
[[Category:Special Variable]]

Revision as of 17:05, 14 March 2023

tokens.denyMove


You can use this variable in the onTokenMove event to cancel the movement made.


usage

<!-- @onTokenMove -->
<!-- cance movement if condition -->
[h, if(condition): tokens.denyMove = 1]