Difference between revisions of "Unit commands"

From Zero-K
Jump to navigation Jump to search
Line 19: Line 19:
 
<table>
 
<table>
 
<tr><td>Command</td><td>Click behaviour</td><td>Drag behaviour</td><td>+ALT</td><td>+CTRL</td></tr>
 
<tr><td>Command</td><td>Click behaviour</td><td>Drag behaviour</td><td>+ALT</td><td>+CTRL</td></tr>
 +
 
<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>
 
<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>
 +
 
<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>
 
<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>
<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>
+
<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>
 +
 
 +
<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>
 +
 
 
</table>
 
</table>

Revision as of 06:01, 9 June 2017

Basics

Units are controlled by giving them commands. There are three kinds of commands:

* targeted commands, such as Move or Attack.
* instant commands, such as Wait or Self-destruct.
* state commands, such as Fire State or Cloak.

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.

Others have line versions. Each unit being given the order gets a different target along the line.

Most targeted and instant commands can be queued using SHIFT. This puts the order at the end of the queue. 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).

Modifiers

Commands can have their behaviour modified using ALT and CTRL.

CommandClick behaviourDrag behaviour+ALT+CTRL
Repair Repair a live unit;
Assist construction
Area command.
Applies the click command to valid targets in the area, as long as there are any
For area only. Persist the area even when no valid targets inside (continue if any new show up)Only repair live units, do not assist construction.
Mex Build a mex at given spotQueue mexes across the areaSurround each mex in the area with 4 solars. Works on already-built mexes.None.
Reclaim Reclaim target (unit or feature)Reclaim features across the area.Area only. Persist the command even when no features are in 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.
Resurrect Resurrect target wreckArea version. Resurrect wrecks in given area as long as there are any; ignore ones being reclaimed.Area only. Persist the command even when no resurrectables are in the area.Area only. Resurrect even wrecks being actively reclaimed.