.\" Copyright (c) 1986 The Regents of the University of California.
.\" Redistribution and use in source and binary forms are permitted
.\" provided that the above copyright notice and this paragraph are
.\" duplicated in all such forms and that any documentation,
.\" advertising materials, and other materials related to such
.\" distribution and use acknowledge that the software was developed
.\" by the University of California, Berkeley. The name of the
.\" University may not be used to endorse or promote products derived
.\" from this software without specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\" @(#)rogue.me 6.4 (Berkeley) 2/10/89
A Guide to the Dungeons of Doom
Computer Systems Research Group
Department of Electrical Engineering and Computer Science
Berkeley, California 94720
is a visual CRT based fantasy game
which runs under the \*U\(dg timesharing system.
\fR\(dg\*U is a trademark of Bell Laboratories\fP
This paper describes how to play rogue,
for those who might otherwise get lost in the Dungeons of Doom.
\".he '''\fBA Guide to the Dungeons of Doom\fP'
.eh 'USD:33-%''A Guide to the Dungeons of Doom'
.oh 'A Guide to the Dungeons of Doom''USD:33-%'
You have just finished your years as a student at the local fighter's guild.
After much practice and sweat you have finally completed your training
and are ready to embark upon a perilous adventure.
As a test of your skills,
the local guildmasters have sent you into the Dungeons of Doom.
Your task is to return with the Amulet of Yendor.
Your reward for the completion of this task
will be a full membership in the local guild.
you are allowed to keep all the loot you bring back from the dungeons.
In preparation for your journey,
you are given an enchanted mace,
a bow, and a quiver of arrows
taken from a dragon's hoard in the far off Dark Mountains.
You are also outfitted with elf-crafted armor
and given enough food to reach the dungeons.
You say goodbye to family and friends for what may be the last time
You set out on your way to the dungeons
and after several days of uneventful travel,
you see the ancient ruins
that mark the entrance to the Dungeons of Doom.
so you make camp at the entrance
and spend the night sleeping under the open skies.
In the morning you gather your weapons,
eat what is almost your last food,
.sh 1 "What is going on here?"
You have just begun a game of rogue.
Your goal is to grab as much treasure as you can,
find the Amulet of Yendor,
and get out of the Dungeons of Doom alive.
a map of where you have been
and what you have seen on the current dungeon level is kept.
As you explore more of the level,
it appears on the screen in front of you.
Rogue differs from most computer fantasy games in that it is screen oriented.
Commands are all one or two keystrokes\**
\** As opposed to pseudo English sentences.
and the results of your commands
are displayed graphically on the screen rather
than being explained in words.\**
\** A minimum screen size of 24 lines by 80 columns is required.
If the screen is larger, only the 24x80 section will be used
Another major difference between rogue and other computer fantasy games
is that once you have solved all the puzzles in a standard fantasy game,
it has lost most of its excitement and it ceases to be fun.
generates a new dungeon every time you play it
and even the author finds it an entertaining and exciting game.
.sh 1 "What do all those things on the screen mean?"
In order to understand what is going on in rogue
you have to first get some grasp of what rogue is doing with the screen.
The rogue screen is intended
to replace the \*(lqYou can see ...\*(rq descriptions
of standard fantasy games.
Figure 1 is a sample of what a rogue screen might look like.
ce0 ce0 ce0 ce0 ce0 ce0 ce0 ce0 ce0 ce0 ce0 ce.
Level: 1 Gold: 0 Hp: 12(12) Str: 16(16) Arm: 4 Exp: 1/0
At the bottom line of the screen
are a few pieces of cryptic information
describing your current status.
Here is an explanation of what these things mean:
This number indicates how deep you have gone in the dungeon.
It starts at one and goes up as you go deeper into the dungeon.
The number of gold pieces you have managed to find
and keep with you so far.
Your current and maximum health points.
Health points indicate how much damage you can take before you die.
The more you get hit in a fight,
You can regain health points by resting.
The number in parentheses
is the maximum number your health points can reach.
Your current strength and maximum ever strength.
This can be any integer less than or equal to 99,
or greater than or equal to 1.
The number in the parentheses
is the maximum strength you have attained so far this game.
Your current armor protection.
This number indicates how effective your armor is
in stopping blows from unfriendly creatures.
The higher this number is,
the more effective the armor.
These two numbers give your current experience level
you gain experience points.
At certain experience point totals,
you gain an experience level.
The more experienced you are,
the better you are able to fight and to withstand magical attacks.
The top line of the screen is reserved
for printing messages that describe things
that are impossible to represent visually.
If you see a \*(lq--More--\*(rq on the top line,
this means that rogue wants to print another message on the screen,
but it wants to make certain
that you have read the one that is there first.
To read the next message,
.sh 2 "The rest of the screen"
The rest of the screen is the map of the level
as you have explored it so far.
Each symbol on the screen represents something.
Here is a list of what the various symbols mean:
This symbol represents you, the adventurer.
These symbols represent the walls of rooms.
The floor of a passage between rooms.
A flask containing a magic potion.
A piece of paper, usually a magic scroll.
A ring with magic properties
A trap, watch out for these.
A staircase to other levels
represent the various inhabitants of the Dungeons of Doom.
Watch out, they can be nasty and vicious.
Commands are given to rogue by typing one or two characters.
Most commands can be preceded by a count to repeat them
Commands for which counts make no sense
To cancel a count or a prefix,
The list of commands is rather long,
but it can be read at any time during the game with the
Here it is for reference,
with a short explanation of each command.
Asks for a character to give help on.
it will list all the commands,
otherwise it will explain what the character you typed does.
This is the \*(lqWhat is that on the screen?\*(rq command.
followed by any character that you see on the level,
will tell you what that character is.
symbol represents you, the player.
You move one space to the left.
you will continue to move left until you run into something.
This works for all movement commands
If you use the \*(lqcontrol\*(rq
you will continue moving in the specified direction
until you pass something interesting or run into a wall.
You should experiment with this,
since it is a very useful command,
but very difficult to describe.
This also works for all movement commands.
Move diagonally up and left.
Move diagonally up and right.
Move diagonally down and left.
Move diagonally down and right.
This is a prefix command.
When followed with a direction
it throws an object in the specified direction.
Fight until someone dies.
When followed with a direction
this will force you to fight the creature in that direction
until either you or it bites the big one.
Move onto something without picking it up.
This will move you one space in the direction you specify and,
if there is an object there you can pick up,
Point a staff or wand in a given direction
Even non-directional staves must be pointed in some direction
and you can't remember what type it is,
you can get rogue to remind you
by getting next to it and typing
followed by the direction that would move you on top of it.
Search for traps and secret doors.
Examine each space immediately adjacent to you
for the existence of a trap or secret door.
There is a large chance that even if there is something there,
so you might have to search a while before you find something.
Climb down a staircase to the next level.
Not surprisingly, this can only be done if you are standing on staircase.
Climb up a staircase to the level above.
This can't be done without the Amulet of Yendor in your possession.
This is the \*(lqdo nothing\*(rq command.
This is good for waiting and healing.
This picks up whatever you are currently standing on,
if you are standing on anything at all.
List what you are carrying in your pack.
Tells you what a single item in your pack is.
Quaff one of the potions you are carrying.
Read one of the scrolls in your pack.
Take a weapon out of your pack and carry it for use in combat,
replacing the one you are currently using (if any).
You can only wear one suit of armor at a time.
You can't remove armor that is cursed.
You can wear only two rings at a time
If you aren't wearing any rings,
this command will ask you which hand you want to wear it on,
otherwise, it will place it on the unused hand.
The program assumes that you wield your sword in your right hand.
If you are only wearing one ring,
this command takes it off.
it will ask you which one you wish to remove,
Take something out of your pack and leave it lying on the floor.
Only one object can occupy each space.
You cannot drop a cursed object at all
if you are wielding or wearing it.
Call an object something.
If you have a type of object in your pack
which you wish to remember something about,
you can use the call command to give a name to that type of object.
This is usually used when you figure out what a
potion, scroll, ring, or staff is
after you pick it up but before it is truly identified. Each type of
scroll and potion will become identified after its first use.
This command is further explained in the section on options.
Useful if spurious messages or transmission errors
have messed up the display.
Useful when a message disappears before you can read it.
Consecutive repetitions of this command will reveal the last
Cancel a command, prefix, or count.
Escape to a shell for some commands.
Save the current game in a file.
It will ask you whether you wish to use the default save file.
Rogue won't let you start up a copy of a saved game,
and it removes the save file as soon as you start up a restored game.
This is to prevent people from saving a game just before a dangerous position
and then restarting it if they die.
give the file name as an argument to rogue.
% rogue \fIsave\*_file\fP
Prints the program version number.
Print the weapon you are currently wielding
Print the armor you are currently wearing
Print the rings you are currently wearing
Rooms in the dungeons are lit as you enter them.
all monsters inside the room are erased from the screen.
In the darkness of a corridor, you can only see one space
in all directions around you.
If you see a monster and you wish to fight it,
just attempt to run into it.
Many times a monster you find will mind its own business
It is often the case that discretion is the better part of valor.
.sh 1 "Objects you can find"
When you find something in the dungeon,
it is common to want to pick the object up.
This is accomplished in rogue by walking over the object
If you are carrying too many things,
the program will tell you and it won't pick up the object,
otherwise it will add it to your pack
and tell you what you just picked up.
Many of the commands that operate on objects must prompt you
to find out which object you want to use.
If you change your mind and don't want to do that command after all,
just type an \*E and the command will be aborted.
Some objects, like armor and weapons,
are easily differentiated.
Others, like scrolls and potions,
are given labels which vary according to type.
any two of the same kind of object
the labels will vary from game to game.
When you use one of these labeled objects,
if its effect may be obvious. Potions or scrolls will
become identified at this point, but not other items.
You may want to call these other items something
so you will recognize it later,
but most come one at a time.
In order to use a weapon,
To fire an arrow out of a bow,
you must first wield the bow,
You can only wield one weapon at a time,
but you can't change weapons if the one
you are currently wielding is cursed.
The commands to use weapons are
There are various sorts of armor lying around in the dungeon.
Different armor types have different armor protection.
The higher the armor protection,
the more protection the armor affords against the blows of monsters.
Here is a list of the various armor types and their normal armor protection:
\ \ \fIType Protection\fP
Studded leather / Ring mail 3
Banded mail / Splint mail 6
If a piece of armor is enchanted,
its armor protection will be higher than normal.
If a suit of armor is cursed,
its armor protection will be lower,
and you will not be able to remove it.
However, not all armor with a protection that is lower than normal is cursed.
The commands to use weapons are
Scrolls come with titles in an unknown tongue\**.
\** Actually, it's a dialect spoken only by the twenty-seven members
of a tribe in Outer Mongolia,
but you're not supposed to
it disappears from your pack.
The command to use a scroll is
Potions are labeled by the color of the liquid inside the flask.
They disappear after being quaffed.
The command to use a scroll is
Staves and wands do the same kinds of things.
Staves are identified by a type of wood;
wands by a type of metal or bone.
They are generally things you want to do to something
so you must point them at what you wish to affect
Some staves are not affected by the direction they are pointed, though.
Staves come with multiple magic charges,
and when they are used up,
the staff is just a piece of wood or metal.
The command to use a wand or staff is
Rings are very useful items,
since they are relatively permanent magic,
unlike the usually fleeting effects of potions, scrolls, and staves.
the bad rings are also more powerful.
Most rings also cause you to use up food more rapidly,
the rate varying with the type of ring.
Rings are differentiated by their stone settings.
The commands to use rings are
Food is necessary to keep you going.
If you go too long without eating you will faint,
and eventually die of starvation.
The command to use food is
Due to variations in personal tastes
and conceptions of the way rogue should do things,
there are a set of options you can set
that cause rogue to behave in various different ways.
.sh 2 "Setting the options"
There are two ways to set the options.
\** On Version 6 systems,
there is no equivalent of the ROGUEOPTS feature.
.sh 3 "Using the `o' command"
and displays the current settings for all the options.
It then places the cursor by the value of the first option
and waits for you to type.
which means to go to the next option,
which means to go to the previous option,
which means to return to the game,
or you can give the option a value.
For boolean options this merely involves typing
type the new value followed by a \*R.
.sh 3 "Using the ROGUEOPTS variable"
The ROGUEOPTS variable is a string
containing a comma separated list of initial values
Boolean variables can be turned on by listing their name
or turned off by putting a
Thus to set up an environment variable so that
is set to \*(lqBlue Meanie\*(rq,
% setenv ROGUEOPTS "jump,nopassgo,name=Blue Meanie"\**
For those of you who use the Bourne shell sh (1), the commands would be
$ ROGUEOPTS="jump,nopassgo,name=Blue Meanie"
Here is a list of the options
and an explanation of what each one is for.
The default value for each is enclosed in square brackets.
For character string options,
input over forty characters will be ignored.
.ip "\fBjump\fP [\fI\^nojump\^\fP]"
running moves will not be displayed
until you reach the end of the move.
This saves considerable cpu and display time.
if you are using a slow terminal.
.ip "\fBpassgo\fP [\fI\^nopassgo\^\fP]"
Follow turnings in passageways.
and you run into stone or a wall,
rogue will see if it can turn to the right or left.
If it can only turn one way,
If it can turn either or neither,
This algorithm can sometimes lead to slightly confusing occurrences
which is why it defaults to \fInopassgo\fP.
.ip "\fBskull\fP [\fI\^skull\^\fP]"
Print out the skull at the end if you get killed.
This is nice but slow, so you can turn it off if you like.
.ip "\fBname\fP [account name]"
This is the name of your character.
It is used if you get on the top ten scorer's list.
.ip "\fBfruit\fP [\fI\^slime-mold\^\fP]"
This should hold the name of a fruit that you enjoy eating.
It is basically a whimsey that rogue uses in a couple of places.
.ip "\fBfile\fP [\fI\^~/rogue.save\^\fP]"
The default file name for saving the game.
If your phone is hung up by accident,
rogue will automatically save the game in this file.
The file name may start with the special character
which expands to be your home directory.
of the top scoring people or scores on your machine.
If you score higher than someone else on this list,
or better your previous score on the list,
you will be inserted in the proper place
If you quit the game, you get out with all of your gold intact.
If, however, you get killed in the Dungeons of Doom,
your body is forwarded to your next-of-kin,
along with 90% of your gold;
ten percent of your gold is kept by the Dungeons' wizard as a fee\**.
\** The Dungeon's wizard is named Wally the Wonder Badger.
Invocations should be accompanied by a sizable donation.
This should make you consider whether you want to take one last hit
at that monster and possibly live,
or quit and thus stop with whatever you have.
If you quit, you do get all your gold,
but if you swing and live, you might find more.
If you just want to see what the current top players/games list is,
Rogue was originally conceived of by Glenn Wichman and Michael Toy.
Ken Arnold and Michael Toy then smoothed out the user interface,
and added jillions of new features.
for their ideas and assistance;
and also the teeming multitudes
who graciously ignored work, school, and social life to play rogue
and send us bugs, complaints, suggestions, and just plain flames.
The public domain version of rogue now distributed with Berkeley UNIX
was written by Timothy Stoehr.