Skip to content

29 — Global Clear...

Clears one of the scenario's fifty global variables.

Editor data
Numeric ID
29
Engine ID
TACTION_CLEAR_GLOBAL
Editor name
Global Clear...
Need token
NEED_GLOBAL
Parameters
  1. Global variableglobal-variable
Attachment
none
INI example
[Actions]
<TriggerID>=1,29,0,<Global variable>,0,0,0,0,

Valid values

  • A global variable number from 0 to 49. A number outside that range does nothing at all.
Caveats
  • Clearing a global that is already clear does nothing further. Everything the action produces beyond the stored value follows from the value changing, so a firing on a global that was never set raises no events and restarts no countdown. Every global starts a scenario clear unless a campaign carried it over set.
  • A change that does happen is what admits the variable events to evaluation at all, and the mark it raises is one for the whole scenario rather than one per variable. While it stands, every tag on the general list is offered the global-set, global-clear, local-set and local-clear events alike, so changing one variable is what lets a trigger waiting on a different one fire.
  • Changing a global also restarts the elapsed-time countdown of every trigger with an event naming that global, wherever in the scenario it sits.
  • The names come from the rules tree rather than from a file of their own, so a number means the same thing in every mission of a campaign, and globals are carried across a campaign boundary into the next mission.