Editing Unit commands

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
Commands are the orders or directions that players issue to their units throughout a game of Zero-K. Most of the actions and decisions that players make throughout a game are implemented via issuing various types of commands. This page lists and categorizes all the commands with links for details on specific commands.
+
== Basics ==
  
== Command Types ==
+
Units are controlled by giving them commands. There are three kinds of commands:
There are three main types of command: targeted commands, instant commands and state toggles.  
+
* targeted commands, such as Move or Attack.
* '''Targeted commands''' are issued with a target. Targets can include units and map features (rocks, trees, wrecks) as well as positions, areas and lines drawn that you draw on the map when the command is issued. Targeting lines, areas or multiple units or features is commonly achieved by clicking an dragging.
+
* instant commands, such as Wait or Self-destruct.
* '''Instant commands''' activate unit abilities that require no target.
+
* [[Unit states|state commands]], such as Fire State or Cloak.
* '''State toggles''' are standing orders that modify behaviour or toggle certain abilities.
 
  
== Giving Commands ==
+
Some targeted commands have area versions, where the command is given continuously onto valid targets in the area as long as there are any. Drag when giving the order to do an area command.
Instant commands and state toggles can be issued by clicking their button in the command panel or pressing their hotkey. Right clicking a state toggle cycles the toggle backwards or reset it to a deactivated state, depending on the command. Hotkeys to set a state toggle to a particular state can be bound in the hotkeys menu.
 
  
Targeted commands can be issued with either the left or right mouse buttons.
+
Others have line versions. Each unit being given the order gets a different target along the line.
* Click the '''right mouse button''' to issue a context sensitive command. The command that will be issued is indicated by the mouse cursor and depends on both your unit selection and the target of the command. Common examples are [[Force Fire Command|force fire]] when the target is an enemy unit and [[Move Command|move]] when the the target is empty ground.
 
* Click the '''left mouse button''' to issue a command selected. To select a command click on its button in the command panel or press its hotkey. The selected command is indicated by the mouse cursor and a highlighted command button. Issue the command (without holding Shift) or right click to deselect the command.
 
  
Targeted commands can be modified in many ways.
+
Most targeted and instant commands can be queued using SHIFT. This puts the order at the end of the queue.
* '''Click and drag''' to draw a circle or a line. Most commands support either line or circle drawing and some support both depending on other modifers.
+
You can also use SPACE to insert at the front of the queue, or SHIFT+SPACE to insert in the middle of the queue (between two closest orders).
* Many commands are modified by holding '''Alt''' or '''Ctrl''' while clicking to issue the command.
 
* Some commands change depending on whether they are targeted on a unit or the ground.
 
  
== Queuing and Inserting Commands ==
+
== Modifiers ==
Units maintain a list of commands, known as their command queue, that are executed in order as each command is completed. Most targeted and instant commands can be added to the end of the queue or inserted or inserted into the queue. State toggles cannot be added to the queue and always take effect instantly.
 
* Hold '''SHIFT''' while issuing a targeted or instant command to add it to the end of the command queue.
 
* Hold '''SPACE''' while issuing a targeted command to add it to the start of the command queue, pushing the current command to the second spot in the queue.
 
* Hold '''SHIFT+SPACE''' while issuing a targeted command to insert it at the point in the command queue that would result in the least extra travel time.
 
  
A targeted command that is issued without holding Shift or Space cancels the entire command queue, replacing it with the newly issued command. An instant command that is issued without holding Shift or Space immediately executes the command without affecting the rest of the queue. Nobody knows what happens if an instant command is issued with Space held.
+
Commands can have their behaviour modified using ALT and CTRL.
  
== Factory Production Commands ==
+
<table>
Factories can make use of unit commands to make produced units take specific actions when leaving the factory.  For example, units can be set to move to a point or patrol as soon as they are produced.
+
<tr><td>Command</td><td>Click behaviour</td><td>Drag behaviour</td><td>+ALT</td><td>+CTRL</td></tr>
  
Unit commands given to factories can also be queued and modified, as above.
+
<tr><td>Repair <img src="https://raw.githubusercontent.com/ZeroK-RTS/Zero-K/master/Anims/cursorrepair_0.png"/></td><td>Repair a live unit;<br/>Assist construction</td><td>Area command.<br/>Applies the click command to valid targets in the area, as long as there are any</td><td>For area only. Persist the area even when no valid targets inside (continue if any new show up)</td><td>Only repair live units, do not assist construction.</td></tr>
  
== Most Common Commands and Modifiers ==
+
<tr><td>Mex <img src="https://raw.githubusercontent.com/ZeroK-RTS/Zero-K/master/LuaUI/Images/commands/Bold/mex.png" width="32" height="32"/></td><td>Build a mex at given spot</td><td>Queue mexes across the area</td><td>Surround each mex in the area with 4 solars. Works on already-built mexes.</td><td>None.</td></tr>
Commands can have their behaviour modified using ALT and CTRL, and can be combined with SHIFT and SPACE to queue commands. Some commands also change their behaviour when targeted on a unit or the ground. See each command's page for details.
 
  
{|
+
<tr><td>Reclaim <img src="https://raw.githubusercontent.com/ZeroK-RTS/Zero-K/master/Anims/cursorreclamate_0.png"/></td><td>Reclaim target (unit or feature)</td><td>Reclaim features across the area.</td><td>Area only. Persist the command even when no features are in the area.</td><td>Area only. If centered on a live unit, reclaim all units of this type in the area. Else, ignore metal-less features, such as trees. There is a menu option to do this by default, in which case trees can be reclaimed either with CTRL or by centering the area on a tree.</td></tr>
!style="width: 10%"|Command
 
!style="width: 10%"|Click+drag behaviour
 
!style="width: 20%"|Drag behaviour
 
!style="width: 20%"|+CTRL
 
!style="width: 20%"|+ALT
 
!style="width: 20%"|+CTRL+ALT
 
|-
 
|[[Move_Command|Move]](M)<br/><img src="http://zero-k.info/mediawiki/images/d/de/Move.png" width="32" height="32"/>
 
|Move units to a point.
 
|Move units into a line.
 
|Move, maintaining current formation.
 
|When dragging, move along a line.
 
|When dragging, move along a line in formation.
 
|-
 
|[[Attack_Move_Command|Attack move]](A)<br/><img src="http://zero-k.info/mediawiki/images/f/f8/Fight.png" width="32" height="32"/>
 
|Move to a point, using unit AI while moving.
 
|Same as move, using AI.
 
|Same as move, using AI.
 
|Same as move, using AI.
 
|Same as move, using AI.
 
|-
 
|[[Patrol_Command|Patrol]](P)<br/><img src="http://zero-k.info/mediawiki/images/f/fd/Patrol.png" width="32" height="32"/>
 
|Move back and forth between current position and a point, using unit AI while moving.
 
|Same as move, using AI.
 
|Same as move, using AI.
 
|Same as move, using AI.
 
|Same as move, using AI.
 
|-
 
|[[Force_Fire_Command|Force Fire]](F)<br/><img src="http://zero-k.info/mediawiki/images/0/00/Attack.png" width="32" height="32"/>
 
|Fire at a point
 
|Fire at all targets in an area, in a queue.
 
|When dragging, fire at all targets in an area, splitting fire.
 
|When dragging, fire along a line.
 
|
 
|-
 
|[[Set_Target_Command|Set Target]](T)<br/><img src="http://zero-k.info/mediawiki/images/5/58/Settarget.png" width="32" height="32"/>
 
|Target a unit or point, without moving. Fire at target if in range.  Fire normally if out of range.
 
|Target the nearest enemy in the circle.
 
|Target all enemies in the circle, splitting targets.
 
|Target the ground along a line, firing if in range.
 
|
 
|-
 
|[[Guard_Command|Guard]](G)<br/><img src="http://zero-k.info/mediawiki/images/7/74/Guard.png" width="32" height="32"/>
 
|Protect, repair, and assist a unit.
 
|On unit: guard in circle formation.
 
On ground: guard all units in the circle.
 
|For circle formation: guard in a specific direction.
 
|For circle formation: guard in a direction relative to unit facing.
 
|For circle formation: do not match guarding unit speeds/positions.
 
|-
 
|[[Repair_Command|Repair]](R)<br/><img src="https://raw.githubusercontent.com/ZeroK-RTS/Zero-K/master/Anims/cursorrepair_0.png"/>
 
|Repair a live unit; Assist construction.
 
|Area command. Applies the click command to valid targets in the area, as long as there are any.
 
|Only repair live units, do not assist construction.
 
|For area only. Persist the area even when no valid targets inside (continue if any new show up).
 
|For area only. Persist the area even when no valid targets inside while only repairing live units.
 
|-
 
|[[Area_Mex_Command|Area Mex]](W)<br/><img src="https://raw.githubusercontent.com/ZeroK-RTS/Zero-K/master/LuaUI/Images/commands/Bold/mex.png" width="32" height="32"/>
 
|Build a mex at given spot||Queue mexes across the area.
 
|Surround each mex in the area with 2 solars. Works on already-built mexes. If a mex is underwater, 2 Tidal Generators are built instead. If on land and flat space is limited, a Wind Generator will be substituted where a Solar does not fit.
 
|As with +CTRL, except with only one generator per mex, chosen as appropriate.
 
|As with +CTRL, except with four generators per mex, chosen as appropriate, one on each side.
 
|
 
|-
 
|[[Reclaim_Command|Reclaim]](E)<br/><img src="https://raw.githubusercontent.com/ZeroK-RTS/Zero-K/master/Anims/cursorreclamate_0.png"/>
 
|Reclaim target (unit or feature).
 
|Reclaim features across the area.
 
|Area only. If centered on a live unit, reclaim all units of this type in the area. Else, ignore metal-less features, such as trees. There is a menu option to do this by default, in which case trees can be reclaimed either with CTRL or by centering the area on a tree.
 
|Area only. Persist the command even when no features are in the area.
 
|Area only. Persist the command even when no features are in the area while ignoring(or not, depending on setting) metal-less features
 
|-
 
|[[Resurrect_Command|Resurrect]]<br/><img src="https://raw.githubusercontent.com/ZeroK-RTS/Zero-K/master/Anims/cursorrevive_0.png"/>
 
|Resurrect target wreck||Area version. Resurrect wrecks in given area as long as there are any; ignore ones that are partially reclaimed.
 
|Area only. Resurrect even partially reclaimed wrecks (but still not those actively being reclaimed - this requires single target command).
 
|Area only. Persist the command even when no resurrectables are in the area. Ignores partially reclaimed wrecks.
 
|Area only. Persist the command even when no resurrectables are in the area. Resurrects partially reclaimed wrecks.
 
|-
 
|}
 
  
== Full List of Commands ==
+
<tr><td>Resurrect <img src="https://raw.githubusercontent.com/ZeroK-RTS/Zero-K/master/Anims/cursorrevive_0.png"/></td><td>Resurrect target wreck</td><td>Area version. Resurrect wrecks in given area as long as there are any; ignore ones being reclaimed.</td><td>Area only. Persist the command even when no resurrectables are in the area.</td><td>Area only. Resurrect even wrecks being actively reclaimed.</td></tr>
=== Common targeted commands ===
 
* [[Move Command|Move]]
 
* [[Attack Move Command|Attack Move]]
 
* [[Jump Command|Jump]]
 
* [[Force Fire Command|Force Fire]]
 
* [[Set Target Command|Set Target]]
 
* [[Fire Special Weapon Command|Fire Special Weapon]]
 
* [[Area Attack Command|Area Attack]]
 
* [[Guard Command|Guard]]
 
* [[Patrol Command|Patrol]]
 
  
=== Common economic commands ===
+
</table>
* [[Repair Command|Repair]]
 
* [[Reclaim Command|Reclaim]]
 
* [[Resurrect Command|Resurrect]]
 
* [[Area Mex Command|Area Mex]]
 
* [[Structure Placement|Structure placement commands]]
 
* [[Factory Production|Unit construction commands]]
 
* [[Terraform|Terraforming commands]]
 
 
 
=== Instant commands ===
 
* [[Stop Command|Stop]]
 
* [[Wait Command|Wait]]
 
* [[Detonate Command|Detonate]]
 
* [[Self Destruct Command|Self Destruct]]
 
* [[Cancel Target Command|Cancel Target]]
 
* [[Return to Airbase Command|Return to Airbase]]
 
* [[Recall Drones Command|Recall Drones]]
 
* [[Clear Production Queue Command|Clear Production Queue]]
 
* [[Stockpile Command|Stockpile]]
 
 
 
=== Transport commands ===
 
* [[Load Command|Load]]
 
* [[Unload Command|Unload]]
 
* [[Load Command#Load Selected Units|Load Selected Units]]
 
* [[Eject Cargo Command|Eject Cargo]]
 
* [[Transport AI#Embark and Disembark|Embark]]
 
* [[Transport AI#Embark and Disembark|Disembark]]
 
 
 
=== Unusual commands ===
 
* [[Newton Firezones|Newton firezone commands]]
 
* [[Morph Command|Morph]]
 
* [[Commander|Upgrade Commander]]
 
* [[Commander|Stop Commander Upgrade]]
 
* [[Unique Commands#Drop Bombs|Drop Bombs]]
 
* [[Unique Commands#Unleash Lightning|Unleash Lightning]]
 
* [[Unique Commands#Teleport Beacon|Teleport Beacon]]
 
* [[Unique Commands#Drop Depthcharge|Drop Depthcharge]]
 
* [[Unique Commands#Speed Boost|Speed Boost]]
 
* [[Evacuate Command|Evacuate]]
 
 
 
=== Global commands ===
 
* [[Ferry Command|Ferry]]
 
* [[Retreat|Retreat]]
 
* [[Economy_Guide#Reserving_resources|Reserve]]
 
 
 
=== State commands ===
 
* [[Unit states#Fire State|Fire State]]
 
* [[Unit states#Move State|Move State]]
 
* [[Unit states#Repeat|Repeat]]
 
* [[Unit states#Overkill Prevention|Overkill Prevention]]
 
* [[Unit states#Retreat|Retreat]]
 
* [[Unit states#Build Priority|Build Priority]]
 
* [[Unit states#Misc Priority|Build Misc]]
 
* [[Unit states#Factory Assist|Factory Assist]]
 
* [[Unit states#Cloak|Cloak]]
 
* [[Unit states#Unit AI|Unit AI]]
 
* [[Unit states#On/Off|On/Off]]
 
* [[Unit states#Idle State|Idle State]]
 
* [[Unit states#Float State|Float State]]
 
* [[Unit states#Trajectory|Trajectory]]
 
* [[Unit states#Fire at Radar|Fire at Radar]]
 
* [[Unit states#Dive State|Dive State]]
 
* [[Unit states#Area Cloak|Area Cloak]]
 
* [[Unit states#Gunship Strafe|Gunship Strafe]]
 
* [[Unit states#Kill Captured|Kill Captured]]
 
* [[Unit states#Drone Construction|Drone Construction]]
 
* [[Unit states#Impulse Mode|Impulse Mode]]
 
 
 
 
 
{{Navbox commands}}
 
{{Navbox manual}}
 

Please note that all contributions to Zero-K are considered to be released under the Creative Commons Attribution-ShareAlike (see Zero-K:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)