Difference between revisions of "Console"

From Wurmpedia
Jump to navigation Jump to search
m (cat fix)
(Update, rewrite, merge with list of console commands)
Line 1: Line 1:
===Description===
+
Console commands are small commands to use in the console, to change settings.
----
+
 
Console commands are small commands to use in the console, to change settings.<br>
 
 
These commands can also be used in [[Client Key Bindings|autorun.txt for defining key bindings]].
 
These commands can also be used in [[Client Key Bindings|autorun.txt for defining key bindings]].
  
 +
== List of commands ==
  
===Commands===
+
; bind <key> <action> : Binds the key to the specified action. In other words, pressing the key will act as if you typed the action into the console.
----
+
; bind <key> "<action>" : Same as above
 
+
; dump (skills) : Saves the specified data to a file.
{| border="1" cellpadding="0" cellspacing="0" style="text-align:center;"
+
; exec <filename> : Executes the file (TODO: Define execute)
! Command !! Action
+
; irc [server] [port] : Connects to the specified [[IRC]] network. Defaults are irc.heavenlyplace.net and 6667.
|-
+
; ircsay <text> : Sends the text to the topmost IRC window.
| bind <key> <action> <br> || &nbsp; binds <key> to the specified <action> &nbsp;
+
; quit : Opens the quit dialog
|-
+
; screenshot : Creates a screenshot (in the screenshot folder)
|  &nbsp; bind <key> "<console command>" &nbsp; || binds <key> to a console command
+
; sensitivity <0-10> : Changes mouse sensitivity to the given value
|-
+
; showbml <filename> : Parses the file as [[BML]] and displays it
| quit <br> || quits the game
+
; toggle (console | inventory | keyboard_hints | skills | stats) : Toggles display of the specified [[HUD]] component
|-
+
; wiki <title> : Opens a window with the specified wiki page.
| screenshot <br> || makes a screenshot
 
|-
 
| exec <filename> <br> || executes <filename>
 
|-
 
| showbml <filename> <br> || shows the bml file specified
 
|-
 
| toggle <[[HUD|HUD component]]> <br> || &nbsp; toggles the specified <[[HUD|HUD component]]> &nbsp;
 
|-
 
| sensitivity <mouse sensitivity, 0-10> <br> || changes mouse sensitivity
 
|}
 
  
The HUD Component for the toggle command can have the following values:
+
Legend: <name> is a mandatory argument, [name] is an optional argument, (name|other) is an argument which requires one of the listed values.
*console
 
*inventory
 
*keyboard_hints
 
*skills
 
*stats
 
--[[User:Sppt|Sppt]] 12:26, 13 June 2006 (CDT)
 
{{stub}}
 
  
 
[[Category:Technical Details]]
 
[[Category:Technical Details]]
 
[[Category:Babel/C]]
 
[[Category:Babel/C]]

Revision as of 01:52, 24 January 2007

Console commands are small commands to use in the console, to change settings.

These commands can also be used in autorun.txt for defining key bindings.

List of commands

bind <key> <action> 
Binds the key to the specified action. In other words, pressing the key will act as if you typed the action into the console.
bind <key> "<action>" 
Same as above
dump (skills) 
Saves the specified data to a file.
exec <filename> 
Executes the file (TODO: Define execute)
irc [server] [port] 
Connects to the specified IRC network. Defaults are irc.heavenlyplace.net and 6667.
ircsay <text> 
Sends the text to the topmost IRC window.
quit 
Opens the quit dialog
screenshot 
Creates a screenshot (in the screenshot folder)
sensitivity <0-10> 
Changes mouse sensitivity to the given value
showbml <filename> 
Parses the file as BML and displays it
toggle (console | inventory | keyboard_hints | skills | stats) 
Toggles display of the specified HUD component
wiki <title> 
Opens a window with the specified wiki page.

Legend: <name> is a mandatory argument, [name] is an optional argument, (name|other) is an argument which requires one of the listed values.