## Setting Triggers

### Accessing the Triggers Window

- Access the Triggers Window through the Mission menu.

### Triggers Window Elements

- Trigger list on the left shows all the triggers present in this mission. Each top-level trigger is its own trigger chain, much like a script.

- The buttons next to the Trigger list allow you to create new triggers and change the order of triggers.

- The right side of the window shows the details of the currently selected trigger from the Trigger list.

### Creating New Top-Level Triggers

- Click New Trigger to create a new top-level trigger. It will be selected by default.

- All top-level triggers are processed simultaneously and independently.

### Creating Child Triggers

- Select the trigger you wish to be the parent, then click New Child. The child will be selected by default.

- This creates a trigger chain, which behaves like a script. The top-level trigger is processed first. Once its conditions are met, its actions are executed, and control passes to its children.

- Note that a trigger can have more than one child. In this case, once the parent trigger has executed, all of the child triggers become active. The first child trigger to meet its conditions gets executed and become the new parent.

### Rearranging Triggers

- Top-level triggers can be rearranged with the Move Up and Move Down buttons. Note that this is purely for organizational purposes; since all top-level trigger are processed simultaneously.

- Move Up and Move Down have no effect on child triggers.

### Deleting Triggers

- Select a top-level or child trigger and click Delete.

### Inserting Triggers

- Select a top-level or child trigger and click Insert to insert a new trigger above that trigger.

### Trigger Elements

Name: Name of the trigger, purely for your convenience.

Initially Enabled: Whether the trigger begins enabled. Some triggers you may not want enabled initially, having them enabled as the action of another trigger.

One-Shot: A one-shot trigger will execute down through its child triggers to the end only once. A trigger not marked as one-shot will return control to the top-level trigger once its final child trigger has executed.

Trigger Force Button: Force the trigger to execute. Useful for testing triggers. The game should be un-paused for this to be effective.

Condition Boolean Type: Determines whether any of the conditions must be met, all of the conditions must all be met, or all of the conditions must be met at the same time.

Condition List: Lists all the conditions for this trigger. See Condition Types.

Condition New/Delete: Creates and deletes conditions. The order of conditions is irrelevant.

Action List: Lists all the actions that get executed when this trigger's conditions are met. See Action Types.

Action New/Delete: Creates and deletes actions. The order of actions is irrelevant.

Action Execute: Forces only the selected action to execute. Useful for testing triggers.

### Editing while un-paused

- Triggers can be edited while un-paused.