# text BLANK is auto-defined as just a blank line.
#
text INTRO
   Somewhere nearby is colossal cave, where others have found fortunes in
   treasure and gold, though it is rumored that some who enter are never
   seen again. Magic is said to work in the cave. I will be your eyes and
   hands. Direct me with commands of 1 or 2 words. I should warn you that
   I look at only the first five letters of each word, so you'll have to
   enter "northeast" as "ne" to distinguish it from "north". (Should you
   get stuck, type "help" for some general hints. For information on how
   to end your adventure, etc., type "info".)

   This program was originally developed by Willie Crowther. Most of the
   features of the current program were added by Don Woods (don @ su-ai). 
   Contact Don if you have any questions, comments, etc.

#
# Dummy fragment TYPO enables approximate matching of command words.
#
fragment cycle typo
   [///]
text DWARF.BLOCKS
   A little dwarf with a big knife blocks your way.
text FIRST.DWARF
   A little dwarf just walked around a corner, saw you, threw a little axe
   at you which missed, cursed, and ran away.
text KNIVES.THROWN
   [/One/$] nasty sharp kni[/fe is/ves are] thrown at you!
text KNIVES.MISS
   [/It misses/None of them get you]!
text KNIVES.GOT.YOU
   [/It/$ of them] get[/s/] you!
text HOLLOW.VOICE
   A hollow voice says "PLUGH".
text NO.CAN.GO
   There is no way to go that direction.
text NEED.A.DIRECTION
   I am unsure how you are facing. Use compass points or nearby objects.
text IN.FROM.OUT
   I don't know in from out here. Use compass points or name something in
   the general direction you want to go.
text DUNNO.HAO
   I don't know how to apply that word here.
text I.AM.GAME
   I'm game. Would you care to explain how?
text NO.DETAIL
   Sorry, but I am not allowed to give more detail. I will repeat the long
   description of your location.
text IT.IS.NOW.DARK
   It is now pitch dark. If you proceed you will likely fall into a pit.
text W.WILL.DO
   If you prefer, simply type w rather than west.
text BIRD.HINT?
   [Are you trying to catch the bird?/
   Something seems to be frightening the bird just now and you cannot catch
   it no matter what you try. Perhaps you might try later.]
text GET.PAST.SNAKE?
   [Are you trying to somehow deal with the snake?/
   You can't kill the snake, or drive it away, or avoid it, or anything
   like that. There is a way to get by, but you don't have the necessary
   resources right now.]
text assigned WANT.TO.QUIT?
   Do you [really want/indeed wish] to quit now?
text CRUNCH
   You fell into a pit and broke every bone in your body!
text YOU.HAVE.IT
   You are already carrying it!
text BE.SERIOUS!
   You can't be serious!
text BIRD.IS.SCARED
   The bird was unafraid when you entered, but as you approach it becomes
   disturbed and you cannot catch it.
text NEED.CAGE
   You can catch the bird, but you cannot carry it.
text NO.LOCKS.HERE
   There is nothing here with a lock!
text YOU.ARENT.CARRYING
   You aren't carrying it!
text BIRD.V.SNAKE
   The little bird attacks the green snake, and in an astounding flurry
   drives the snake away.
text NEED.KEYS
   You have no keys!
text NO.LOCK
   It has no lock.
text DONNO.HAO.2
   I don't know how to lock or unlock such a thing.
text ALREADY.LOCKED
   It was already locked.
text ALREADY.UNLOCKED
   It was already unlocked.
text NO.LIGHT.HERE
   You have no source of light.
text LAMP.NOW.ON
   Your lamp is now on.
text LAMP.NOW.OFF
   Your lamp is now off.
text CANT.GET.PAST.BEAR
   There is no way to get past the bear to unlock the chain, which is
   probably just as well.
text NOTHING.HAPPENS
   Nothing happens.
text WHERE?
   Where?
text PACIFIST
   There is nothing here to attack.
text BIRD.IS.DEAD
   The little bird is now dead. its body disappears.
text CANT.KILL.SNAKE
   Attacking the snake both doesn't work and is very dangerous.
text KILLED.DWARF
   You killed a little dwarf. The body vanishes in a cloud of greasy black
   smoke.
text DWARF.DODGES
   You attack a little dwarf, but he dodges out of the way.
text WITH.WHAT?
   With what? Your bare hands?
text OLDFASHIONED.MAGIC
   Good try, but that is an old worn-out magic word.
text HELP.SPIEL
   I know of places, actions, and things. Most of my vocabulary describes
   places and is used to move you there. To move, try words like forest,
   building, downstream, enter, east, west, north, south, up, or down. I
   know about a few special objects, like a black rod hidden in the cave. 
   These objects can be manipulated using some of the action words that I
   know. Usually you will need to give both the object and action words
   (in either order), but sometimes I can infer the object from the verb
   alone. Some objects also imply verbs; in particular, "INVENTORY"
   implies "TAKE INVENTORY", which causes me to give you a list of what
   you're carrying. The objects have side effects; for instance, the rod
   scares the bird. Usually people having trouble moving just need to try
   a few more words. Usually people trying unsuccessfully to manipulate an
   object are attempting something beyond their (or my!) capabilities and
   should try a completely different tack. To speed the game you can
   sometimes move long distances with a single word. For example,
   "building" usually gets you to the building from anywhere above ground
   except when lost in the forest. Also, note that cave passages turn a
   lot, and that leaving a room to the north does not guarantee entering
   the next from the south. good luck!
text NO.UNLOCK.KEYS
   You can't unlock the keys.
text STILL.WHERE.YOU.WERE.3
   You have crawled around in some little holes and wound up back in the
   main passage.
text TRY.FOLLOWING.STREAM
   I don't know where the cave is, but hereabouts no stream can run on the
   surface for long. I would try the stream.
text NEED.MORE.DETAIL
   I need more detailed instructions to do that.
text FIND.IT.YOURSELF
   I can only tell you what you see as you move about and manipulate
   things. I cannot tell you where remote things are.
text WHAT?
   What?
text CANT.GET.IN?
   [Are you trying to get into the cave?/
   The grate is very solid and has a hardened steel lock. You cannot enter
   without a key, and there are no keys nearby. I would recommend looking
   elsewhere for the keys.]
text IN.FOREST
   The trees of the forest are large hardwood oak and maple, with an
   occasional grove of pine or spruce. There is quite a bit of 
   undergrowth, largely birch and ash saplings plus nondescript bushes of
   various sorts. This time of year visibility is quite restricted by all
   the leaves, but travel is quite easy if you detour around the spruce and
   berry bushes.
text HI.THERE
   Welcome to adventure!! Would you like instructions?
text NEED.SHOVEL
   Digging without a shovel is quite impractical. Even with a shovel
   progress is unlikely.
text NEED.DYNAMITE
   Blasting requires dynamite.
text I.AM.CONFUSED.TOO
   I'm as confused as you are.
text THIS.IS.MIST
   Mist is a white vapor, usually water, seen from time to time in caverns.
   It can be found anywhere but is frequently a sign of a deep pit leading
   down to water.
text WET.FEET
   Your feet are now wet.
text BLEAH
   I think I just lost my appetite.
text URRP
   Thank you, it was delicious!
text SLURP
   You have taken a drink from the stream. The water tastes strongly of
   minerals, but is not unpleasant. It is extremely cold.
text BOTTLE.NOW.EMPTY
   The bottle of water is now empty.
text YOU.RUB.LAMP
   Rubbing the electric lamp is not particularly rewarding. Anyway,
   nothing exciting happens.
text PECULIAR
   Peculiar. Nothing unexpected happens.
text POUR.LIQUID
   Your bottle is empty and the ground is wet.
text CANT.DO.THAT
   You can't # that.
text NO.FUCKS
   Watch it!
text WHICH.WAY?
   Which way?
text YOU.ARE.DEAD
   [Oh dear, you seem to have gotten yourself killed. I might be able to
   help you out, but I've never really done this before. Do you want me to
   try to reincarnate you?/
   You clumsy oaf, you've done it again! I don't know how long I can keep
   this up. Do you want me to try reincarnating you again?/
   Now you've really done it! I'm out of orange smoke! You don't expect
   me to do a decent reincarnation without any orange smoke, do you?]
text resurrection
   [All right. But don't blame me if something goes wr...... --- POOF!! ---
   You are engulfed in a cloud of orange smoke. Coughing and gasping, you
   emerge from the smoke and find..../
   Okay, now where did I put my orange smoke?.... >POOF!< Everything
   disappears in a dense cloud of orange smoke./
   Okay, if you're so smart, do it yourself! I'm leaving!]
text CANT.GO.BACK
   Sorry, but I no longer seem to remember how it was you got here.
text ARMS.ARE.FULL
   You can't carry anything more. You'll have to drop something first.
text CANT.PASS.GRATE
   You can't go through a locked steel grate!
text IT.IS.HERE.NOW
   I believe what you want is right here with you.
text SLIT.TOO.NARROW
   You don't fit through a two-inch slit!
text TRY.THE.BRIDGE
   I respectfully suggest you go across the bridge instead of jumping.
text NO.WAY.ACROSS
   There is no way across the fissure.
text BIRD.NOT.HUNGRY
   It's not hungry (it's merely pinin' for the fjords). Besides, you have
   no bird seed.
text SNAKE.EATS.BIRD
   The snake has now devoured your bird.
text IT.WONT.EAT
   There's nothing here it wants to eat (except perhaps you).
text FED.UP.DWARF
   You fool, dwarves eat only coal! now you've made him *REALLY* mad!!
text NO.WAY.TO.CARRY
   You have nothing in which to carry it.
text BOTTLE.ALREADY.FULL
   Your bottle is already full.
text NOTHING.TO.FILL
   There is nothing here with which to fill the bottle.
text BOTTLE.FULL.OF
   Your bottle is now full of #.
text CANT.FILL.THAT
   You can't fill that.
text HAH!
   Don't be ridiculous!
text DOOR.NEEDS.OIL
   The door is extremely rusty and refuses to open.
text YOU.OIL.THE.PLANT
   The plant indignantly shakes the oil off its leaves and asks, "WATER?"
text HINGES.RUST
   The hinges are quite thoroughly rusted now and won't budge.
text DOOR.NOW.OILED
   The oil has freed up the hinges so that the door will now move, although
   it requires some effort.
text ROOTS.TOO.DEEP
   The plant has exceptionally deep roots and cannot be pulled free.
text KNIVES.GO.POOF
   The dwarves' knives vanish as they strike the walls of the cave.
text SOMETHING.DOESNT.FIT
   Something you're carrying won't fit through the tunnel with you. You'd
   best take inventory and drop something.
text CLAM.TOO.BIG
   You can't fit this five-foot clam through that little passage!
text OYSTER.TOO.BIG
   You can't fit this five-foot oyster through that little passage!
text DROP.THE.CLAM
   I advise you to put down the clam before opening it. >STRAIN!<
text DROP.THE.OYSTER
   I advise you to put down the oyster before opening it. >WRENCH!<
text NO.OPEN.BIVALVE
   You don't have anything strong enough to open the #.
text CLAM.OPENED
   A glistening pearl falls out of the clam and rolls away. Goodness, this
   must really be an oyster. (I never was very good at identifying
   bivalves.)  Whatever it is, it has now snapped shut again.
text OYSTER.OPENED
   The oyster creaks open, revealing nothing but oyster inside. It
   promptly snaps shut again.
text CRAWL.CAVED.IN.2
   You have crawled around in some little holes and found your way blocked
   by a recent cave-in. You are now back in the main passage.
text RUSTLING
   There are faint rustling noises from the darkness behind you.
text PIRATE.ROBS
   Out from the shadows behind you pounces a bearded pirate! "Har, har,"
   he chortles, "I'll just take all this booty and hide it away with me
   chest deep in the maze!"  He snatches your treasure and vanishes into
   the gloom.
text CLOSING.SOON
   A sepulchral voice reverberating through the cave, says, "CAVE CLOSING
   SOON. ALL ADVENTURERS EXIT IMMEDIATELY THROUGH MAIN OFFICE."
text EXIT.CLOSED
   A mysterious recorded voice groans into life and announces: "THIS EXIT
   IS CLOSED. PLEASE LEAVE VIA MAIN OFFICE."
text DEAD.&.CLOSED
   It looks as though you're dead. Well, seeing as how it's so close to
   closing time anyway, I think we'll just call it a day.
text CAVE.NOW.CLOSED
   The sepulchral voice entones, "THE CAVE IS NOW CLOSED."  As the echoes
   fade, there is a blinding flash of light (and a small puff of orange
   smoke)... As your eyes refocus, you look around and find...
text assigned BLEW.IT
   [/There is a loud explosion, and a twenty-foot hole appears in the far
   wall, burying the dwarves in the rubble. You march through the hole and
   find yourself in the main office, where a cheering band of friendly
   elves carry the conquering adventurer off into the sunset./
   There is a loud explosion, and a twenty-foot hole appears in the far
   wall, burying the snakes in the rubble. A river of molten lava pours in
   through the hole, destroying everything in its path, including you!/
   There is a loud explosion, and you are suddenly splashed across the
   walls of the room.]
text DWARVES.WAKE
   The resulting ruckus has awakened the dwarves. There are now several
   threatening little dwarves in the room with you! Most of them throw
   knives at you! All of them get you!
text LEAVE.BIRD
   Oh, leave the poor unhappy bird alone.
text HERE.SOMEWHERE
   I daresay whatever you want is around here somewhere.
text USE.QUIT
   I don't know the word "STOP". Use "QUIT" if you want to give up.
text DONT.KNOW.THE.WAY
   You can't get there from here.
text INFO.SPIEL
   If you want to end your adventure early, say "QUIT". To suspend your
   adventure such that you can continue later, say "SUSPEND" (or "PAUSE" or
   "SAVE"). To see what hours the cave is normally open, say "HOURS". To
   see how well you're doing, say "SCORE". To get full credit for a
   treasure, you must have left it safely in the building, though you get
   partial credit just for locating it. You lose points for getting
   killed, or for quitting, though the former costs you more. There are
   also points based on how much (if any) of the cave you've managed to
   explore; in particular, there is a large bonus just for getting in (to
   distinguish the beginners from the rest of the pack), and there are
   other ways to determine whether you've been through some of the more
   harrowing sections. If you think you've found all the treasures, just
   keep exploring for a while. If nothing interesting happens, you haven't
   found them all yet. If something interesting *DOES* happen, it means
   you're getting a bonus and have an opportunity to garner many more
   points in the master's section. I may occasionally offer hints if you
   seem to be having trouble. If I do, I'll warn you in advance how much
   it will affect your score to accept the hints. Finally, to save paper,
   you may specify "BRIEF", which tells me never to repeat the full
   description of a place unless you explicitly ask me to.
text NO.VASE.FILLER
   There is nothing here with which to fill the vase.
text VASE.SHATTERS
   The sudden change in temperature has delicately shattered the vase.
text NO.CAN.FIX
   It is beyond your power to do that.
text DUNNO.HOW
   I don't know how.
text TOO.FAR.UP
   It is too far up for you to reach.
text NO.KILL.BIVALVE
   The shell is very strong and is impervious to attack.
text CANT.YOU.READ?
   What's the matter, can't you read? Now you'd best start over.
text NO.KILL.DRAGON
   The axe bounces harmlessly off the dragon's thick scales.
text DRAGON.BLOCKS.WAY
   The dragon looks rather nasty. You'd best not try to get by.
text BIRD.V.DRAGON
   The little bird attacks the green dragon, and in an astounding flurry
   gets burnt to a cinder. The ashes blow away.
text ON.WHAT?
   On what?
text BRIEF.OK
   Okay, from now on I'll only describe a place in full the first time you
   come to it. To get the full description, say "LOOK".
text TROLL.COMES
   The troll steps out from beneath the bridge and blocks your way.
text TROLL.TOO.TOUGH
   Trolls are close relatives with the rocks and have skin as tough as that
   of a rhinoceros. The troll fends off your blows effortlessly.
text EL.CHEAPO
   The troll deftly catches the axe, examines it carefully, and tosses it
   back, declaring, "Good workmanship, but it's not valuable enough."
text BOUGHT.HIM.OFF
   The troll catches your treasure and scurries away out of sight.
text TROLL.BLOCKS.WAY
   The troll refuses to let you cross.
text NO.BRIDGE
   There is no longer any way across the chasm.
text BEAR.WRECKS.BRIDGE
   Just as you reach the other side, the bridge buckles beneath the weight
   of the bear, which was still following you around. You scrabble
   desperately for support, but as the bridge collapses you stumble back
   and fall into the chasm.
text BEAR.CHASES.TROLL
   The bear lumbers toward the troll, who lets out a startled shriek and
   scurries away. The bear soon gives up the pursuit and wanders back.
text AXE.NOW.BY.BEAR
   The axe misses and lands near the bear where you can't get at it.
text NO.KILL.BEAR
   [With what? Your bare hands? Against *HIS* bear hands??/
   The bear is confused; he only wants to be your friend.]
text IT.IS.DEAD
   For crying out loud, the poor thing is already dead!
text BEAR.EATS
   The bear eagerly wolfs down your food, after which he seems to calm down
   considerably and even becomes rather friendly.
text BEAR.IS.CHAINED
   The bear is still chained to the wall.
text CHAIN.LOCKED
   The chain is still locked.
text NOW.UNLOCKED
   The # is now unlocked.
text NOW.LOCKED
   The # is now locked.
text NO.LOCK.CHAIN
   There is nothing here to which the chain can be locked.
text NO.FOOD
   There is nothing here to eat.
text WANNA.HINT?
   Do you want the hint?
text HINT.MAZE?
   [Do you need help getting out of the maze?/
   You can make the passages look less alike by dropping things.]
text HINT.PLOVER?
   [Are you trying to explore beyond the plover room?/
   There is a way to explore that region without having to worry about
   falling into a pit. None of the objects available is immediately useful
   in discovering the secret.]
text HINT.WITTS?
   [Do you need help getting out of here?/
   Don't go west.]
text NO.FEED.TROLL
   Gluttony is not one of the troll's vices. Avarice, however, is.
text LAMP.IS.DIM
   Your lamp is getting dim. You'd best start wrapping this up, unless you
   can find some fresh batteries. I seem to recall there's a vending
   machine in the maze. Bring some coins with you.
text LAMP.IS.DEAD
   Your lamp has run out of power.
text CALL.IT.A.DAY
   There's not much point in wandering around out here, and you can't
   explore the cave without a lamp. So let's just call it a day.
text PIRATE.RUNS
   There are faint rustling noises from the darkness behind you. As you
   turn toward them, the beam of your lamp falls across a bearded pirate.
   He is carrying a large chest. "Shiver me timbers!" he cries, "I've been
   spotted! I'd best hie meself off to the maze to hide me chest!" With
   that, he vanishes into the gloom.
text LAMP.BATTERIES
   Your lamp is getting dim. You'd best go back for those batteries.
text LAMP.REFUEL
   Your lamp is getting dim. I'm taking the liberty of replacing the
   batteries.
text LAMP.GETTING.DIM
   Your lamp is getting dim, and you're out of spare batteries. You'd best
   start wrapping this up.
text MAG.IN.DWARVISH
   I'm afraid the magazine is written in dwarvish.
text IT.SAYS.CHEST.ELSEWHERE
   "This is not the maze where the pirate leaves his treasure chest."
text OYSTER.HINT
   [Hmmm, this looks like a clue, which means it'll cost you 10 points to
   read it. Should I go ahead and read it anyway?/
   It says, "There is something strange about this place, such that one of
   the words I've always known now has a new effect."]
text SAME.AS.BEFORE
   It says the same thing it did before.
text NOCOMPRENDE
   I'm afraid I don't understand.
text DARK.ROOM
   "Congratulations on bringing light into the dark-room!"
text MIRROR.BREAKS
   You strike the mirror a resounding blow, whereupon it shatters into a
   myriad tiny fragments.
text THROW.VASE
   You have taken the vase and hurled it delicately to the ground.
text DWARF.WAKES
   You prod the nearest dwarf, who wakes up grumpily, takes one look at
   you, curses, and grabs for his axe.
text DOME.UNCLIMBABLE
   The dome is unclimbable.
text SNAKE.BLOCKS.WAYS
   You can't get by the snake.
text CRACK.TOO.SMALL
   The crack is far too small for you to follow.
text BROKEN.NECK
   You are at the bottom of the pit with a broken neck.
text DIDNT.MAKE.IT
   You didn't make it.
text UP.THE.PLANT.YOU.GO
   You clamber up the plant and scurry through the hole at the top.
text CRAWL.CAVED.IN
   The passage here is blocked by a recent cave-in.
text PIPE.TOO.NARROW
   The stream flows out through a pair of 1 foot diameter sewer pipes. It
   would be advisable to use the exit.
text PLANT.NOT.CLIMBABLE
   There is nothing here to climb. Use "up" or "OUT" to leave the pit.
text STILL.WHERE.YOU.WERE
   You have crawled through a very low wide passage parallel to and north
   of the hall of mists.
text PLANT.TOO.SHORT
   You have climbed up the plant and out of the pit.
text STILL.WHERE.YOU.WERE.2
   You have crawled through a very low wide passage parallel to and north
   of the hall of mists.
text assigned RANK
   [You are obviously a rank amateur. Better luck next time./
   Your score qualifies you as a Novice Class Adventurer./
   You have achieved the rating: "Experienced Adventurer"./
   You may now consider yourself a "Seasoned Adventurer"./
   You have reached "Junior Master" status./
   Your score puts you in Master Adventurer Class C./
   Your score puts you in Master Adventurer Class B./
   Your score puts you in Master Adventurer Class A./
   All of adventuredom gives tribute to you, Adventurer Grandmaster!
  \To achieve the next higher rating would be a neat trick!
  \Congratulations!!]
text NO.CAN.DO
   You can't # that!
text I.DONT.SEE
   I see no # here!
text YOU.DONT.HAVE
   You are not carrying [{ARG2}/anything][// valuable]!
text NO.ALL.HERE
   I see nothing [portable/valuable] here!
text OK
   OK.
text NEED.VERB
   What do you want to do with #?
text NEED.OBJECT
   # what?
text assigned SCORE.TEXT
   [If you were to quit now, you would score $ out of possible 350./
    You scored $ out of a possible 350 using {TURNS} turns.] 
text DRAGON.VANQUISHED
   Congratulations! You have just vanquished a dragon with your bare
   hands! (Unbelievable, isn't it?)
text GROWTH.FROM
   [The plant spurts into furious growth for a few seconds./
   The plant grows explosively, almost filling the bottom of the pit./
   You've over-watered the plant! It's shriveling up! It's, it's...]
text PLANT.2
   [/The top of a 12-foot-tall beanstalk is poking out of the west pit./
   There is a huge beanstalk growing out of the west pit up to the hole.]
text BEAR.TAGS.ALONG
   You are being followed by a very large, tame bear.
text ITS.GONE.WRONG
   Sorry, something didn't work there. Error code is $;
text HINT.WILL.COST.YOU
   I am prepared to give you a hint, but it will cost you $ points.
text OYSTER.WRITING
   Interesting. There seems to be something written on the underside of
   the oyster.
#
######################################################################
