Difference between revisions of "Manual:keybindings.lua"
From DoomRL Wiki
Shark20061 (Talk | contribs) (Updated key binding information to match the current 0996 setup.) |
Shark20061 (Talk | contribs) (Added alternating background color on symbolic name table, fixed the large-med pack key command.) |
||
Line 8: | Line 8: | ||
! scope="col" align="left" | Key symbol/name | ! scope="col" align="left" | Key symbol/name | ||
! scope="col" align="left" | Symbolic name | ! scope="col" align="left" | Symbolic name | ||
− | |- | + | |-style="background:#333" |
| letters a to z || ["A"], ["B"], ["C"], etc... | | letters a to z || ["A"], ["B"], ["C"], etc... | ||
|- | |- | ||
| numbers 0 to 9 || ["0"], ["1"], ["2"], etc... | | numbers 0 to 9 || ["0"], ["1"], ["2"], etc... | ||
− | |- | + | |-style="background:#333" |
| ` (backtick/backquote) || ["BQUOTE"] | | ` (backtick/backquote) || ["BQUOTE"] | ||
|- | |- | ||
| [ (left bracket) || ["LBRACKET"] | | [ (left bracket) || ["LBRACKET"] | ||
− | |- | + | |-style="background:#333" |
| ] (right bracket) || ["RBRACKET"] | | ] (right bracket) || ["RBRACKET"] | ||
|- | |- | ||
| \ (backslash) || ["BSLASH"] | | \ (backslash) || ["BSLASH"] | ||
− | |- | + | |-style="background:#333" |
| ; (semicolon) || ["SCOLON"] | | ; (semicolon) || ["SCOLON"] | ||
|- | |- | ||
| ' (single quote) || ["QUOTE"] | | ' (single quote) || ["QUOTE"] | ||
− | |- | + | |-style="background:#333" |
| - (hyphen/minus) || ["MINUS"] | | - (hyphen/minus) || ["MINUS"] | ||
|- | |- | ||
| = (equal sign) || ["EQUALS"] | | = (equal sign) || ["EQUALS"] | ||
− | |- | + | |-style="background:#333" |
| , (comma) || ["COMMA"] | | , (comma) || ["COMMA"] | ||
|- | |- | ||
| . (period/full stop) || ["PERIOD"] | | . (period/full stop) || ["PERIOD"] | ||
− | |- | + | |-style="background:#333" |
| backspace || ["BACKSPACE"] | | backspace || ["BACKSPACE"] | ||
|- | |- | ||
| insert || ["INSERT"] | | insert || ["INSERT"] | ||
− | |- | + | |-style="background:#333" |
| delete || ["DELETE"] | | delete || ["DELETE"] | ||
|- | |- | ||
| page up || ["PGUP"] | | page up || ["PGUP"] | ||
− | |- | + | |-style="background:#333" |
| page down || ["PGDOWN"] | | page down || ["PGDOWN"] | ||
|- | |- | ||
| home || ["HOME"] | | home || ["HOME"] | ||
− | |- | + | |-style="background:#333" |
| end || ["END"] | | end || ["END"] | ||
|- | |- | ||
| enter || ["ENTER"] | | enter || ["ENTER"] | ||
− | |- | + | |-style="background:#333" |
| spacebar || ["SPACE"] | | spacebar || ["SPACE"] | ||
|- | |- | ||
Line 332: | Line 332: | ||
|- | |- | ||
|Use [[large med-pack]] | |Use [[large med-pack]] | ||
− | |["SHIFT | + | |["SHIFT+M"] (M) |
|function() if not command.use_item("lmed") then ui.msg("No large medpacks left!") end end | |function() if not command.use_item("lmed") then ui.msg("No large medpacks left!") end end | ||
|} | |} |
Latest revision as of 07:58, 11 March 2012
Keybindings are the assigned input to all of the various in-game commands. They are completely customizable to the extent that you can map any key to any command if so desired.
- All names must be encased between square brackets followed by double quotes (such as ["1"] or ["QUOTE"]).
IMPORTANT! As of 0.9.9.6, the keybinding system has changed. Keys are to be named by their symbolic name, and may be combined with SHIFT, CTRL, or ALT (in any combination, as in ["SHIFT+CTRL+X"]) to form a key binding. A list of names is provided below:
Key symbol/name | Symbolic name |
---|---|
letters a to z | ["A"], ["B"], ["C"], etc... |
numbers 0 to 9 | ["0"], ["1"], ["2"], etc... |
` (backtick/backquote) | ["BQUOTE"] |
[ (left bracket) | ["LBRACKET"] |
] (right bracket) | ["RBRACKET"] |
\ (backslash) | ["BSLASH"] |
; (semicolon) | ["SCOLON"] |
' (single quote) | ["QUOTE"] |
- (hyphen/minus) | ["MINUS"] |
= (equal sign) | ["EQUALS"] |
, (comma) | ["COMMA"] |
. (period/full stop) | ["PERIOD"] |
backspace | ["BACKSPACE"] |
insert | ["INSERT"] |
delete | ["DELETE"] |
page up | ["PGUP"] |
page down | ["PGDOWN"] |
home | ["HOME"] |
end | ["END"] |
enter | ["ENTER"] |
spacebar | ["SPACE"] |
Function keys (F1 to F12) | ["F1"], ["F2"], ["F3"], etc... |
Game Commands
The following is a list of keybindings, sorted by the order in the configuration file.
Action | Default Key | Game Command | Other |
---|---|---|---|
Move Left | ["LEFT"] | COMMAND_WALKWEST | N/A |
Move Right | ["RIGHT"] | COMMAND_WALKEAST | N/A |
Move Up | ["UP"] | COMMAND_WALKNORTH | Also scrolls up in the various select screens. |
Move Down | ["DOWN"] | COMMAND_WALKSOUTH | Also scrolls down in the various select screens. |
Move Up-Right | ["PGUP"] (Page Up) | COMMAND_WALKNE | N/A |
Move Down-Right | ["PGDOWN"] (Page Down) | COMMAND_WALKSE | N/A |
Move Up-Left | ["HOME"] | COMMAND_WALKNW | N/A |
Move Down-Left | ["END"] | COMMAND_WALKSW | N/A |
Cancel/Exit Screen | ["ESCAPE"] | COMMAND_ESCAPE | Quitting the game is a separate command. Does not work for y/n confirmations. |
Wait | ["CENTER"], ["PERIOD"] (.) | COMMAND_WAIT | Waiting always takes 1.0s, regardless of speed modifiers. |
Confirm/Select | ["ENTER"] | COMMAND_OK | Does not work for y/n confirmations. |
More Information | ["M"] (m) | COMMAND_MORE | Used primarily to see descriptions when looking at enemies. |
Descend | ["SHIFT+PERIOD"] (>) | COMMAND_ENTER | Can only be used on stairs. |
Unload Weapon | ["SHIFT+U"] (U) | COMMAND_UNLOAD | Works with weapons on the ground, as well as those in your inventory (but not equipped). |
Pick Up Object | ["G"] (g) | COMMAND_PICKUP | Objects can be picked up when you are standing directly on them. |
Drop Object | ["D"] (d) | COMMAND_DROP | This will bring you to the inventory screen, where you can choose what to drop (according to InvMenuStyle). |
Access Inventory Screen | ["I"] (i) | COMMAND_INVENTORY | Items are selected according to InvMenuStyle. Weapons and armor are equipped and consumables are used, when selected. |
Access Equipment Screen | ["E"] (e) | COMMAND_EQUIPMENT | Equipment is selected according to InvMenuStyle. Selecting an empty slot will access all avaiable equipment that can fill the slot; selecting a filled slot will attempt to unequip it (and trigger InvFullDrop). |
Open Door | ["O"] (o) | COMMAND_OPEN | If there is more than one door to select, the game will wait for you to select the direction that the door you want to open is. |
Close Door | ["C"] (c) | COMMAND_CLOSE | If there is more than one door to select, the game will wait for you to select the direction that the door you want to close is. |
Look Around | ["L"] (l) | COMMAND_LOOK | Use the Move commands to move the cursor in order to look. Use the Cancel command to stop looking. |
Attack/Fire | ["F"] (f) | COMMAND_FIRE | For melee weapons, the game will wait for you to select the direction in which you want to attack. For ranged weapons, use the Move keys to place the cursor where you want to aim, then press the key again to fire. |
Alternate Attack/Fire | ["SHIFT+F"] (F) | COMMAND_ALTFIRE | Not all weapons have an alternate attack/fire. See alternate fire for more information. |
Reload Weapon | ["R"] (r) | function() command.reload() end | Only a weapon in your equipped slot can be reloaded with this command. |
Alternate Reload Option | ["SHIFT+R"] (R) | function() command.reload(true) end | Not all weapons have an alternate reload option. See alternate reload for more information. |
Use Item | ["U"] (u) | COMMAND_USE | This brings you to a selection screen of usable items from which to choose (according to InvMenuStyle). |
Quit Game | ["SHIFT+Q"] (Q) | function() command.quit() end | Requires y/n confirmation. |
View Manual | ["SHIFT+SLASH"] (?) | function() command.help() end | Same as viewing the manual found on the wiki. |
Access Character Info Screen | ["SHIFT+2"] (@) | COMMAND_PLAYERINFO | N/A |
Save Game | ["SHIFT+S"] (S) | COMMAND_SAVE | Can only be used on stairs. |
Change Tactics | TAB | COMMAND_TACTIC | See tactics for more information. |
Activate Run | ["COMMA"] (,) | COMMAND_RUNMODE | The game will wait for you to select the direction in which you wish to run at speed set by RunDelay for a number of repetitions set by MaxRun. You can also use the Wait command, which will repeat for the number set by MaxWait. |
Swap Weapon | ["Z"] (z) | COMMAND_SWAPWEAPON | Switches your equipped and prepped slots, regardless of what is (or isn't) in them. |
Capture Screenshot | (F10) | function() command.screenshot() end | Converts screen to ASCII with proper formatting. If playing graphics mode, will make a PNG format image of the screen. This binding is hard-coded and cannot be changed. |
Capture BBCode Screenshot | (F9) | function() command.screenshot(true) end | Like Capture Screenshot but includes BBCode formatting (for use on the forums). If playing in graphics mode, will make a PNG format image of the screen. This binding is hard-coded and cannot be changed. |
Access Trait Screen | ["T"] (t) | COMMAND_TRAITS | N/A |
Toggle Game Sound | ["SHIFT+9"] ( ( ) | COMMAND_SOUNDTOGGLE | N/A |
Toggle Game Music | ["SHIFT+0"] ( ) ) | COMMAND_MUSICTOGGLE | N/A |
View Game Messages | ["SHIFT+P"] (P) | function() command.messages() end | You can scroll through the last X messages displayed by the game, where X is determined by MessageBuffer. |
Access Schematics Screen | ["SHIFT+A"] (A) | function() command.assemblies() end | N/A |
Examine Being | ["X"] (x) | COMMAND_EXAMINENPC | Used in conjunction with BlindMode. |
Examine Item | ["SHIFT+X"] (X) | COMMAND_EXAMINEITEM | Used in conjunction with BlindMode. |
Toggle Grid (Graphics Mode) | ["SPACE"] (spacebar) | COMMAND_GRIDTOGGLE | Turns the grid overlay on/off. |
Quickkey Commands
There are also "quickkey" keybindings in DoomRL. Quickkeys are keys that perform an in-game script, allowing for additional customization. The following are current quickkeys, sorted by the order in the configuration file.
Action | Quickkey | Script |
---|---|---|
Equip chainsaw | ["0"] | function() command.quick_weapon('chainsaw') end |
Equip combat knife | ["1"] | function() command.quick_weapon('knife') end |
Equip pistol | ["2"] | function() command.quick_weapon('pistol') end |
Equip shotgun | ["3"] | function() command.quick_weapon('shotgun') end |
Equip combat shotgun | ["4"] | function() command.quick_weapon('ashotgun') end |
Equip double shotgun | ["5"] | function() command.quick_weapon('dshotgun') end |
Equip chaingun | ["6"] | function() command.quick_weapon('chaingun') end |
Equip rocket launcher | ["7"] | function() command.quick_weapon('bazooka') end |
Equip plasma rifle | ["8"] | function() command.quick_weapon('plasma') end |
Equip BFG 9000 | ["9"] | function() command.quick_weapon('bfg9000') end |
Use small med-pack | ["SHIFT+N"] (N) | function() if not command.use_item("smed") then ui.msg("No small medpacks left!") end end |
Use large med-pack | ["SHIFT+M"] (M) | function() if not command.use_item("lmed") then ui.msg("No large medpacks left!") end end |