NetBSD/games/hack/hack.6

148 lines
4.0 KiB
Groff
Raw Normal View History

.\" $NetBSD: hack.6,v 1.8 2002/02/08 01:25:13 ross Exp $ -*- nroff -*-
1993-08-05 21:35:08 +04:00
.Dd March 31, 1985
.Dt HACK 6
.Os
.Sh NAME
.Nm hack
.Nd Exploring The Dungeons of Doom
.Sh SYNOPSIS
.Nm /usr/games/hack
.Op Fl d Ar directory
.Op Fl n
.Op Fl u Ar playername
.Nm /usr/games/hack
.Op Fl d Ar directory
.Op Fl s
.Op Fl X
.Op Ar playername ...
.Sh DESCRIPTION
.Nm
is a display oriented dungeons \*[Am] dragons - like game.
1993-03-21 12:45:37 +03:00
Both display and command structure resemble rogue.
(For a game with the same structure but entirely different display -
a real cave instead of dull rectangles - try Quest.)
1993-08-05 21:35:08 +04:00
.Pp
1993-03-21 12:45:37 +03:00
To get started you really only need to know two commands. The command
1993-08-05 21:35:08 +04:00
.Ic ?
1993-03-21 12:45:37 +03:00
will give you a list of the available commands and the command
1993-08-05 21:35:08 +04:00
.Ic /
1993-03-21 12:45:37 +03:00
will identify the things you see on the screen.
1993-08-05 21:35:08 +04:00
.Pp
1993-03-21 12:45:37 +03:00
To win the game (as opposed to merely playing to beat other people high
scores) you must locate the Amulet of Yendor which is somewhere below
the 20th level of the dungeon and get it out. Nobody has achieved this
yet and if somebody does, he will probably go down in history as a hero
among heroes.
1993-08-05 21:35:08 +04:00
.Pp
1993-03-21 12:45:37 +03:00
When the game ends, either by your death, when you quit, or if you escape
from the caves,
.Nm
1993-03-21 12:45:37 +03:00
will give you (a fragment of) the list of top scorers. The scoring
is based on many aspects of your behavior but a rough estimate is
1993-03-21 12:45:37 +03:00
obtained by taking the amount of gold you've found in the cave plus four
times your (real) experience. Precious stones may be worth a lot of gold
when brought to the exit.
There is a 10% penalty for getting yourself killed.
1993-08-05 21:35:08 +04:00
.Pp
1993-03-21 12:45:37 +03:00
The administration of the game is kept in the directory specified with the
1993-08-05 21:35:08 +04:00
.Fl d
1993-03-21 12:45:37 +03:00
option, or, if no such option is given, in the directory specified by
2001-04-03 02:42:37 +04:00
the environment variable
.Ev HACKDIR ,
1993-08-05 21:35:08 +04:00
or, if no such variable exists, in the current directory.
This same directory contains several auxiliary files such as lockfiles and
the list of topscorers and a subdirectory
.Pa save
1993-03-21 12:45:37 +03:00
where games are saved.
The game administrator may however choose to install hack with a fixed
2001-04-03 02:42:37 +04:00
playing ground, usually
1993-08-05 21:35:08 +04:00
.Pa /var/games/hackdir .
.Pp
1993-03-21 12:45:37 +03:00
The
1993-08-05 21:35:08 +04:00
.Fl n
1993-03-21 12:45:37 +03:00
option suppresses printing of the news.
1993-08-05 21:35:08 +04:00
.Pp
1993-03-21 12:45:37 +03:00
The
1993-08-05 21:35:08 +04:00
.Fl u
.Ar playername
1993-03-21 12:45:37 +03:00
option supplies the answer to the question "Who are you?".
When
1993-08-05 21:35:08 +04:00
.Ar playername
1993-03-21 12:45:37 +03:00
has as suffix one of
1993-08-05 21:35:08 +04:00
.Em -T ,
.Em -S ,
.Em -K ,
.Em -F ,
.Em -C ,
or
2001-04-03 02:42:37 +04:00
.Em -W ,
1993-03-21 12:45:37 +03:00
then this supplies the answer to the question "What kind of character ... ?".
1993-08-05 21:35:08 +04:00
.Pp
1993-03-21 12:45:37 +03:00
The
1993-08-05 21:35:08 +04:00
.Fl s
1993-03-21 12:45:37 +03:00
option will print out the list of your scores. It may be followed by arguments
1993-08-05 21:35:08 +04:00
.Fl X
1993-03-21 12:45:37 +03:00
where X is one of the letters C, F, K, S, T, W to print the scores of
Cavemen, Fighters, Knights, Speleologists, Tourists or Wizards.
It may also be followed by one or more player names to print the scores of the
players mentioned.
1993-08-05 21:35:08 +04:00
.Sh AUTHORS
1993-03-21 12:45:37 +03:00
Jay Fenlason (+ Kenny Woodland, Mike Thome and Jon Payne) wrote the
original hack, very much like rogue (but full of bugs).
.br
Andries Brouwer continuously deformed their sources into the current
version - in fact an entirely different game.
1993-08-05 21:35:08 +04:00
.Sh FILES
.Bl -tag -width 24n -compact
.It Pa hack
The hack program.
.It Pa data, rumors
Data files used by hack.
.It Pa help, hh
Help data files.
.It Pa record
The list of topscorers.
.It Pa save
A subdirectory containing the saved games.
.It Pa bones_dd
Descriptions of the ghost and belongings of a deceased adventurer.
.It Pa xlock.dd
Description of a dungeon level.
.It Pa safelock
Lock file for xlock.
.It Pa record_lock
Lock file for record.
.El
.Sh ENVIRONMENT
.Bl -tag -width 24n -compact
.It Ev USER No or Ev LOGNAME
Your login name.
.It Ev HOME
Your home directory.
.It Ev SHELL
Your shell.
.It Ev TERM
The type of your terminal.
.It Ev HACKPAGER, PAGER
Pager used instead of default pager.
.It Ev MAIL
Mailbox file.
.It Ev MAILREADER
1995-07-03 23:44:30 +04:00
Reader used instead of default (probably /usr/bin/mail).
1993-08-05 21:35:08 +04:00
.It Ev HACKDIR
Playground.
.It Ev HACKOPTIONS
String predefining several hack options (see help file).
.El
.Pp
1993-03-21 12:45:37 +03:00
Several other environment variables are used in debugging (wizard) mode,
2001-04-03 02:42:37 +04:00
like
1993-08-05 21:35:08 +04:00
.Ev GENOCIDED ,
2001-04-03 02:42:37 +04:00
.Ev INVENT ,
.Ev MAGIC
1993-08-05 21:35:08 +04:00
and
.Ev SHOPTYPE .
.Sh BUGS
1993-03-21 12:45:37 +03:00
Probably infinite.
Mail complaints to mcvax!aeb .