Difference between revisions of "Manual:keybindings.lua"
From DoomRL Wiki
Game Hunter (Talk | contribs) (Created page with "__NOTOC__ 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 ...") |
Revision as of 01:53, 10 August 2011
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.
- Letters and key strings can be writted as is (such as F1 or ENTER). They are case-sensitive.
- Numbers and symbols must be encased between square brackets followed by double quotes (such as ["1"] or [":"]).
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 (arrow key) | COMMAND_WALKWEST | N/A |
Move Right | RIGHT (arrow key) | COMMAND_WALKEAST | N/A |
Move Up | UP (arrow key) | COMMAND_WALKNORTH | Also scrolls up in the various select screens. |
Move Down | DOWN (arrow key) | COMMAND_WALKSOUTH | Also scrolls down in the various select screens. |
Move Up-Right | PAGEUP | COMMAND_WALKNE | N/A |
Move Down-Right | PAGEDOWN | 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, ["."] | 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 | COMMAND_MORE | Used primarily to see descriptions when looking at enemies. |
Descend | [">"] | COMMAND_ENTER | Can only be used on stairs. |
Unload Weapon | U | COMMAND_UNLOAD | Works with weapons on the ground, as well as those in your inventory (but not equipped). |
Pick Up Object | g | COMMAND_PICKUP | Objects can be picked up when you are standing directly on them. |
Drop Object | d | COMMAND_DROP | This will bring you to the inventory screen, where you choose what to drop (according to InvMenuStyle). |
Access Inventory Screen | i | COMMAND_INVENTORY | Items are selected according to InvMenuStyle. Weapons and armor are equipped and consumables are used, when selected. |
Access Equipment Screen | 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 | 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 | 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 open is. |
Look Around | 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 | 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 | F | COMMAND_ALTFIRE | Not all weapons have an alternate attack/fire. See alternate fire for more information. |
Reload Weapon | r | function() command.reload() end | Only a weapon in your equipped slot can be reloaded with this command. |
Alternate Reload Option | R | function() command.reload(true) end | Not all weapons have an alternate reload option. See alternate reload for more information. |
Use Item | u | COMMAND_USE | This brings you to a selection screen where you can choose what item to use (according to InvMenuStyle). |
Quit Game | Q | function() command.quit() end | Requires Y/n confirmation. |
View Manual | ["?"] | function() command.help() end | Same as viewing the manual found on the wiki. |
Access Character Info Screen | ["@"] | COMMAND_PLAYERINFO | N/A |
Save Game | S | COMMAND_SAVE | Can only be used on stairs. |
Change Tactics | TAB | COMMAND_TACTIC | See tactics for more information. |
Activate Run | [","] | 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 | 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. |
Capture BBCode Screenshot | F9 | function() command.screenshot(true) end | Like Capture Screenshot but includes BBCode formatting (for use on the forums). |
Access Trait Screen | T | COMMAND_TRAITS | You can only exit this screen while highlighting an "accessable" trait. |
Toggle Game Sound | ["("] | COMMAND_SOUNDTOGGLE | N/A |
Toggle Game Music | [")"] | COMMAND_MUSICTOGGLE | N/A |
View Game Messages | P | function() command.messages() end | You can scroll through the last X messages displayed by the game, where X is determined by MessageBuffer. |
Access Schmatics Screen | A | function() command.assemblies() end | N/A |
Examine Being | x | COMMAND_EXAMINENPC | Used in conjunction with BlindMode. |
Examine Item | X | COMMAND_EXAMINEITEM | Used in conjunction with BlindMode. |
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 | ["4"] | function() command.quick_weapon('chaingun') end |
Equip rocket launcher | ["4"] | function() command.quick_weapon('bazooka') end |
Equip plasma rifle | ["4"] | function() command.quick_weapon('plasma') end |
Equip BFG 9000 | ["9"] | function() command.quick_weapon('bfg9000') end |
Use small med-pack | N | function() if not command.use_item("smed") then ui.msg("No small medpacks left!") end end |
Use large med-pack | M | function() if not command.use_item("lmed") then ui.msg("No large medpacks left!") end end |