init.denyChange

From RPTools Wiki
Revision as of 18:21, 7 September 2020 by Selquest (talk | contribs) (Creating page for init.denyChange, coming in 1.8)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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