Actions are what happens when the conditions hold. There are 57, and around twenty of them carry almost all UMS work.
| Create Unit | Spawn units at a location. |
|---|---|
| Create Unit with Properties | Spawn units with set hit points, energy, invincibility and so on. |
| Kill Unit | Kill all of a player's units of a type, with the death animation. |
| Kill Unit At Location | Kill only those inside a location. |
| Remove Unit | Delete units with no death effect. |
| Remove Unit At Location | Delete only those inside a location. |
| Give Units to Player | Transfer ownership of units to another player. |
| Move Unit | Teleport units to another location. |
| Order | Issue a move, attack or patrol order. |
| Modify Unit Hit Points | Set hit points as a percentage. |
| Modify Unit Shield Points | Set shields as a percentage. |
| Modify Unit Energy | Set energy as a percentage. |
| Modify Unit Hanger Count | Adjust interceptor or scarab counts. |
| Modify Unit Resource Amount | Change how much is left in a resource unit. |
| Set Invincibility | Turn invulnerability on or off. |
| Set Doodad State | Open or close doors and other doodads. |
| Run AI Script | Run an AI script for a player. |
| Run AI Script At Location | Apply an AI script to units inside a location. |
| Mute Unit Speech | Silence unit speech, used during cutscenes. |
| Unmute Unit Speech | Restore unit speech. |
| Set Deaths | Set, add to or subtract from a death counter. This is the core action for variables. |
|---|---|
| Set Resources | Adjust minerals and gas. |
| Set Score | Adjust score. |
| Set Switch | Set, clear or toggle a switch. |
| Set Alliance Status | Change alliance between players. |
| Move Location | Snap a location onto a unit. The core of area checks and tracking. |
|---|---|
| Center View | Centre the player's view on a location. |
| Minimap Ping | Flash a ping on the minimap. |
| Display Text Message | Print a message on screen. |
|---|---|
| Transmission | Play a portrait, a sound and a message together. |
| Talking Portrait | Show a unit portrait talking. |
| Play WAV | Play a sound file. |
| Set Mission Objectives | Set the text in the mission objectives panel. |
| Preserve Trigger | Keep this trigger alive. Leave it out and it fires exactly once. |
|---|---|
| Wait | Wait the given number of milliseconds. |
| Comment | Attach a description to a trigger. Does nothing else. |
| Set Countdown Timer | Set the countdown timer. |
| Pause Timer | Stop the countdown timer. |
| Unpause Timer | Restart the countdown timer. |
| Pause Game | Freeze the game. Single-player only. |
| Unpause Game | Resume the game. |
| Victory | End the scenario in victory for this player. |
|---|---|
| Defeat | End the scenario in defeat for this player. |
| Draw | End the scenario in a draw for everyone. |
| Set Next Scenario | Choose which scenario loads next. |
| Leaderboard (Control) | Rank players by units held. |
|---|---|
| Leaderboard (Control At Location) | Rank by units held inside a location. |
| Leaderboard (Kills) | Rank by kills. |
| Leaderboard (Points) | Rank by score. |
| Leaderboard (Resources) | Rank by resources. |
| Leaderboard (Greed) | Rank by proximity to a resource goal. |
| Leaderboard Goal (Control) | Units-held ranking with a target. |
| Leaderboard Goal (Control At Location) | Location units-held ranking with a target. |
| Leaderboard Goal (Kills) | Kill ranking with a target. |
| Leaderboard Goal (Points) | Score ranking with a target. |
| Leaderboard Goal (Resources) | Resource ranking with a target. |
| Leaderboard Computer Players | Choose whether computer players appear in the ranking. |
The leaderboard actions drive StarCraft's own ranking panel in the top right. Most modern maps draw their own HUD with EUD instead, but for a simple map this is still the fastest way to show standings.
Wait becomes unusable once you speed the trigger loop up. As in the previous lesson, count delays with a death counter instead.
