<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.wesnoth.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nasso</id>
	<title>The Battle for Wesnoth Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.wesnoth.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nasso"/>
	<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/Special:Contributions/Nasso"/>
	<updated>2026-11-14T14:13:22Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.wesnoth.org/index.php?title=CommandMode&amp;diff=4278</id>
		<title>CommandMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/index.php?title=CommandMode&amp;diff=4278"/>
		<updated>2005-10-26T19:00:50Z</updated>

		<summary type="html">&lt;p&gt;Nasso: /* Command Mode */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Command Mode ==&lt;br /&gt;
&lt;br /&gt;
You can access command mode by typing &#039; &#039;&#039;&#039;:&#039;&#039;&#039; &#039; in a single player or multiplayer scenario.&lt;br /&gt;
More accurately, you need to type shift - semicolon( &#039;&#039;&#039;;&#039;&#039;&#039; ). However this isn&#039;t possible on all keyboards; if your keyboard doesn&#039;t have &#039;:&#039; above &#039;;&#039; you can change the hotkey in the Preferences, or you could edit &#039;&#039;&#039;game.cfg&#039;&#039;&#039; by hand.&#039;&lt;br /&gt;
&lt;br /&gt;
Several vi-like commands are available in command mode. They are defined in &#039;&#039;playturn.cpp&#039;&#039; in the &#039;&#039;turn_info::do_command()&#039;&#039; function:&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:q or :q!&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:quit the scenario (without prompting)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:w&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:save the game (without prompting)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:wq&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:save the game and quit the scenario (without prompting)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:refresh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:redraw the screen&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:droid&amp;lt;/nowiki&amp;gt; &#039;&#039;side&#039;&#039;&lt;br /&gt;
:toggle player on side between human and AI players. If a human controls the side, the player himself has to issue this command.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:kick&amp;lt;/nowiki&amp;gt; &#039;&#039;username&#039;&#039;&lt;br /&gt;
:kick a user in multiplayer. They will be able to rejoin the game. Generally a friendly way to remove someone who is having connection or other difficulties.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:ban&amp;lt;/nowiki&amp;gt; &#039;&#039;username&#039;&#039;&lt;br /&gt;
:kick and ban a user in multiplayer, and the IP address used by that username&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:control&amp;lt;/nowiki&amp;gt; &#039;&#039;side&#039;&#039; &#039;&#039;player&#039;&#039;&lt;br /&gt;
:change the controller for &#039;&#039;side&#039;&#039; to &#039;&#039;player&#039;&#039;&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:clear&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:clear chat messages&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:debug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:switch debug mode on (does not work in multiplayer).  Debug mode is turned off by quitting the game.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:theme&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:bring up theme selection menu&lt;br /&gt;
&lt;br /&gt;
===Extra Debugging Commands===&lt;br /&gt;
[[DebugMode]] enables additional commands in command mode:&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:n&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:skip to next scenario by triggering a win event&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:gold&amp;lt;/nowiki&amp;gt; &#039;&#039;amount&#039;&#039;&lt;br /&gt;
:add &#039;&#039;amount&#039;&#039; gold to the current player&#039;s side&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:create&amp;lt;/nowiki&amp;gt; &#039;&#039;unit_type&#039;&#039;&lt;br /&gt;
:create a unit of type specified at last selected hex&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:unit&amp;lt;/nowiki&amp;gt; &#039;&#039;attribute=value&#039;&#039;&lt;br /&gt;
:when a unit is selected, this will set the unit&#039;s &#039;&#039;attribute&#039;&#039; to &#039;&#039;value&#039;&#039;.   See [[SingleUnitWML]] for possible values.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[DebugMode]]&lt;br /&gt;
* [[DeveloperResources]]&lt;/div&gt;</summary>
		<author><name>Nasso</name></author>
	</entry>
</feed>