Source:NetHack 5.0.0/dat/hh

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to hh from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/hh#line12]], for example.

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1. y k u   7 8 9   Move commands:
2.  \|/     \|/            yuhjklbn: go one step in specified direction
3. h-.-l   4-.-6           YUHJKLBN: go in specified direction until you
4.  /|\     /|\                        hit a wall or run into something
5. b j n   1 2 3           g<dir>:   run in direction <dir> until something
6.       numberpad                     interesting is seen
7.                         G<dir>,   same, except a branching corridor isn't
8.  <  up                  ^<dir>:     considered interesting (the ^ in this
9.                                     case means the Control key, not a caret)
10.  >  down                m<dir>:   move without picking up objects/fighting
11.                         F<dir>:   fight even if you don't sense a monster
12.                 If the number_pad option is set, the digit keys move instead.
13.                 Depending on the platform, Shift digit (on the numberpad),
14.                 Meta digit, or Alt digit will invoke the YUHJKLBN commands.
15.                 Control <dir> may or may not work when number_pad is enabled,
16.                 depending on the platform's capabilities.
17.                 Digit '5' acts as 'G' prefix, unless number_pad is set to 2
18.                 in which case it acts as 'g' instead.
19.                 If number_pad is set to 3, the roles of 1,2,3 and 7,8,9 are
20.                 reversed; when set to 4, behaves same as 3 combined with 2.
21.                 If number_pad is set to -1, alphabetic movement commands are
22.                 used but 'y' and 'z' are swapped.
23. 
24. General commands:
25. ?     help      display one of several informative texts
26. #quit quit      end the game without saving current game
27. S     save      save the game (to be continued later) and exit
28.                 [to restore, play again and use the same character name;
29.                 use #quit to quit without saving]
30. !     sh        escape to some SHELL (if allowed; 'exit' to resume play)
31. ^Z    suspend   suspend the game (independent of your current suspend char)
32.                 [on UNIX(tm)-based systems, use the 'fg' command to resume]
33. O     options   set options
34. /     what-is   tell what a map symbol represents
35. \     known     display list of what's been discovered
36. |     perminv   interact with persistent inventory window instead of hero+map
37. v     chronicle display a list of important events
38. V     version   display version number
39. ^A    again     redo the previous command
40. ^R    redraw    redraw the screen
41. ^P    prevmsg   repeat previous message (consecutive ^P's repeat earlier ones)
42. #               introduces an extended command (#? for a list of them)
43. &     what-does describe the command a keystroke invokes
44. 
45. Control characters are depicted as '^' followed by a letter.  Depress Ctrl
46. or Control like a shift key then type the letter.  Control characters are
47. case-insensitive; ^D is the same as ^d, Ctrl+d is same as Ctrl+Shift+d.
48. There are a few non-letter control characters; nethack uses ^[ as a synonym
49. for Escape (or vice versa) and ^_ for #retravel but none of the others.
50. 
51. Game commands:
52. ^D    kick      kick (a door, or something else)
53. ^T    Tport     teleport (if you can)
54. ^X    show      show your attributes
55. a     apply     apply or use a tool (pick-axe, key, camera, etc.)
56. A     takeoffall  choose multiple items of armor, accessories, and weapons
57.                 to take off, remove, unwield (uses same amount of game time
58.                 as removing them individually with T,R,w- would take)
59. c     close     close a door
60. C     call      name a monster, an individual object, or a type of object
61. d     drop      drop an object.  d7a:  drop seven items of object 'a'
62. D     Drop      drop selected types of objects
63. e     eat       eat something
64. E     engrave   write a message in the dust on the floor  (E-  use fingers)
65. f     fire      fire ammunition from quiver
66. F     fight     followed by direction, fight a monster
67. i     invent    list your inventory (all objects you are carrying)
68. I     Invent    list selected parts of your inventory; for example
69.                   I(  list all tools, or  I"  list all amulets
70.                   IB  list all items known to be blessed
71.                   IU  uncursed, or  IC  cursed, or  IX  unknown bless state
72.                   Iu  when in a shop, list unpaid objects being carried
73.                   Ix  in a shop, list any fees and used-up shop-owned items
74. o     open      open a door
75. p     pay       pay your bill (in a shop)
76. P     puton     put on an accessory (ring, amulet, etc; can be used to wear
77.                 armor too, but armor items aren't listed as likely candidates)
78. q     quaff     drink something (potion, water, etc)
79. Q     quiver    select ammunition for quiver (use '#quit' to quit)
80. r     read      read a scroll or spellbook
81. R     remove    remove an accessory (ring, amulet, etc; can be used to take
82.                 off armor too)
83. s     search    search for secret doors, hidden traps and monsters
84. t     throw     throw or shoot a weapon
85. T     takeoff   take off some armor; can be used to remove accessories too,
86.                 but those aren't listed as likely candidates)
87. w     wield     wield a weapon  (w-  wield nothing to unwield current weapon)
88. W     wear      wear an item of armor; can be used to put on accessories too,
89.                 but those aren't listed as likely candidates)
90. x     xchange   swap wielded and secondary weapons
91. X     twoweapon toggle two-weapon combat if role allows that
92. z     zap       zap a wand  (use y instead of z if number_pad is -1)
93. Z     Zap       cast a spell  (use Y instead of Z if number_pad is -1)
94. <     up        go up the stairs
95. >     down      go down the stairs
96. ^     trap_id   identify a previously found trap
97. ),[,=,",(       show current items of specified symbol in use
98. *               show combination of ),[,=,",( all at once
99. $     gold      count your gold
100. +     spells    list the spells you know; also rearrange them if desired
101. `     classkn   display known items for one class of objects
102. _     travel    move via a shortest-path algorithm to a point on the map
103. ^_    retravel  resume travelling toward previously specified destination
104. .     rest      wait a moment
105. ,     pickup    pick up all you can carry
106. @               toggle "pickup" (auto pickup) option on and off
107. :     look      look at what is here
108. ;     farlook   look at what is somewhere else by selecting a map location
109.                 (for a monster on top of one or more objects, only describes
110.                 that monster; for a pile of objects, only describes top one)
111. 
112. Keyboards that have a meta key (some use Alt for that, so typing Alt as a
113. shift plus 'e' would generate 'M-e') can also use these extended commands
114. via the meta modifier as an alternative to using the # prefix.  Unlike
115. control characters, meta characters are case-sensitive so M-a is different
116. from M-A.  Type the latter with two keys used as shifts, Meta+Shift+a.
117. 
118. M-?             display extended command help (if the platform allows this)
119. M-2   twoweapon toggle two-weapon combat (unless number_pad is enabled)
120. M-a   adjust    adjust inventory letters
121. M-A   annotate  add a one-line note to the current dungeon level (see M-O)
122. M-c   chat      talk to someone
123. M-C   conduct   view optional challenges
124. M-d   dip       dip an object into something
125. M-e   enhance   show weapon and spell skills, can improve them if eligible
126. M-f   force     force a lock
127. M-g   genocided list genocided and extinct monster types, if any
128. M-i   invoke    invoke an object's special powers
129. M-j   jump      jump to another location
130. M-l   loot      loot a box on the floor
131. M-m   monster   when polymorphed, use monster's special ability
132. M-n   name      name a monster, an individual object, or a type of object
133. M-N   name      synonym for M-n  (both are the same as C)
134. M-o   offer     offer a sacrifice to the gods
135. M-O   overview  display information about visited levels and annotations
136. M-p   pray      pray to the gods for help
137. M-q   quit      stop playing without saving game (use S to save and exit)
138. M-r   rub       rub a lamp or a stone
139. M-R   ride      mount or dismount saddled steed
140. M-s   sit       sit down
141. M-t   turn      turn undead if role allows that
142. M-T   tip       upend a container to dump out its contents
143. M-u   untrap    untrap something
144. M-V   vanquished list number and type of vanquished monsters
145. M-v   version   print compile time options for this version
146. M-w   wipe      wipe off your face
147. M-X   explore   switch from regular play to non-scoring explore mode
148. 
149. If the 'number_pad' option is on, keys usually used for movement can be
150. used for various commands:
151. 
152. n               followed by number of times to repeat the next command
153. h     help      display one of several informative texts, like '?'
154. j     jump      jump to another location
155. k     kick      kick something (usually a door)
156. l     loot      loot a box on the floor
157. N     name      name an item or type of object
158. u     untrap    untrap something (usually a trapped object)
159. 
160. Additional commands are available in debug mode (also known as wizard mode).