Difference between revisions of "Client Key Bindings"

From Wurmpedia
Jump to navigation Jump to search
(link to console as there is a link to a list of all key values)
(Moved to key bindings)
Line 1: Line 1:
[[Main Page]] :: [[Client Key Bindings]]
+
#redirect[[key bindings]]
  
== Introduction ==
+
{{delete|Capitals in title}}
 
 
Key bindings are defined in the keybindings.txt file, which is automatically updated if you rebind keys while playing. Other commands that should be run on update can be put in autorun.txt. More details about key bindings can be found on the [[Console]] page.
 
 
 
=== Default files ===
 
 
 
<pre>[autorun.txt]
 
toggle keyboard_hints
 
</pre>
 
 
 
<pre>[keybindings.txt]
 
bind w move_forward
 
bind s move_back
 
bind a move_left
 
bind d move_right
 
bind q turn_left
 
bind e turn_right
 
bind x autorun
 
bind c center_view
 
 
 
bind up move_forward
 
bind down move_back
 
bind left turn_left
 
bind right turn_right
 
bind page_up autorun
 
bind page_down center_view
 
bind insert strafe
 
bind home turn_up
 
bind end turn_down
 
 
 
// Stance selects
 
bind NUMPAD0 STRAFE
 
bind NUMPAD1 "cmd 294"
 
bind NUMPAD2 "cmd 297"
 
bind NUMPAD3 "cmd 312"
 
bind NUMPAD4 "cmd 291"
 
bind NUMPAD5 "cmd 303"
 
bind NUMPAD6 "cmd 309"
 
bind NUMPAD7 "cmd 288"
 
bind NUMPAD8 "cmd 300"
 
bind NUMPAD9 "cmd 306"
 
 
 
// Window toggles
 
bind F1 "toggle console"
 
bind F2 "toggle skills"
 
bind F3 "toggle inventory"
 
bind F4 "toggle stats"
 
 
 
// Other function keys
 
bind F5 "say /sleep"
 
bind F6 "say /time"
 
bind F7 "say /weather"
 
bind F8 "say /fl"
 
//bind F9 ""
 
bind f10 "toggle gui"
 
bind f11 "screenshot"
 
bind f12 "quit"
 
 
 
// Toolbelt
 
bind 1 activate_tool1
 
bind 2 activate_tool2
 
bind 3 activate_tool3
 
bind 4 activate_tool4
 
bind 5 activate_tool5
 
 
 
// Misc keys
 
bind enter toggle_chat
 
bind t toggle_chat
 
bind tab next_tab
 
</pre>
 
 
 
=== Customization ===
 
 
 
For faster access to drop, take, examine, climb, no target and glance left/right:
 
 
 
<pre>
 
bind y drop
 
bind u examine
 
bind i take
 
bind r toggle_climb
 
bind o GLANCE_LEFT
 
bind p GLANCE_RIGHT
 
bind n NO_TARGET
 
</pre>
 
 
 
The following opens windows when the client loads:
 
<pre>
 
toggle skills
 
toggle inventory
 
toggle stats
 
</pre>
 
 
 
This stops JK chat from loading when the game starts (But sometimes someone gets in a message before it takes effect. Placing it at the top of the file may help.)
 
<pre>
 
say /kchat
 
</pre>
 
 
 
You could add this to know how much sleep bonus you have when you log in:
 
<pre>
 
say /sleep
 
</pre>
 
this would work best at the bottom of the file I think.
 
 
 
The new IRC Commands:
 
 
 
<pre>
 
Irc [Server] [Port]
 
 
 
Ircsay [Msg]
 
</pre>
 
 
 
<tt>Irc [Server] [Port]:</tt> This opens the IRC windows in the provided server and port, Heavenly place by Default.
 
 
 
<tt>Ircsay [Msg]:</tt> Says the given text in the IRC, could be used to auto identify your self by pressing {{key|F7}}
 
<pre>
 
bind f7 "ircsay /identify *password*
 
</pre>
 
 
 
Could also be used to Auto-Load the irc once the game starts by adding
 
<pre>
 
irc
 
</pre>
 
In the autorun.txt file
 
 
 
Note: the Brackets [] aren't needed in the commands, it can just be.
 
<pre>
 
ircsay hey guys
 
</pre>
 
 
 
Another command is <tt>exec</tt>, it's useful for loading a sequence of commands from a text file, among other things...
 
 
 
It could be used like this...
 
 
 
<pre>
 
bind F7 "exec irc.txt"
 
</pre>
 
 
 
irc.txt could have the following in it...
 
 
 
<pre>
 
ircsay /identify PASSWORD
 
ircsay /join #town
 
ircsay Hey guys.
 
</pre>
 
 
 
For more information about the new IRC commands, visit the [[Setting up IRC in the client]] page.
 
 
 
[[Category:Technical Details]]
 
[[Category:Babel/C]]
 

Revision as of 08:33, 14 December 2009