OSDN Git Service

upgrade to 3.6.2
[jnethack/source.git] / doc / nethack.6
1 .TH NETHACK 6 "2 February 2018" NETHACK
2 .de ND
3 .ds Nd \\$3
4 ..
5 .de NB
6 .ds Nb \\$2
7 ..
8 .de NR
9 .ds Nr \\$2
10 ..
11 .ND $NHDT-Date: 1524689549 2018/04/25 20:52:29 $
12 .NB $NHDT-Branch: NetHack-3.6.0 $
13 .NR $NHDT-Revision: 1.14 $
14 .ds Na Robert Patrick Rankin
15 .SH NAME
16 nethack \- Exploring The Mazes of Menace
17 .SH SYNOPSIS
18 .na
19 .hy 0
20 .B nethack
21 [
22 .B \-d
23 .I directory
24 ]
25 [
26 .B \-n
27 ]
28 [
29 .B \-p
30 .I profession
31 ]
32 [
33 .B \-r
34 .I race
35 ]
36 [
37 .B \-[DX]
38 ]
39 [
40 .B \-u
41 .I playername
42 ]
43 [
44 .B \-dec
45 ]
46 [
47 .B \-ibm
48 ]
49 [
50 .BR \-\-version [ :paste ]
51 ]
52 .PP
53 .B nethack
54 [
55 .B \-d
56 .I directory
57 ]
58 .B \-s
59 [
60 .B \-v
61 ]
62 [
63 .B \-p
64 .I profession
65 ]
66 [
67 .B \-r
68 .I race
69 ]
70 [
71 .I playernames
72 ]
73 .ad
74 .hy 14
75 .\" Make sure path is not hyphenated below
76 .hw nethackdir
77 .SH DESCRIPTION
78 .PP
79 .I NetHack
80 is a display oriented Dungeons & Dragons(tm) - like game.
81 The standard tty display and command structure resemble rogue.
82 .PP
83 Other, more graphical display options exist for most platforms.
84 .PP
85 To get started you really only need to know two commands.  The command
86 .B ?
87 will give you a list of the available commands (as well as other information)
88 and the command
89 .B /
90 will identify the things you see on the screen.
91 .PP
92 To win the game (as opposed to merely playing to beat other people's high
93 scores) you must locate the Amulet of Yendor which is somewhere below
94 the 20th level of the dungeon and get it out.
95 Few people achieve this; most never do.  Those who have go down
96 in history as heroes among heroes - and then they find ways of making the
97 game even harder.  See the
98 .I Guidebook
99 section on Conduct if this game has gotten too easy for you.
100 .PP
101 When the game ends, whether by your dying, quitting, or escaping
102 from the caves,
103 .I NetHack
104 will give you (a fragment of) the list of top scorers.
105 The scoring is based on many aspects of your behavior, but a rough estimate
106 is obtained by taking the amount of gold you've found in the cave plus four
107 times your (real) experience.
108 Precious stones may be worth a lot of gold when brought to the exit.
109 There is a 10% penalty for getting yourself killed.
110 .PP
111 The environment variable NETHACKOPTIONS can be used to initialize many
112 run-time options.
113 The ? command provides a description of these options and syntax.
114 (The
115 .B \-dec
116 and
117 .B \-ibm
118 command line options are equivalent to the
119 .B decgraphics
120 and
121 .B ibmgraphics
122 run-time options described there,
123 and are provided purely for convenience on systems
124 supporting multiple types of terminals.)
125 .PP
126 Because the option list can be very long (particularly when specifying
127 graphics characters), options may also be included in a configuration
128 file.
129 The default is located in your home directory and
130 named .nethackrc on Unix systems.  On other systems, the default may be
131 different, usually NetHack.cnf.  On DOS or Windows, the name is
132 defaults.nh, while on the Macintosh or BeOS, it is NetHack Defaults.
133 The configuration file's location may be specified by setting NETHACKOPTIONS
134 to a string consisting of an @ character followed by the filename.
135 .PP
136 The
137 .B \-u
138 .I playername
139 option supplies the answer to the question "Who are you?".
140 It overrides any name from the options or configuration file, USER, LOGNAME,
141 or getlogin(), which will otherwise be tried in order.
142 If none of these provides a useful name, the player will be asked for one.
143 Player names (in conjunction with uids) are used to identify save files,
144 so you can have several saved games under different names.
145 Conversely, you must use the appropriate player name to restore a saved game.
146 .PP
147 A
148 .I playername
149 suffix can be used to specify the profession, race, alignment and/or gender
150 of the character.  The full syntax of the playername that includes a
151 suffix is "name-ppp-rrr-aaa-ggg".  "ppp" are at least the first three letters
152 of the profession (this can also be specified using a separate 
153 .B \-p
154 .I profession
155 option).  "rrr" are at least the first three letters of the character's
156 race (this can also be specified using a separate 
157 .B \-r
158 .I race
159 option).  "aaa" are at last the first three letters of the character's
160 alignment, and "ggg" are at least the first three letters of the
161 character's gender.  Any of the parts of the suffix may be left out.
162 .PP
163 .B \-p
164 .I profession
165 can be used to determine the character profession, also known as the role.
166 You can specify either the male or female name for the character role, or
167 the first three characters of the role as an abbreviation.
168 .B "\-p \@"
169 has been retained to explicitly request that a random role be chosen.
170 It may need to be quoted with a backslash (\\@) if @
171 is the "kill" character (see "stty") for the terminal, in order
172 to prevent the current input line from being cleared.
173 .PP
174 Likewise,
175 .B \-r
176 .I race
177 can be used to explicitly request that a race be chosen.
178 .PP
179 Leaving out any of these characteristics will result in you being prompted
180 during the game startup for the information.
181 .PP
182 .PP
183 The
184 .B \-s
185 option alone will print out the list of your scores on the current version.
186 An immediately following
187 .B \-v
188 reports on all versions present in the score file.
189 The
190 .B \-s
191 may also be followed by arguments
192 .B \-p
193 and
194 .B \-r
195 to print the scores of particular roles and races only.
196 It may also be followed by one or more player names to print the scores of the
197 players mentioned, by 'all' to print out all scores, or by a number to print
198 that many top scores.
199 .PP
200 The
201 .B \-n
202 option suppresses printing of any news from the game administrator.
203 .PP
204 The
205 .B \-D
206 or
207 .B \-X
208 option will start the game in a special non-scoring discovery mode.
209 .B \-D
210 will, if the player is the game administrator, start in debugging (wizard)
211 mode instead.
212 .PP
213 The
214 .B \-d
215 option, which must be the first argument if it appears,
216 supplies a directory which is to serve as the playground.
217 It overrides the value from NETHACKDIR, HACKDIR,
218 or the directory specified by the game administrator during compilation
219 (usually /usr/games/lib/nethackdir).
220 This option is usually only useful to the game administrator.
221 The playground must contain several auxiliary files such as help files,
222 the list of top scorers, and a subdirectory
223 .I save
224 where games are saved.
225 .PP
226 .B \-\-version
227 can be used to cause NetHack to show the version information it
228 was compiled with, then exit. That will include the
229 .I git
230 commit hash if the information was available when the game was compiled.
231 On some platforms, such as windows and macosx, a variation 
232 .B \-\-version:paste
233 can be used to cause NetHack to show the version information, then exit,
234 while also leaving a copy of the version information in the paste buffer 
235 or clipboard for potential insertion into things like bug reports.
236 .SH AUTHORS
237 .PP
238 Jay Fenlason (+ Kenny Woodland, Mike Thome and Jon Payne) wrote the
239 original hack, very much like rogue (but full of bugs).
240 .PP
241 Andries Brouwer continuously deformed their sources into an entirely
242 different game.
243 .PP
244 Mike Stephenson has continued the perversion of sources, adding various
245 warped character classes and sadistic traps with the help of many strange
246 people who reside in that place between the worlds, the Usenet Zone.
247 A number of these miscreants are immortalized in the historical
248 roll of dishonor and various other places.
249 .PP
250 The resulting mess is now called NetHack, to denote its
251 development by the Usenet.  Andries Brouwer has made this request for the
252 distinction, as he may eventually release a new version of his own.
253 .SH FILES
254 .PP
255 Run-time configuration options were discussed above and use a platform
256 specific name for a file in a platform specific location.  For Unix, the
257 name is '.nethackrc' in the user's home directory.
258
259 .br
260 All other files are in the playground directory,
261 normally /usr/games/lib/nethackdir.
262 If DLB was defined during the compile, the data files and special levels
263 will be inside a larger file, normally nhdat, instead of being separate
264 files.
265
266 .br
267 .DT
268 .ta \w'cmdhelp, opthelp, wizhelp\ \ \ 'u
269 nethack         The program itself.
270 .br
271 data, oracles, rumors   Data files used by NetHack.
272 .br
273 quest.dat, bogusmon     More data files.
274 .br
275 engrave, epitaph, tribute       Still more data files.
276 .br
277 symbols Data file holding sets of specifications
278 .br
279         for how to display monsters, objects, and
280 .br
281         map features.
282 .br
283 options Data file containing a description of the
284         build-time option settings.
285 .br
286 help, hh        Help data files.
287 .br
288 cmdhelp, opthelp, wizhelp       More help data files.
289 .br
290 *.lev   Predefined special levels.
291 .br
292 dungeon Control file for special levels.
293 .br
294 history A short history of NetHack.
295 .br
296 license Rules governing redistribution.
297 .br
298 record  The list of top scorers.
299 .br
300 logfile An extended list of games played
301 .br
302         (optional).
303 .br
304 xlogfile        A more detailed version of 'logfile'
305 .br
306         (also optional).
307 .br
308 paniclog        Record of exceptional conditions
309 .br
310         discovered during program execution.
311 .br
312 xlock.nn        Description of dungeon level 'nn' of
313 .br
314         active game 'x' if there's a limit on the
315 .br
316         number of simultaneously active games.
317 .br
318 UUcccccc.nn     Alternate form for dungeon level 'nn'
319 .br
320         of active game by user 'UU' playing
321 .br
322         character named 'cccccc' when there's no
323 .br
324         limit on number of active games.
325 .br
326 perm    Lock file for xlock.0 or UUcccccc.0.
327 .br
328 bonesDD.nn      Descriptions of the ghost and belongings
329 .br
330         of a deceased adventurer who met his
331 .br
332         or her demise on level 'nn'.
333 .br
334 .\"following line should contain <space><tab>
335         
336 .br
337 save/   A subdirectory containing saved games.
338 .br
339 .\"following line should contain <space><tab>
340         
341 .br
342 sysconf System-wide options.  Required if
343 .br
344         program is built with 'SYSCF' option
345 .br
346         enabled, ignored if not.
347 .br
348
349 The location of 'sysconf' is specified at build time and can't be changed
350 except by updating source file "config.h" and rebuilding the program.
351 .br
352
353 In a perfect world, 'paniclog' would remain empty.
354 .SH ENVIRONMENT
355 .DT
356 .ta \w'NETHACKDIR or HACKDIR\ \ \ 'u
357 USER or LOGNAME Your login name.
358 .br
359 HOME            Your home directory.
360 .br
361 SHELL           Your shell.
362 .br
363 TERM            The type of your terminal.
364 .br
365 HACKPAGER or PAGER      Replacement for default pager.
366 .br
367 MAIL    Mailbox file.
368 .br
369 MAILREADER      Replacement for default reader
370 .br
371         (probably /bin/mail or /usr/ucb/mail).
372 .br
373 NETHACKDIR or HACKDIR   Playground.
374 .br
375 NETHACKOPTIONS  String predefining several NetHack
376 .br
377         options.
378 .br
379
380 If the same option is specified in both NETHACKOPTIONS and .nethackrc,
381 the value assigned in NETHACKOPTIONS takes precedence.
382 .br
383
384 SHOPTYPE and SPLEVTYPE can be used in debugging (wizard) mode.
385 .br
386 DEBUGFILES can be used if the program was built with 'DEBUG' enabled.
387 .SH "SEE ALSO"
388 .PP
389 dgn_comp(6), lev_comp(6), recover(6)
390 .SH BUGS
391 .PP
392 Probably infinite.
393 .SH COPYRIGHT
394 This file is Copyright (C) \*(Na and was last modified \*(Nd (version
395 \*(Nb:\*(Nr).
396 NetHack may be freely redistributed.  See license for details.
397 .PP
398 Dungeons & Dragons is a Trademark of Wizards of the Coast, Inc.