tokens.denyMove: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page tokens.denyMove to Tokens.denyMove without leaving a redirect: Converting page title to first-letter uppercase) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
==usage== | ==usage== | ||
< | <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] | ||
</ | </syntaxhighlight> | ||
[[Category:Special Variable]] | [[Category:Special Variable]] | ||
[[Category:Macro Function]] |
Latest revision as of 23:59, 4 July 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]