56 — Local Set...
Sets one of the scenario's fifty local variables.
Editor data
- Numeric ID
56- Engine ID
TACTION_SET_LOCAL- Editor name
- Local Set...
- Need token
NEED_LOCAL- Parameters
- Local variable
local-variable
- Local variable
- Attachment
- none
INI example
[Actions]
<TriggerID>=1,56,0,<Local variable>,0,0,0,0,Valid values
- A local variable number from 0 to 49. A number outside that range does nothing at all.
Caveats
- Setting a local 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 local 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 local-set, local-clear, global-set and global-clear events alike, so changing one variable is what lets a trigger waiting on a different one fire.
- Changing a local also restarts the elapsed-time countdown of every trigger with an event naming that local, wherever in the scenario it sits.
- A local the map declares with a starting state of 1 is already set before the scenario runs, and firing this action on it therefore does nothing.