Difference between revisions of "CommandMode"
From The Battle for Wesnoth Wiki
m (Reverted edit of Komisarz, changed back to last version by Rusty) |
(→Command Mode: added the :mute command) |
||
Line 14: | Line 14: | ||
:redraw the screen | :redraw the screen | ||
;<nowiki>:droid</nowiki> ''side'' | ;<nowiki>:droid</nowiki> ''side'' | ||
− | :toggle player on side between human and AI | + | :toggle player on ''side'' between human and AI player. The player/client who controls that side needs to issue this command. |
+ | ;<nowiki>:mute</nowiki> on/off | ||
+ | :turn muting/silencing of all observers on/off | ||
+ | ;<nowiki>:mute</nowiki> ''username'' | ||
+ | :mute a specific observer ''username'' | ||
;<nowiki>:kick</nowiki> ''username'' | ;<nowiki>:kick</nowiki> ''username'' | ||
: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. | :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. | ||
;<nowiki>:ban</nowiki> ''username'' | ;<nowiki>:ban</nowiki> ''username'' | ||
− | :kick and ban a user in multiplayer, and the IP address used by that username | + | :kick and ban a user in multiplayer, and the IP address used by that ''username''. |
;<nowiki>:control</nowiki> ''side'' ''username'' | ;<nowiki>:control</nowiki> ''side'' ''username'' | ||
− | :change the controller for ''side'' (write here number of the side) to ''username'' (write here nick of player or observer) | + | :change the controller for ''side'' (write here the number of the side) to ''username'' (write here the nick of the player or observer) |
;<nowiki>:clear</nowiki> | ;<nowiki>:clear</nowiki> | ||
:clear chat messages | :clear chat messages |
Revision as of 15:47, 5 May 2006
Command Mode
You can access command mode by typing ' : ' in a single player or multiplayer scenario. (Prior to version 1.1.1, you need to type shift - semicolon( ; ). However this isn't possible on all keyboards; if your keyboard doesn't have ':' above ';' you can change the hotkey in the Preferences, or you could edit game.cfg by hand.')
Several vi-like commands are available in command mode. They are defined in playturn.cpp in the turn_info::do_command() function:
- :q or :q!
- quit the scenario (without prompting)
- :w
- save the game (without prompting)
- :wq
- save the game and quit the scenario (without prompting)
- :refresh
- redraw the screen
- :droid side
- toggle player on side between human and AI player. The player/client who controls that side needs to issue this command.
- :mute on/off
- turn muting/silencing of all observers on/off
- :mute username
- mute a specific observer username
- :kick username
- 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.
- :ban username
- kick and ban a user in multiplayer, and the IP address used by that username.
- :control side username
- change the controller for side (write here the number of the side) to username (write here the nick of the player or observer)
- :clear
- clear chat messages
- :debug
- switch debug mode on (does not work in multiplayer). Debug mode is turned off by quitting the game.
- :theme
- bring up theme selection menu
Extra Debugging Commands
DebugMode enables additional commands in command mode:
- :n
- skip to next scenario by triggering a win event
- :gold amount
- add amount gold to the current player's side
- :create unit_type
- create a unit of type specified at last selected hex
- :unit attribute=value
- when a unit is selected, this will set the unit's attribute to value. See SingleUnitWML for possible values.