Actions

Actions are what define what your trigger will do once triggered. The actions you can perform using the Trigger Editor span from spawning units onto the map to fully programming the game's AI for your map.

Click here to view a list of built-in actions.

Looping Actions
A loop can be used to perform a set of actions more than once. For example, using the for each integer loop lets you use a counter to repeat an action a specific number of times (called a counter-controlled loop).

Conditional Actions
Use any of the conditional actions to perform a set of actions, only under certain conditions. A typical conditional action is the If then else action which checks the condition and perform a set of actions if the conditions are true or another set of actions if the conditions are false.

Wait
A certain number of actions perform a Wait. While Waiting, execution of the trigger is paused. Other triggers still continue to run and, in fact, a trigger exactly the same as the waiting trigger may start if an event occurs again.