UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517 Firefox/1.0.4 (Debian package 1.0.4-2) IP: 64.81.113.168 URI: http://wesnoth.slack.it/?CommandMode - - - - - Index: CommandMode =================================================================== RCS file: /home/wesnoth/cvsroot/wikiroot/CommandMode,v retrieving revision 1.5 diff -u -r1.5 CommandMode --- CommandMode 3 Jun 2005 17:32:37 -0000 1.5 +++ CommandMode 3 Jul 2005 17:10:22 -0000 @@ -1,20 +1,22 @@ ||Command Mode|| You can access command mode by typing ':' in a single or multi player scenario. -More accurately, you need to type ||shift-;|| which 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, -as defined in //playturn.cpp//, in the //turn_info::do_command()// function: -* ||:q!|| quit the scenario (without prompting) +More accurately, 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|| replace the player with an ai player -* ||:kick|| 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. +* ||:droid|| replace the player with an AI player +* ||:kick|| 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|| kick and ban a user in multiplayer, and the IP address used by that username -* ||:control SIDE PLAYER|| change the controller for SIDE to PLAYER +* ||:control //side// //player//|| change the controller for //side// to //player// * ||:clear|| clear chat messages * ||:debug|| switch debug mode on * ||:debug off|| switch debug mode off @@ -22,14 +24,11 @@ DebugMode enables additional commands in command mode: * ||:n|| skip to next scenario by triggering a win event -* ||:gold #|| add # amount of 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". -The "attribute" should be the name of an attribute that is normally -found in a WML [unit] tag. -For instance: 'moves', 'side', 'facing' (value either 'reverse' or 'normal'), -'experience', 'hitpoints', 'gender' (value either 'male' or 'female'). +* ||: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. ||See Also||
_______________________________________________ Wesnoth-wiki-changes mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/wesnoth-wiki-changes
