Editing Cheats

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 3: Line 3:
  
 
== Cheat mode ==
 
== Cheat mode ==
Before any other cheat command can be used, cheating mode must be enabled. This is done by typing <code>/cheat</code> in console in singleplayer, or <code>!cheats</code> in multiplayer (the latter requires admin or room boss status).
+
Before any other cheat command can be used, cheating mode must be enabled. This is done by typing <code>/cheat</code> in console in singleplayer, or <code>!cheat</code> in multiplayer.
* If <code>!cheats</code> fails to work, makesure ally/spectator chat mode is off (remove the <code>a:</code> or <code>s:</code> prefix)
+
* If <code>!cheat</code> fails to work, makesure ally/spectator chat mode is off (remove the <code>a:</code> or <code>s:</code> prefix)
  
Entering the command adds a new button on the global commands bar at the top of the screen that brings up a handy cheat menu:
+
Entering the command again disables cheat mode.
 
 
[[File:Cheat_sheet_location.png]]
 
 
 
This menu allows to perform most common cheat actions. In addition, you can type commands manually for greater control, see the list below. Entering the command again, or unchecking the appropriate option in the menu, disables cheat mode, but any cheats already enabled (for example fast build) stay.
 
  
 
== Commands ==
 
== Commands ==
Line 17: Line 13:
  
 
Gives 1,000 metal and energy to the entering player's team.
 
Gives 1,000 metal and energy to the entering player's team.
 
=== destroy ===
 
Syntax: <code>/destroy</code>
 
 
Instantly destroys currently selected units.
 
  
 
=== give ===
 
=== give ===
Syntax: <code>/give [optional number] <unitname> [optional team number] [optional coordinates]</code>
+
Syntax: <code>/give [optional number] <unitname> [optional team number]</code>
  
Spawns a given number of units at the location of the mouse cursor (or given coordinates). Can also be used to spawn features, e.g. wreckage.
+
Spawns a given number of units at the location of the mouse cursor. Can also be used to spawn features, e.g. wreckage.
  
Unit names are the machine-facing identifiers rather than the human names, e.g. <code>cloakraid</code> for the [[Glaive]]. Unit names can be found on [https://github.com/ZeroK-RTS/Zero-K/tree/master/units GitHub] or in the source of the unit's page on the wiki. Wrecks and debris of a unit typically have the same name, but with the <code>_dead</code> or <code>_heap</code> suffix, respectively.
+
Unit names are the machine-facing identifiers rather than the human names, e.g. <code>cloakraid</code> for the [[Glaive]]. Unit names can be found on [https://github.com/ZeroK-RTS/Zero-K/tree/master/units GitHub] or in the source of the unit's page on the wiki.
  
 
If no team is specified, will give to the player's current team, or the team currently being spectated.
 
If no team is specified, will give to the player's current team, or the team currently being spectated.
 
Coordinates are given in the format <code>@xxx, yyy, zzz</code>.
 
 
=== luarules give ===
 
 
Syntax: <code>/luarules give</code>
 
 
Spawns one of each multiplayer unit and building (sorted by factory) in the top-left corner.
 
  
 
=== globallos ===
 
=== globallos ===
Line 54: Line 37:
  
 
Enables/disables building everything for free and near-instantly.
 
Enables/disables building everything for free and near-instantly.
 
=== team ===
 
Syntax: <code>/team <number></code>
 
 
Switches control to the selected playerteam (multiple playerteams make up an allyteam, of which there are usually two in a game).
 
 
  
 
{{Navbox manual}}
 
{{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)