SCRMaps
/
Sign in

Every action

All 57. You will not need most of them, but you need to know they exist.

10 min read

Actions are what happens when the conditions hold. There are 57, and around twenty of them carry almost all UMS work.

Working with units
Create UnitSpawn units at a location.
Create Unit with PropertiesSpawn units with set hit points, energy, invincibility and so on.
Kill UnitKill all of a player's units of a type, with the death animation.
Kill Unit At LocationKill only those inside a location.
Remove UnitDelete units with no death effect.
Remove Unit At LocationDelete only those inside a location.
Give Units to PlayerTransfer ownership of units to another player.
Move UnitTeleport units to another location.
OrderIssue a move, attack or patrol order.
Modify Unit Hit PointsSet hit points as a percentage.
Modify Unit Shield PointsSet shields as a percentage.
Modify Unit EnergySet energy as a percentage.
Modify Unit Hanger CountAdjust interceptor or scarab counts.
Modify Unit Resource AmountChange how much is left in a resource unit.
Set InvincibilityTurn invulnerability on or off.
Set Doodad StateOpen or close doors and other doodads.
Run AI ScriptRun an AI script for a player.
Run AI Script At LocationApply an AI script to units inside a location.
Mute Unit SpeechSilence unit speech, used during cutscenes.
Unmute Unit SpeechRestore unit speech.
Changing values
Set DeathsSet, add to or subtract from a death counter. This is the core action for variables.
Set ResourcesAdjust minerals and gas.
Set ScoreAdjust score.
Set SwitchSet, clear or toggle a switch.
Set Alliance StatusChange alliance between players.
Locations and the camera
Move LocationSnap a location onto a unit. The core of area checks and tracking.
Center ViewCentre the player's view on a location.
Minimap PingFlash a ping on the minimap.
Messages and presentation
Display Text MessagePrint a message on screen.
TransmissionPlay a portrait, a sound and a message together.
Talking PortraitShow a unit portrait talking.
Play WAVPlay a sound file.
Set Mission ObjectivesSet the text in the mission objectives panel.
Flow control
Preserve TriggerKeep this trigger alive. Leave it out and it fires exactly once.
WaitWait the given number of milliseconds.
CommentAttach a description to a trigger. Does nothing else.
Set Countdown TimerSet the countdown timer.
Pause TimerStop the countdown timer.
Unpause TimerRestart the countdown timer.
Pause GameFreeze the game. Single-player only.
Unpause GameResume the game.
Ending the game
VictoryEnd the scenario in victory for this player.
DefeatEnd the scenario in defeat for this player.
DrawEnd the scenario in a draw for everyone.
Set Next ScenarioChoose which scenario loads next.
Leaderboards
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 PlayersChoose 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.

Sign in to track your progress