File: hh

package info (click to toggle)
nethack 3.6.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,468 kB
  • sloc: ansic: 266,495; cpp: 13,652; yacc: 2,903; perl: 1,426; lex: 581; sh: 535; xml: 372; awk: 98; makefile: 68; fortran: 51; sed: 11
file content (156 lines) | stat: -rw-r--r-- 8,702 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
y k u   7 8 9   Move commands:
 \|/     \|/            yuhjklbn: go one step in specified direction
h-.-l   4-.-6           YUHJKLBN: go in specified direction until you
 /|\     /|\                        hit a wall or run into something
b j n   1 2 3           g<dir>:   run in direction <dir> until something
      numberpad                     interesting is seen
                        G<dir>,   same, except a branching corridor isn't
 <  up                  ^<dir>:     considered interesting (the ^ in this
                                    case means the Control key, not a caret)
 >  down                m<dir>:   move without picking up objects/fighting
                        F<dir>:   fight even if you don't sense a monster
                If the number_pad option is set, the digit keys move instead.
                Depending on the platform, Shift digit (on the numberpad),
                Meta digit, or Alt digit will invoke the YUHJKLBN commands.
                Control <dir> may or may not work when number_pad is enabled,
                depending on the platform's capabilities.
                Digit '5' acts as 'G' prefix, unless number_pad is set to 2
                in which case it acts as 'g' instead.
                If number_pad is set to 3, the roles of 1,2,3 and 7,8,9 are
                reversed; when set to 4, behaves same as 3 combined with 2.
                If number_pad is set to -1, alphabetic movement commands are
                used but 'y' and 'z' are swapped.

General commands:
?     help      display one of several informative texts
#quit quit      end the game without saving current game
S     save      save the game (to be continued later) and exit
                [to restore, play again and use the same character name;
                use #quit to quit without saving]
!     sh        escape to some SHELL (if allowed; 'exit' to resume play)
^Z    suspend   suspend the game (independent of your current suspend char)
                [on UNIX(tm)-based systems, use the 'fg' command to resume]
O     options   set options
/     what-is   tell what a map symbol represents
\     known     display list of what's been discovered
v     version   display version number
V     history   display game history
^A    again     redo the previous command
^R    redraw    redraw the screen
^P    prevmsg   repeat previous message (consecutive ^P's repeat earlier ones)
#               introduces an extended command (#? for a list of them)
&     what-does describe the command a keystroke invokes

Control characters are depicted as '^' followed by a letter.  Depress Ctrl
or Control like a shift key then type the letter.  Control characters are
case-insensitive; ^D is the same as ^d, Ctrl+d is same as Ctrl+Shift+d.
There are a few non-letter control characters; nethack uses ^[ as a synonym
for Escape (or vice versa) but none of the others.

Game commands:
^D    kick      kick (a door, or something else)
^T    Tport     teleport (if you can)
^X    show      show your attributes
a     apply     apply or use a tool (pick-axe, key, camera, etc.)
A     takeoffall  choose multiple items of armor, accessories, and weapons
                to take off, remove, unwield (uses same amount of game time
                as removing them individually with T,R,w- would take)
c     close     close a door
C     call      name a monster, an individual object, or a type of object
d     drop      drop an object.  d7a:  drop seven items of object 'a'
D     Drop      drop selected types of objects
e     eat       eat something
E     engrave   write a message in the dust on the floor  (E-  use fingers)
f     fire      fire ammunition from quiver
F     fight     followed by direction, fight a monster
i     invent    list your inventory (all objects you are carrying)
I     Invent    list selected parts of your inventory; for example
                  I(  list all tools, or  I"  list all amulets
                  IB  list all items known to be blessed
                  IU  uncursed, or  IC  cursed, or  IX  unknown bless state
                  Iu  when in a shop, list unpaid objects being carried
                  Ix  in a shop, list any fees and used-up shop-owned items
o     open      open a door
p     pay       pay your bill (in a shop)
P     puton     put on an accessory (ring, amulet, etc; can be used to wear
                armor too, but armor items aren't listed as likely candidates)
q     quaff     drink something (potion, water, etc)
Q     quiver    select ammunition for quiver (use '#quit' to quit)
r     read      read a scroll or spellbook
R     remove    remove an accessory (ring, amulet, etc; can be used to take
                off armor too)
s     search    search for secret doors, hidden traps and monsters
t     throw     throw or shoot a weapon
T     takeoff   take off some armor; can be used to remove accessories too,
                but those aren't listed as likely candidates)
w     wield     wield a weapon  (w-  wield nothing to unwield current weapon)
W     wear      wear an item of armor; can be used to put on accessories too,
                but those aren't listed as likely candidates)
x     xchange   swap wielded and secondary weapons
X     twoweapon toggle two-weapon combat if role allows that
z     zap       zap a wand  (use y instead of z if number_pad is -1)
Z     Zap       cast a spell  (use Y instead of Z if number_pad is -1)
<     up        go up the stairs
>     down      go down the stairs
^     trap_id   identify a previously found trap
),[,=,",(       show current items of specified symbol in use
*               show combination of ),[,=,",( all at once
$     gold      count your gold
+     spells    list the spells you know; also rearrange them if desired
`     classkn   display known items for one class of objects
_     travel    move via a shortest-path algorithm to a point on the map
.     rest      wait a moment
,     pickup    pick up all you can carry
@               toggle "pickup" (auto pickup) option on and off
:     look      look at what is here
;     farlook   look at what is somewhere else by selecting a map location
                (for a monster on top of one or more objects, only describes
                that monster; for a pile of objects, only describes top one)

Keyboards that have a meta key (some use Alt for that, so typing Alt as a
shift plus 'e' would generate 'M-e') can also use these extended commands
via the meta modifier as an alternative to using the # prefix.  Unlike
control characters, meta characters are case-sensitive so M-a is different
from M-A.  Type the latter with two keys used as shifts, Meta+Shift+a.

M-?             display extended command help (if the platform allows this)
M-2   twoweapon toggle two-weapon combat (unless number_pad is enabled)
M-a   adjust    adjust inventory letters
M-A   annotate  add a one-line note to the current dungeon level (see M-O)
M-c   chat      talk to someone
M-C   conduct   view optional challenges
M-d   dip       dip an object into something
M-e   enhance   show weapon and spell skills, can improve them if eligible
M-f   force     force a lock
M-i   invoke    invoke an object's special powers
M-j   jump      jump to another location
M-l   loot      loot a box on the floor
M-m   monster   when polymorphed, use monster's special ability
M-n   name      name a monster, an individual object, or a type of object
M-N   name      synonym for M-n  (both are the same as C)
M-o   offer     offer a sacrifice to the gods
M-O   overview  display information about visited levels and annotations
M-p   pray      pray to the gods for help
M-q   quit      stop playing without saving game (use S to save and exit)
M-r   rub       rub a lamp or a stone
M-R   ride      mount or dismount saddled steed
M-s   sit       sit down
M-t   turn      turn undead if role allows that
M-T   tip       upend a container to dump out its contents
M-u   untrap    untrap something
M-v   version   print compile time options for this version
M-w   wipe      wipe off your face
M-X   explore   switch from regular play to non-scoring explore mode

If the 'number_pad' option is on, keys usually used for movement can be
used for various commands:

n               followed by number of times to repeat the next command
h     help      display one of several informative texts, like '?'
j     jump      jump to another location
k     kick      kick something (usually a door)
l     loot      loot a box on the floor
N     name      name an item or type of object
u     untrap    untrap something (usually a trapped object)

Additional commands are available in debug mode (also known as wizard mode).