init.denyChange: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page Init.denyChange to init.denyChange: Converting page titles to lowercase) |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
==Usage== | ==Usage== | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
<!-- @onInitiativeChangeRequest --> | <!-- @onInitiativeChangeRequest --> | ||
<!-- cancel change if condition --> | <!-- cancel change if condition --> | ||
[h, if(condition): init.denyChange = 1] | [h, if(condition): init.denyChange = 1] | ||
</ | </syntaxhighlight> | ||
===Version Changes=== | ===Version Changes=== | ||
Line 18: | Line 18: | ||
[[Category:Special Variable]] | [[Category:Special Variable]] | ||
Pages with ignored display titles |
Latest revision as of 23:59, 4 July 2023
init.denyChange
• Introduced in version 1.8
You can set this variable to 1
in an onInitiativeChangeRequest
event handler to cancel the requested initiative change. It is important to remember that there can be multiple handlers for this event, so even if one handler has allowed the change there may be another one that will deny it.
See the Guide to Initiative Events for more details.
Usage
<!-- @onInitiativeChangeRequest -->
<!-- cancel change if condition -->
[h, if(condition): init.denyChange = 1]
Version Changes
- 1.8 - Added variable for use in Initiative Events
Pages with ignored display titles