Skip to content

28 — Global Set...

Sets one of the scenario's fifty global variables.

Editor data
Numeric ID
28
Engine ID
TACTION_SET_GLOBAL
Editor name
Global Set...
Need token
NEED_GLOBAL
Parameters
  1. Global variableglobal-variable
Attachment
none
INI example
[Actions]
<TriggerID>=1,28,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
  • Setting a global that is already set does nothing further. Everything the action produces beyond the stored value follows from the value changing, so a second firing on the same global raises no events and restarts no countdown.
  • 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.