Script Commands
List of CommandsActivateTriggerActivateTrigger activates another trigger (also can be used to activate the trigger it is called from, making a repeating trigger).
AreaIndicatorAreaIndicator places a visible indicator on the map to help the player know where they should go to.
AttackAttackMoveAttackAttackMove orders an army to move to a specific area, engaging enemies along the way.
AttackUnitAttackUnit orders an army to attack a specific script-spawned unit.
CameraCamera moves the player's view to a specific area.
CaptureNearestCaptureNearest orders an army to clear its order queue and capture the nearest neutral or enemy-controlled region (note: ordered unit will stop moving if region is captured before it gets there).
CaptureNearestNextCaptureNearestNext orders an army to capture the nearest neutral or enemy-controlled region.
ChangeAIDifficultyChangeAIDifficulty changes an AI player's difficulty setting.
ChangeAIPersonalityChangeAIPersonality changes an AI player's personality.
DestroyBuildingDestroyBuilding destroys a specific script-spawned building.
DestroyUnitDestroyUnit destroys a specific script-spawned unit.
DialogDialog creates a popup that can convey information or story to the player. Use with <Entry> tags.
EntryEntry is the actual text that will be displayed. Use only within <Dialog> tags.
EndMissionEndMission used to force a win or loss of the scenario.
GrantStuffGrantStuff gives a player free resources.
GrantTechGrantTech gives a player a free Quantum Upgrade
HidePanelHidePanel hides UI panels.
LetterBoxLetterBox disables commands and go to a cinematic, letterbox view.
MoveUnitMoveUnit moves an army to a location without stopping to fight
ObjectiveObjective is used to set objective notifications for the player (so they know what to do).
RestrictRestrict blocks the player from being able to access objects in the game.
RevealReveal reveals the fog of war over a location
SpawnBuildingSpawnBuilding places a building on the map.
SpawnUnitSpawnUnit places a unit on the map.
VarVar sets or modifies a variable. Tip: Set any variable you want to use to 0 in the initial setup trigger to avoid unpredictable results. All values must be integers.
|