Actions
An action is what a trigger does once its conditions hold. These are all of them:
| Action | Does |
|---|---|
| Center View | moves the player's screen to a location |
| Comment | nothing in the game; names the trigger in an editor |
| Create Unit | creates units at a location |
| Create Unit with Properties | creates units with hit points, energy and other properties set |
| Defeat | the player loses |
| Display Text Message | shows text on the player's screen |
| Draw | ends the game in a draw |
| Give Units to Player | hands units at a location to another player |
| Kill Unit | kills every unit of a type a player owns |
| Kill Unit At Location | kills units in a location |
| Leader Board Control | a leaderboard of units owned |
| Leader Board Control At Location | a leaderboard of units owned in a location |
| Leader Board Greed | a leaderboard of ore and gas towards a goal |
| Leader Board Kills | a leaderboard of kills |
| Leader Board Points | a leaderboard of a score |
| Leader Board Resources | a leaderboard of ore or gas |
| Leaderboard Computer Players | whether computer players are on leaderboards |
| Leaderboard Goal Control | a leaderboard of units owned, towards a goal |
| Leaderboard Goal Control At Location | the same, in a location |
| Leaderboard Goal Kills | a leaderboard of kills, towards a goal |
| Leaderboard Goal Points | a leaderboard of a score, towards a goal |
| Leaderboard Goal Resources | a leaderboard of ore or gas, towards a goal |
| Minimap Ping | pings a location on the player's minimap |
| Modify Unit Energy | sets units' energy to a percentage |
| Modify Unit Hanger Count | adds interceptors or scarabs |
| Modify Unit Hit Points | sets units' hit points to a percentage |
| Modify Unit Resource Amount | sets how much a mineral field or geyser holds |
| Modify Unit Shield Points | sets units' shields to a percentage |
| Move Location | centres a location on a unit |
| Move Unit | moves units from one location to another instantly |
| Mute Unit Speech | silences unit voices |
| Order | orders units to move, patrol or attack |
| Pause Game | pauses the game, in single player |
| Pause Timer | stops the countdown timer |
| Play WAV | plays a sound |
| Preserve Trigger | keeps the trigger so it can run again |
| Remove Unit | removes every unit of a type a player owns |
| Remove Unit At Location | removes units in a location |
| Run AI Script | starts a computer player's AI script |
| Run AI Script At Location | starts an AI script that uses a location |
| Set Alliance Status | makes the player an enemy or ally of another |
| Set Countdown Timer | sets the countdown timer |
| Set Deaths | changes a death count |
| Set Doodad State | turns doors and traps on or off |
| Set Invincibility | makes units invincible, or not |
| Set Mission Objectives | sets the text of the objectives screen |
| Set Next Scenario | chooses the map that follows a win |
| Set Resources | changes a player's ore or gas |
| Set Score | changes a player's score |
| Set Switch | sets, clears, toggles or randomizes a switch |
| Talking Portrait | shows a unit's portrait talking |
| Transmission | a message with a portrait, a sound and a minimap ping |
| Unmute Unit Speech | lets unit voices play again |
| Unpause Game | resumes a game Pause Game stopped |
| Unpause Timer | restarts the countdown timer |
| Victory | the player wins |
| Wait | holds the rest of the trigger for a time |
| Disable Debug Mode, Enable Debug Mode | not used |
Actions are carried out in order, for the player the trigger is running for. Actions that act on "the player" — showing text, moving the screen, winning — act on that player.