Source:NetHack 3.6.7/dat/hh

From NetHackWiki
Jump to navigation Jump to search

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