<?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=Halandar</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=Halandar"/>
	<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/Special:Contributions/Halandar"/>
	<updated>2026-11-10T20:11:57Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.wesnoth.org/index.php?title=CommandMode&amp;diff=39930</id>
		<title>CommandMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/index.php?title=CommandMode&amp;diff=39930"/>
		<updated>2011-01-03T12:13:16Z</updated>

		<summary type="html">&lt;p&gt;Halandar: /* Extra Debugging Commands */&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;
(Prior to version 1.1.1, 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;
Note: you can highlight, copy, and paste text in debug mode.&lt;br /&gt;
&lt;br /&gt;
Several vi-like commands are available in command mode. They are defined in &#039;&#039;menu_events.cpp&#039;&#039;. In the 1.5 branch, there is a &#039;&#039;&#039;:help&#039;&#039;&#039; command that lists all available commands, and &#039;&#039;&#039;:help &#039;&#039;foo&#039;&#039;&#039;&#039;&#039; displays more info about command &#039;&#039;foo&#039;&#039;. This is more reliable than the list that follows here:&lt;br /&gt;
&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;] [on|off]&lt;br /&gt;
:toggle player on &#039;&#039;side&#039;&#039; between human and AI player. The player/client who controls that side needs to issue this command. If you don&#039;t provide &#039;&#039;side&#039;&#039;, the current side is assumed.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:muteall&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:toggles muting/silencing of all observers on/off&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:mute&amp;lt;/nowiki&amp;gt; [&#039;&#039;username&#039;&#039;]&lt;br /&gt;
:mute a specific observer. If no &#039;&#039;username&#039;&#039; is supplied the muted usernames are displayed.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:unmute&amp;lt;/nowiki&amp;gt; [&#039;&#039;username&#039;&#039;]&lt;br /&gt;
:unmute a specific observer. If no &#039;&#039;username&#039;&#039; is given everyone is unmuted. (Doesn&#039;t effect the muteall setting.)&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 by the IP address used by that &#039;&#039;username&#039;&#039;. Can be used on users not in the game but on the server. (Of course they won&#039;t be kicked then.)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:unban&amp;lt;/nowiki&amp;gt; &#039;&#039;username&#039;&#039;&lt;br /&gt;
:unban a user by the IP address used by that &#039;&#039;username&#039;&#039;. Can be used on users not in the game but on the server.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:control&amp;lt;/nowiki&amp;gt; &#039;&#039;side&#039;&#039; &#039;&#039;username&#039;&#039;&lt;br /&gt;
:change the controller for &#039;&#039;side&#039;&#039; (write here the number of the side, the side must be controlled by you) to &#039;&#039;username&#039;&#039; (write here the nick of the player or observer)&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 or using the :nodebug command.&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;
;&amp;lt;nowiki&amp;gt;:nosaves&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:turns off the autosave function&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:show_coordinates (or :sc)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Overlay x,y coordinates on map tiles. 1.5.5 onwards&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:show_terrain_codes (or :tc)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Overlay terrain codes on visible map tiles. 1.5.5 onwards&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:discover&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Show all hidden unit descriptions in the in-game Help. 1.7.0 onwards&lt;br /&gt;
&lt;br /&gt;
===Extra Debugging Commands===&lt;br /&gt;
[[DebugMode]] (:debug) enables additional commands in command mode:&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:lua&amp;lt;/nowiki&amp;gt; &#039;&#039;statement&#039;&#039;&lt;br /&gt;
:{{DevFeature}} execute a Lua statement&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:nodebug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:disables debug-mode commands&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;:shroud&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:toggles shroud on/off (implemented since 1.3.10)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:fog&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:toggles fog on/off (implemented since 1.3.10)&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 hitpoints=&amp;lt;/nowiki&amp;gt;&#039;&#039;amount&#039;&#039;&lt;br /&gt;
:edit units hitpoints&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:unit experience=&amp;lt;/nowiki&amp;gt;&#039;&#039;amount&#039;&#039;&lt;br /&gt;
:edit units experience&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;
;&amp;lt;nowiki&amp;gt;:unit&amp;lt;/nowiki&amp;gt; &#039;&#039;advances=N&#039;&#039;&lt;br /&gt;
:{{DevFeature}} when a unit is selected, this will advance (level up) the unit N times.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:set_var&amp;lt;/nowiki&amp;gt; &#039;&#039;attribute=value&#039;&#039;&lt;br /&gt;
:this will set a WML variable to a given value&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:show_var&amp;lt;/nowiki&amp;gt; &#039;&#039;attribute&#039;&#039;&lt;br /&gt;
:this will display a popup with the content of the variable&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:throw/fire&amp;lt;/nowiki&amp;gt; &#039;&#039;event_name&#039;&#039;&lt;br /&gt;
:throw an event by name, like &#039;&#039;time over&#039;&#039; or &#039;&#039;enemies defeated&#039;&#039;. (Only available in 1.3.5 or later.)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:inspect&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:{{DevFeature}} show a gamestate inspector dialog which allows to see variable info, team info, ai info.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:cl&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:pops up a menu that allows you to move directly to a specified scenario.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:turn&amp;lt;/nowiki&amp;gt; [&#039;&#039;number&#039;&#039;]&lt;br /&gt;
:{{DevFeature1.9}} change the current turn to the specified number. If no number is provided, the turn number is increased by one.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:turn_limit&amp;lt;/nowiki&amp;gt; [&#039;&#039;number&#039;&#039;]&lt;br /&gt;
:{{DevFeature1.9}} change the turn limit for the current scenario to the specified number. If no number is provided, or it is -1, the turn limit is switched off.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:version&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Report version and SVN revision level.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[DebugMode]]&lt;br /&gt;
* [[ChatCommands]]&lt;br /&gt;
* [[ServerAdministration]]&lt;br /&gt;
* [[DeveloperResources]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Playing Wesnoth]]&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Halandar</name></author>
	</entry>
</feed>