Trigger Editor

The Trigger Editor is the part of the Starcraft 2 Editor that lets you modify and create triggers. Triggers let you give functionality to your map. For example, you can define how a unit reacts when another unit enters a specific region or you can set how the camera behaves when certain events occur.

Layout
On the left side, a list of all the map's elements are shown in a list. These elements do not necessarily have to be triggers as they can also be global variables, function definitions, etc. You can also organize your elements in folders, which authors are encouraged to use to make their maps better to understand. Using comments also improves the readability of your trigger system. Comments, which are helpful prompts that are ignored by the game, can be added either in the list to the left or even in the definition pane on the right.

On the right side is the definition pane. It shows how the selected element is defined. Say, for example, you select a trigger: the trigger's events, conditions, variables and actions will appear here. When you select anything in the definition pane, a helpful sentence will show up at the bottom that describes exactly what the selected element does. Clicking the underlined words lets you set parameters for whatever you have selected.

More on Triggers
Below are links to more articles on the wiki that have to do with triggers.


 * Triggers
 * Events
 * Conditions
 * Variables
 * Variable Types
 * Preset Types
 * Actions
 * Functions
 * Trigger Library