Difference between revisions of "Selection"

From Zero-K
Jump to navigation Jump to search
(General cleanup and linking of some relevant content.)
(→‎Selection Rank: Buff to wording and good to link to.)
Line 13: Line 13:
 
== Selection Rank ==
 
== Selection Rank ==
  
Selection rank is what decides which units will be selected when doing a box drag over multiple unit types such as fighters, constructors, or buildings.
+
<img src="https://raw.githubusercontent.com/ZeroK-RTS/Zero-K/master/LuaUI/Images/commands/states/selection_rank_0.png" height="24" width="24"/>
 +
<img src="https://raw.githubusercontent.com/ZeroK-RTS/Zero-K/master/LuaUI/Images/commands/states/selection_rank_1.png" height="24" width="24"/>
 +
<img src="https://raw.githubusercontent.com/ZeroK-RTS/Zero-K/master/LuaUI/Images/commands/states/selection_rank_2.png" height="24" width="24"/>
 +
<img src="https://raw.githubusercontent.com/ZeroK-RTS/Zero-K/master/LuaUI/Images/commands/states/selection_rank_3.png" height="24" width="24"/>
  
There are four selection ranks: 0, 1, 2, and 3. Rank 0 is unused, 1 and 2 are for buildings and constructors, 3 is for fighting units. Default selection rank is customizable through the [[Ingame Menu#Unit Behavior|in-game settings]].
+
Selection rank determines which units are selected when dragging a selection box around units with different ranks. Only the units in the selection box with the highest rank are selected. This is what keeps buildings and construction units from being selected with combat units.
  
When doing a box drag over units with different selection ranks, only the units with the highest rank will be selected.
+
By default, most buildings have selection rank 1, factories and constructors have rank 2, and all combat units have rank 3. Selection rank can be changed for selected units, or it may be changed globally in the options menu. For example, if you don't want your Commander or anti-air units to be selected with the rest of your combat units, reduce their selection rank.
  
You can see a unit's selection rank as a large gray number on the side of the command menu; generally, fighters are 3, builders and factories are 2, caretakers and defence structures are 1.
+
The default selection rank of units is customizable through Default Unit States in the [[Ingame_Menu]].
  
You can change a unit's default selection rank in the in game settings. For example, by setting a [[Commander]]'s rank to 2 you will avoid accidental cancellation of its building queue orders or getting it killed by issuing commands that were meant for your army.
+
You can bypass selection rank by holding {{key press|Shift}} while dragging. You will select all units/buildings in the box.
  
You can bypass selection rank by holding {{key press|Shift}} while dragging. You will select all units/buildings in the box.
+
A selection rank of 0 is an exception. Units that are set to 0 will ignore many catch-all selections such as {{key press|Ctrl}}-{{key press|A}} and {{key press|Ctrl}}-{{key press|Z}}
  
 
== Hotkeys ==
 
== Hotkeys ==

Revision as of 12:22, 13 July 2021

You can select your units with your mouse, with your keyboard, or both.

Selection Commands

  • Simple click, select what you click on.
  • Double click, select all same units/buildings on screen.
  • Box select (click and drag to draw a rectangle), select all inside the box with the highest selection rank.

To manage your selection you can

  • right click a unit in the selection window to remove it from the current selection,
  • Shift right click to remove all units that are like the one you click on;
  • Shift + selection command will add newly selected units to the current selection.

Selection Rank

Selection rank determines which units are selected when dragging a selection box around units with different ranks. Only the units in the selection box with the highest rank are selected. This is what keeps buildings and construction units from being selected with combat units.

By default, most buildings have selection rank 1, factories and constructors have rank 2, and all combat units have rank 3. Selection rank can be changed for selected units, or it may be changed globally in the options menu. For example, if you don't want your Commander or anti-air units to be selected with the rest of your combat units, reduce their selection rank.

The default selection rank of units is customizable through Default Unit States in the Ingame_Menu.

You can bypass selection rank by holding Shift while dragging. You will select all units/buildings in the box.

A selection rank of 0 is an exception. Units that are set to 0 will ignore many catch-all selections such as Ctrl-A and Ctrl-Z

Hotkeys

There are multiple hotkeys to help with selection:

  • Ctrl-A selects everything
  • Ctrl-F selects all mobile non-builder units
  • Z selects an idle builder; press repeatedly to cycle trough idle builders
  • Ctrl-B selects all idle constructors
  • Ctrl-C selects Commander
  • Ctrl-Z selects all units that are the same as the one you are currently selecting
  • Ctrl-X selects all units that are the same as the one you are currently selecting that are currently visible on the screen
  • Ctrl-I removes non-idle units from your selection
  • Ctrl-E removes all units that are above 30% HP from your selection
  • Ctrl-T selects Transports
  • Ctrl-S selects Owls
  • Ctrl-G selects Raptors

Factories can also be selected using hotkeys. Your first factory will be on Alt+Q, the second factory you build will be on Alt+W and the next one on Alt+E, and so on. This assumes that you have the QWERTY keyboard layout.

You can select missiles from the Missile Silo by either clicking on them or by selecting the Silo and pressing D.

All hotkeys are editable in the settings menu.

Autogroups

Autogroups are custom selection hotkeys that you can set up on the go. They allow units to be automatically added to a control group.