NetHack/Controls: Difference between revisions

From StrategyWiki, the video game walkthrough and strategy guide wiki
309 bytes added ,  31 March 2007
half controls
(Go around NetHack/Translations.)
(half controls)
Line 1: Line 1:
{{All Game Nav|game=NetHack}}
{{All Game Nav|game=NetHack}}
{{needcontrols|PC}}


The official ''NetHack Guidebook'' introduced the commands by listing them all in alphabetical order by key, which can be overwhelming. The plan for this page is to instead group the commands into functional groups.
The official ''NetHack Guidebook'' introduced the commands by listing them all in alphabetical order by key, which can be overwhelming. The plan for this page is to instead group the commands into functional groups.


On this page, '''[s]''' indicates the lowercase letter, while '''[S]''' indicates the uppercase letter. To type '''[S]''', you must hold '''[SHIFT]''' and press '''[s]'''.
On this page, {{kbd|s}} indicates the lowercase letter, while {{kbd|S}} indicates the uppercase letter. To type {{kbd|S}}, you must hold {{kbd|Shift}} and press {{kbd|s}}.


Here, '''[CTRL+X]''' means to hold '''[CTRL]''' and press '''[x]''' (or '''[X]''', it matters not). NetHack uses "^X" for '''[CTRL+X]''', so you might also see '''[^X]''' in this guide. Do not confuse it with '''[^]''', which is the caret (often '''[SHIFT+6]'''), not control key.
Here, {{kbd|CTRL}} + {{kbd|X}} means to hold {{kbd|CTRL}} and press {{kbd|x}} (or {{kbd|X}}, it matters not). NetHack uses "^{{kbd|X}}" for {{kbd|CTRL}} + {{kbd|X}}, so you might also see ^{{kbd|X}} in this guide. Do not confuse it with {{kbd|^}}, which is the caret (often {{kbd|SHIFT}} + {{kbd|6}}), not control key.


If you hold a key down, it repeats, like you were typing in a text editor. For example, press and hold '''[h]''' to move left as far as possible, or repeatedly attack the monster on your left.
If you hold a key down, it repeats, like you were typing in a text editor. For example, press and hold {{kbd|h}} to move left as far as possible, or repeatedly attack the monster on your left.


The [[NetHack/Walkthrough]] introduces these keys more gradually.
The [[NetHack/Walkthrough]] introduces these keys more gradually.


{{wip}}


== Movement ==
== Movement ==
=== [yuhjklbn] ===
=== {{kbd|y}}{{kbd|u}}{{kbd|h}}{{kbd|j}}{{kbd|k}}{{kbd|l}}{{kbd|b}}{{kbd|n}} ===
The '''[hjkl]''' keys move your character to the adjacent square west, south, north, or east. The '''[yubn]''' keys move your character diagonally. If the specified square contains a monster, you attack that monster. Thus you will use these keys much, not only for moving around the dungeon but also for fighting monsters. (Unless you disabled the safe_pet option, you will not attack your own pet or a peaceful monster.)
The {{kbd|h}}{{kbd|j}}{{kbd|k}}{{kbd|l}} keys move your character to the adjacent square west, south, north, or east. The {{kbd|y}}{{kbd|u}}{{kbd|b}}{{kbd|n}}{{kbd|}} keys move your character diagonally. If the specified square contains a monster, you attack that monster. Thus you will use these keys much, not only for moving around the dungeon but also for fighting monsters. (Unless you disabled the safe_pet option, you will not attack your own pet or a peaceful monster.)


If number_pad is on, you instead use '''[12346789]'''. On DOS, the arrow keys tend to work, but on Unix platforms the arrow keys tend to not function. However, ''NetHack'' is easier to play if you learn the '''[yuhjklbn]''' keys.
If number_pad is on, you instead use {{kbd|1}}{{kbd|2}}{{kbd|3}}{{kbd|4}}{{kbd|6}}{{kbd|7}}{{kbd|8}}{{kbd|9}}. On DOS, the arrow keys tend to work, but on Unix platforms the arrow keys tend to not function. However, ''NetHack'' is easier to play if you learn the {{kbd|y}}{{kbd|u}}{{kbd|h}}{{kbd|j}}{{kbd|k}}{{kbd|l}}{{kbd|b}}{{kbd|n}} keys.


=== [o], [c] doors ===
=== {{kbd|o}}, {{kbd|c}} doors ===
You need to learn '''[o]''' and '''[c]''' to open and close doors. Closed doors appear on the map as plus signs <tt>+</tt> in doorways, while open doors appear as <tt>-</tt> or <tt>|</tt> (or shaded squares if you have DECgraphics). Just move yourself adjacent to a door, then press '''[o]''' or '''[c]''' followed by the direction of the door.
You need to learn {{kbd|o}} and {{kbd|c}} to open and close doors. Closed doors appear on the map as plus signs <tt>+</tt> in doorways, while open doors appear as <tt>-</tt> or <tt>|</tt> (or shaded squares if you have DECgraphics). Just move yourself adjacent to a door, then press {{kbd|o}} or {{kbd|c}} followed by the direction of the door.


Only use '''[o]''' or '''[c]''' for doors.
Only use {{kbd|o}} or {{kbd|c}} for doors.


== Inventory ==
== Inventory ==
=== [i], [I] show inventory ===
=== {{kbd|i], {{kbd|I}} show inventory ===
Use '''[i]''' to show your inventory. This is one of the most important keys in the game, because you can use it to check the inventory letters of any of your items! If you want, you can use '''[I]''' to show a fraction of your inventory, for example a list of all your scrolls.
Use {{kbd|i}} to show your inventory. This is one of the most important keys in the game, because you can use it to check the inventory letters of any of your items! If you want, you can use {{kbd|I}} to show a fraction of your inventory, for example a list of all your scrolls.


=== [,] pickup ===
=== {{kbd|,}} pickup ===
Move your <tt>@</tt> onto an item or pile of items, then press '''[,]''' to pick up the item. If there was more than one item, ''NetHack'' gives you a menu. You can then press '''[a]''', '''[b]''', to select <tt>+</tt> or deselect <tt>-</tt> each menu item. Dismiss the menu and pick up the selected items by pressing '''[SPACE]'''. All menus work in a similar manner.
Move your <tt>@</tt> onto an item or pile of items, then press {{kbd|,}} to pick up the item. If there was more than one item, ''NetHack'' gives you a menu. You can then press {{kbd|a}}, {{kbd|b}}, to select <tt>+</tt> or deselect <tt>-</tt> each menu item. Dismiss the menu and pick up the selected items by pressing {{kbd|SPACE}}. All menus work in a similar manner.


=== [d], [D] drop ===
=== [d], [D] drop ===
11,861

edits