"VERBS for
ENCHANTER
(c) Copyright 1983 Infocom, Inc. All Rights Reserved.
"
"SUBTITLE DESCRIBE THE UNIVERSE"
"SUBTITLE SETTINGS FOR VARIOUS LEVELS OF DESCRIPTION"
<GLOBAL VERBOSE <>>
<GLOBAL SUPER-BRIEF <>>
<ROUTINE V-VERBOSE ()
<TELL "Maximum verbosity." CR>>
<ROUTINE V-BRIEF ()
<TELL "Brief descriptions." CR>>
<ROUTINE V-SUPER-BRIEF ()
<TELL "Super-brief descriptions." CR>>
\
"SUBTITLE DESCRIBERS"
<ROUTINE V-LOOK ()
<RTRUE>)>
<ROUTINE V-FIRST-LOOK ()
<ROUTINE V-EXAMINE ()
(ELSE
<TELL "You see nothing special about the "
Whether the current location has light. Set by calling the LIT? routine.
<GLOBAL LIT <>>
<ROUTINE DESCRIBE-ROOM ("OPTIONAL" (LOOK? <>) "AUX" V? STR AV)
<TELL
"It is pitch black and there is evil in the darkness.">
<CRLF>
<RETURN <>>)>
<SET V? T>)>
<TELL "(You are in the " D .AV ".)" CR>)>
<RTRUE>)
(<AND .V?
<TELL .STR CR>)
<TELL
"Everything you see is grey and lifeless, as though covered
with a veil of ash. Sound is muted and there is a faint acrid odor." CR>)>
<TELL .STR CR>)
<COND (<AND <NOT <==? ,HERE .AV>> <FSET .AV ,VEHBIT>>
<RTRUE>)
<TELL
"The stars shine down on you from a clear, dark sky." CR>)
<TELL
"The darkening sky is lit by a waning moon." CR>)
<TELL
"The sun is rising over the lands to the east." CR>)>)>
T>
<ROUTINE DESCRIBE-OBJECTS ("OPTIONAL" (V? <>))
(ELSE
<TELL "You can't see anything in the dark." CR>)>>
"DESCRIBE-OBJECT -- takes object and flag. if flag is true will print a
long description (fdesc or ldesc), otherwise will print short."
<GLOBAL DESC-OBJECT <>>
<ROUTINE LIGHTED? (OBJ)
<TELL " (providing light)">)>>
<ROUTINE DESCRIBE-OBJECT (OBJ V? LEVEL "AUX" (STR <>) AV)
<COND (<AND <0? .LEVEL>
<RTRUE>)
(<AND <0? .LEVEL>
<TELL .STR>
(<0? .LEVEL>
<TELL "There is " A .OBJ " here">
<TELL ".">)
(ELSE
<TELL "A">
<COND (<FSET? .OBJ ,VOWELBIT> <TELL "n">)>
<COND (<EQUAL? .OBJ ,BREAD>
<COND (<L? <GETP .OBJ ,P?SIZE> 8>
<TELL " partially eaten">)>)
<COND (<L? <GETP .OBJ ,P?SIZE> 2>
<TELL " very">)>
<COND (<L? <GETP .OBJ ,P?SIZE> 3>
<TELL " small">)>)>
<TELL " " D .OBJ>
<COND (<AND <0? .LEVEL>
<TELL " (outside the " D .AV ")">)>
<CRLF>
<ROUTINE PRINT-CONT (OBJ "OPTIONAL" (V? <>) (LEVEL 0)
"AUX" Y 1ST? AV STR (PV? <>) (INV? <>))
#DECL ((OBJ) OBJECT (LEVEL) FIX)
<COND (<NOT <SET Y <FIRST? .OBJ>>> <RTRUE>)>
T)
(ELSE <SET AV <>>)>
<SET 1ST? T>
<COND (<EQUAL? ,WINNER .OBJ <LOC .OBJ>>
<SET INV? T>)
(ELSE
<REPEAT ()
<COND (<NOT .Y> <RETURN <NOT .1ST?>>)
(<==? .Y .AV> <SET PV? T>)
<TELL .STR>
<CRLF>)>
<FIRST? .Y>>
<PRINT-CONT .Y .V? 0>)>)>
<SET Y <NEXT? .Y>>>)>
<SET Y <FIRST? .OBJ>>
<REPEAT ()
<COND (<NOT .Y>
<COND (<AND .PV? .AV <FIRST? .AV>>
<PRINT-CONT .AV .V? .LEVEL>)>
<RETURN <NOT .1ST?>>)
<OR .INV?
<COND (.1ST?
<COND (<L? .LEVEL 0>
<SET LEVEL 0>)>)>
<SET LEVEL <+ 1 .LEVEL>>
<SET 1ST? <>>)>
<PRINT-CONT .Y .V? .LEVEL>)>)>
<SET Y <NEXT? .Y>>>>
<ROUTINE FIRSTER (OBJ LEVEL)
<TELL "You are carrying:" CR>)
<COND (<G? .LEVEL 0>
<TELL "The adventurer is carrying:" CR>)
<TELL "Sitting on the " D .OBJ
" is:" CR>)
(ELSE
<TELL "The " D .OBJ
" contains:" CR>)>)>>
\
"SUBTITLE SCORING"
<GLOBAL MOVES 0>
Your score is increased by story milestones (casting FROTZ, opening the front gate, etc). Each of these is associated with a global variable (LIGHT-POINT, ENTRY-POINT) which is cleared after use to track the achievement.
Interestingly, there is no SCORE penalty for dying. Completing the game with a couple of resurrections gives you full credit.
(However, releasing the Terror ends the game with a score of -10, “Menace to Society”.)
<GLOBAL SCORE 0>
<ROUTINE V-SCORE ("OPTIONAL" (ASK? T))
#DECL ((ASK?) <OR ATOM FALSE>)
<TELL "Your score is " N ,SCORE>
<TELL " of a possible " N ,SCORE-MAX ", in ">
<COND (<1? ,MOVES> <TELL " move.">) (ELSE <TELL " moves.">)>
<CRLF>
<TELL
"This gives you the rank of Menace to Society." CR>)
(T
<TELL
"This puts you in the class of " <GET ,RANKINGS </ ,SCORE 50>> "." CR>)>
<GLOBAL RANKINGS <TABLE
"Charlatan"
"Parlor Magician"
"Novice Enchanter"
"Intermediate Enchanter"
"Enchanter"
"Expert Enchanter"
"Master Enchanter"
"Candidate for membership in the Circle of Enchanters"
"Member of the Circle of Enchanters">>
This is called when the game is really, finally over. Display your score and offer the traditional RESTORE/RESTART/QUIT option.
<ROUTINE FINISH ("OPTIONAL" (REPEATING <>))
<CRLF>
<COND (<NOT .REPEATING>
<CRLF>)>
<TELL
"Would you like to restart the game from the beginning, restore a saved
game position, or end this session of the game?|
(Type RESTART, RESTORE, or QUIT):|
|
>">
<COND (<EQUAL? <GET ,P-LEXV 1> ,W?RESTART>
<RESTART>
<TELL "Failed." CR>
<FINISH T>)
(<EQUAL? <GET ,P-LEXV 1> ,W?RESTORE>
<COND (<RESTORE>
<TELL "Okay." CR>)
(T
<TELL "Failed." CR>
<FINISH T>)>)
(T
<QUIT>)>>
<ROUTINE V-QUIT ("OPTIONAL" (ASK? T) "AUX" SCOR)
#DECL ((ASK?) <OR ATOM <PRIMTYPE LIST>> (SCOR) FIX)
<COND (<OR <AND .ASK?
<TELL
"Do you wish to leave the game? (Y is affirmative): ">
<NOT .ASK?>>
<QUIT>)
(ELSE <TELL "Ok." CR>)>>
<ROUTINE YES? ()
<PRINTI ">">
<COND (<EQUAL? <GET ,P-LEXV 1> ,W?YES ,W?Y>
<RTRUE>)
(T
<RFALSE>)>>
Print the title, release, and serial number. This release is branded as “interactive fiction”, replacing the “INTERLOGIC Fantasy” label of the original release.
<ROUTINE V-VERSION ("AUX" (CNT 17))
<TELL
"ENCHANTER|
Infocom interactive fiction - a fantasy story|
Copyright (C) 1983, 1984, 1986 by Infocom, Inc. All rights reserved.|
The source code says “registered trademark”, but the compiled game file prints only “trademark”. The source must have been edited after the game was last compiled.
ENCHANTER is a registered trademark of Infocom, Inc.|
Release ">
<PRINTN <BAND <GET 0 1> *3777*>>
<TELL " / Serial number ">
<REPEAT ()
<COND (<G? <SET CNT <+ .CNT 1>> 23>
<RETURN>)
(T
<PRINTC <GETB 0 .CNT>>)>>
<CRLF>>
\
"SUBTITLE DEATH AND TRANSFIGURATION"
The number of times Belboz has interceded to prevent your death.
<GLOBAL DEATHS 0>
"optional arg survive? says whether ozmoo allows you to survive this
experience."
This routine handles the WINNER’s demise, whether that is the PLAYER or an NPC obeying a command.
If the WINNER is protected by OZMOO (see DEATH-CHEATED), the death is avoided – unless the second argument is explicitly false (<>), which indicates a death too terrible for OZMOO.
Failing all that, Belboz will resurrect you three times (see DEATHS). Or really four, but the last time you are demoted and the game ends.
Unlike in Zork, there is no SCORE penalty for dying.
<ROUTINE JIGS-UP (DESC "OPTIONAL" (SURVIVE? T)
"AUX" (BOTH <>) (OZMOOD? <>) (CHEATED? <>))
<SET OZMOOD? <AND .SURVIVE? .CHEATED?>>
<COND (.DESC <TELL .DESC CR>)>
<TELL "|
*** The " D ,WINNER " has died ***
|
|">
<COND (.OZMOOD?
<TELL
"Fortunately the " D ,WINNER " has been magically protected from violent
death and appears to be none the worse for his horrible experience." CR>)
(ELSE
<COND (.CHEATED?
<TELL
"Unfortunately, even the ozmoo spell was not enough to protect the " D ,WINNER
" from this eventuality." CR>)>
<RFATAL>)>
<TELL "
| **** You have died ****
|
|">
<COND (.OZMOOD?
<TELL
"Fortunately, you had the foresight to protect yourself against this
eventuality by a judicious use of the ozmoo spell. You survive this
horrible experience none the worse for wear, if somewhat chastened." CR>)
(T
<COND (.CHEATED?
<TELL
"Unfortunately, even the ozmoo spell was not enough to protect you from
this eventuality." CR>)>
<TELL
"You awaken among the members of the Circle. Belboz the Necromancer
is exhausted, and the other members of the Circle are disgusted.
\"I told you Krill was too powerful for such as this,\" says one.
\"We must send someone who has a chance to defeat a warlock of
Krill's experience and guile.\" Acrimonious discussion begins, as
you are waved away to join the apprentices in the scullery. A long
acquaintance with potatoes and dirty pots is about to begin." CR>
(T
<TELL
"You awaken among the members of the Circle. Belboz the Necromancer
looks tired, and scattered about are the remains of the components of
a spell of great healing power. The other members of the Circle are
pleased to see you revived, but worried by the setback. \"I think
Krill is too powerful,\" says one. \"This inexperienced wizard will
never defeat one so puissant as he.\" Quiet discussion ensues, with
well-concealed acrimony beneath the surface." CR>
<SET BOTH T>)>
<TELL
"Belboz tilts his head, as if sensing something amiss. He examines
your possessions and is taken aback: \"You have acquired ">
<COND (.BOTH <TELL "scrolls">)
(T <TELL "a scroll">)>
<TELL " of great power.
Using spells of this kind requires surpassing wisdom.\" With a wave
of his hand, the scroll">
<COND (.BOTH <TELL "s disappear">)
(T <TELL " disappears">)>
<TELL "." CR>
<TELL
"Debate ensues, with Belboz returning frequently to the contents of the ancient
manuscript. His wishes prevail, and it is agreed to send you back...." CR>
<CRLF>
<COND (<NOT .OZMOOD?>
<RFATAL>>
If you die and are resurrected, you keep your possessions, except that scrolls are left in the room where you died.
(The process is not in fact random. The name is left over from Zork, where your possessions were scattered.)
<ROUTINE RANDOMIZE-OBJECTS ("AUX" (F <FIRST? ,WINNER>) N)
<REPEAT ()
<COND (.F
<SET N <NEXT? .F>>
<SET F .N>)
(ELSE <RETURN>)>>
<RTRUE>>
<ROUTINE KILL-INTERRUPTS ()
<RTRUE>>
<ROUTINE V-RESTORE ()
<COND (<RESTORE>
<TELL "Ok." CR>
(T
<TELL "Failed." CR>)>>
<ROUTINE V-SAVE ()
<COND (<SAVE>
<TELL "Ok." CR>)
(T
<TELL "Failed." CR>)>>
<ROUTINE V-RESTART ()
<TELL "Do you wish to restart? (Y is affirmative): ">
<TELL "Restarting." CR>
<RESTART>
<TELL "Failed." CR>)>>
<CONSTANT REXIT 0>
<CONSTANT UEXIT 1>
<CONSTANT NEXIT 2>
<CONSTANT FEXIT 3>
<CONSTANT CEXIT 4>
<CONSTANT DEXIT 5>
<CONSTANT NEXITSTR 0>
<CONSTANT FEXITFCN 0>
<CONSTANT CEXITFLAG 1>
<CONSTANT CEXITSTR 1>
<CONSTANT DEXITOBJ 1>
<CONSTANT DEXITSTR 1>
<ROUTINE V-WALK-AROUND ()
<ROUTINE USE-DIRECTIONS ()
<TELL "You should use compass directions if you wish to move." CR>>
<ROUTINE V-LAUNCH ()
<TELL "You can't launch that by saying \"launch\"!" CR>)
(T <TELL "How in blazes does one launch that?" CR>)>>
<ROUTINE V-WALK ("AUX" PT PTS STR OBJ RM)
#DECL ((PT) <OR FALSE TABLE> (PTS) FIX (STR) <OR STRING FALSE>
(OBJ) OBJECT (RM) <OR FALSE OBJECT>)
<RTRUE>)>
<RTRUE>)
<COND (<==? <SET PTS <PTSIZE .PT>> ,UEXIT>
<RFATAL>)
<COND (<SET RM <APPLY <GET .PT ,FEXITFCN>>>
(T
<RFATAL>)>)
<TELL .STR CR>
<RFATAL>)
<TELL "\"I can't go that way.\"" CR>)
<RFATAL>)
<TELL "There's no path in that direction." CR>
<RFATAL>)
(T
<TELL "You can't go that way." CR>
<RFATAL>)>)
<TELL .STR CR>
<RFATAL>)
(T
<TELL "The " D .OBJ " is closed." CR>
<RFATAL>)>)>)
<PROB 90>>
"Oh, no! Something has come up from behind you and feasted on your person!">
<RFATAL>)
<TELL "\"I can't go that way.\"" CR>)
<RFATAL>)
(T
<TELL "You can't go that way." CR>
<RFATAL>)>>
<ROUTINE THIS-IS-IT (OBJ)
<ROUTINE V-INVENTORY ()
(T <TELL "You are empty-handed." CR>)>>
<GLOBAL INDENTS
<TABLE ""
" "
" "
" "
" "
" ">>
\
<ROUTINE PRE-TAKE ()
<COND
(T <TELL "You already have it." CR>)>)
<TELL "You can't reach that." CR>
<RTRUE>)
<RTRUE>)
<TELL "The " D ,PRSO " isn't in the " D ,PRSI "." CR>)
(T
<RFALSE>)>)
<TELL "You are in it!" CR>)>>
<ROUTINE V-TAKE ()
<COND
(T <TELL "Taken." CR>)>)>>
If you have more than this many objects, trying to take another has a chance of failing.
This starts at seven but decreases as you tire. See I-TIRED.
<GLOBAL FUMBLE-NUMBER 7>
The chance of failing to take another object, if you have more than FUMBLE-NUMBER.
This starts at eight (per object) but increases as you tire. See I-TIRED.
<GLOBAL FUMBLE-PROB 8>
<ROUTINE ITAKE ("OPTIONAL" (VB T) "AUX" CNT OBJ)
#DECL ((VB) <OR ATOM FALSE> (CNT) FIX (OBJ) OBJECT)
<COND (.VB
<RFALSE>)
<COND (.VB
<TELL "Your load is too heavy">
<TELL
", especially in light of your exhaustion.">)
(ELSE <TELL ".">)>
<CRLF>)>
<RFATAL>)
The “holding too many things” message is probabilistic. The more objects you have past FUMBLE-NUMBER, the greater the chance (FUMBLE-PROB) of failing to pick up another.
<TELL "You're holding too many things already." CR>
<RFATAL>)
(T
<RTRUE>)>>
<ROUTINE V-PUT-ON ()
(T <TELL "There's no good surface on the " D ,PRSI "." CR>)>>
<ROUTINE PRE-PUT ()
<TELL "Nice try." CR>)>>
<ROUTINE V-PUT ()
(T
<TELL "I can't do that." CR>
<RTRUE>)>
<TELL "The " D ,PRSI " isn't open." CR>)
<TELL "How can you do that?" CR>)
<TELL "The " D ,PRSO " is already in the " D ,PRSI "." CR>)
<TELL "There's no room." CR>)
<RTRUE>)
(T
<TELL "Done." CR>)>>
<ROUTINE PRE-GIVE ()
<TELL
"That's easy for you to say since you don't even have it." CR>)>>
<ROUTINE PRE-SGIVE ()
<RTRUE>>
<ROUTINE HELD? (OBJ)
<COND (<NOT .OBJ> <RFALSE>)
(<IN? .OBJ ,ROOMS> <RFALSE>)
(T <HELD? <LOC .OBJ>>)>>
<ROUTINE V-GIVE ()
<TELL "You can't give " A ,PRSO " to " A ,PRSI "!" CR>)
(T <TELL "The " D ,PRSI " refuses it politely." CR>)>>
<ROUTINE V-SGIVE ()
<TELL "**Bug" CR>>
<ROUTINE V-DROP () <COND (<IDROP> <TELL "Dropped." CR>)>>
<ROUTINE V-THROW () <COND (<IDROP> <TELL "Thrown." CR>)>>
<ROUTINE IDROP
()
<TELL "You're not carrying the " D ,PRSO "." CR>
<RFALSE>)
<TELL "The " D ,PRSO " is closed." CR>
<RFALSE>)
\
<ROUTINE V-OPEN ("AUX" F STR)
<TELL "You must tell me how to do that to " A ,PRSO "." CR>)
<COND (<FSET? ,PRSO ,OPENBIT> <TELL "It is already open." CR>)
(T
<TELL "Opened." CR>)
(<AND <SET F <FIRST? ,PRSO>>
<NOT <NEXT? .F>>
<TELL "The " D ,PRSO " opens." CR>
<TELL .STR CR>)
(T
<TELL "Opening the " D ,PRSO " reveals ">
<TELL "." CR>)>)>)
<TELL "It is already open." CR>)
(T
<TELL "The " D ,PRSO " opens." CR>
(T <TELL "The " D ,PRSO " fails to open." CR>)>>
<ROUTINE PRINT-CONTENTS (OBJ "AUX" F N (1ST? T))
#DECL ((OBJ) OBJECT (F N) <OR FALSE OBJECT>)
<COND (<SET F <FIRST? .OBJ>>
<REPEAT ()
<SET N <NEXT? .F>>
<COND (.1ST? <SET 1ST? <>>)
(ELSE
<TELL ", ">
<COND (<NOT .N> <TELL "and ">)>)>
<TELL A .F>
<SET F .N>
<COND (<NOT .F> <RETURN>)>>)>>
<ROUTINE V-CLOSE ()
<TELL "You must tell me how to do that to " A ,PRSO "." CR>)
<TELL "Closed." CR>)
(T <TELL "It is already closed." CR>)>)
<TELL "The " D ,PRSO " is now closed." CR>
(T <TELL "It is already closed." CR>)>)
(ELSE
<TELL "You cannot close that." CR>)>>
<ROUTINE CCOUNT (OBJ "AUX" (CNT 0) X)
<COND (<SET X <FIRST? .OBJ>>
<REPEAT ()
<SET CNT <+ .CNT 1>>
<COND (<NOT <SET X <NEXT? .X>>>
<RETURN>)>>)>
.CNT>
"WEIGHT: Get sum of SIZEs of supplied object, recursing to the nth level."
<ROUTINE WEIGHT
(OBJ "AUX" CONT (WT 0))
#DECL ((OBJ) OBJECT (CONT) <OR FALSE OBJECT> (WT) FIX)
<COND (<SET CONT <FIRST? .OBJ>>
<REPEAT ()
<COND
(T <SET WT <+ .WT <WEIGHT .CONT>>>)>
<COND (<NOT <SET CONT <NEXT? .CONT>>> <RETURN>)>>)>
<GLOBAL COPR-NOTICE
" a transcript of interaction with ENCHANTER|
The source code says “registered trademark”, but the compiled game file prints only “trademark”. The source must have been edited after the game was last compiled.
ENCHANTER is a registered trademark of Infocom, Inc.|
Copyright (c) 1983 Infocom, Inc. All rights reserved.|">
<ROUTINE V-SCRIPT ()
<PUT 0 8 <BOR <GET 0 8> 1>>
<ROUTINE V-UNSCRIPT ()
<PUT 0 8 <BAND <GET 0 8> -2>>
<RTRUE>>
<ROUTINE PRE-MOVE ()
<RFALSE> )
<TELL "I don't juggle objects!" CR>)>>
<ROUTINE V-MOVE ()
<TELL "Moving the " D ,PRSO " reveals nothing." CR>)
(T <TELL "You can't move the " D ,PRSO "." CR>)>>
<ROUTINE V-LAMP-ON
()
<COND (<FSET? ,PRSO ,ONBIT> <TELL "It is already on." CR>)
(ELSE
<TELL "The " D ,PRSO " is now on." CR>
<CRLF>
(T
<TELL "You can't turn that on." CR>)>
<RTRUE>>
<ROUTINE V-LAMP-OFF ()
<TELL "It is already off." CR>)
(ELSE
<TELL "The " D ,PRSO " is now off." CR>
<TELL "It is now pitch black." CR>)>)>)>)
<TELL "It's not easy to see how. It's glowing by magic." CR>)
(ELSE <TELL "You can't turn that off." CR>)>
<RTRUE>>
<ROUTINE V-WAIT ("OPTIONAL" (NUM 3))
#DECL ((NUM) FIX)
<TELL "Time passes..." CR>
<REPEAT ()
<COND (<L? <SET NUM <- .NUM 1>> 0> <RETURN>)
<ROUTINE V-WAIT-FOR ()
<TELL "It's already here!" CR>)
(T <TELL "You will probably be waiting quite a while." CR>)>>
<ROUTINE PRE-BOARD
("AUX" AV)
<TELL "You are already in the " D .AV ", cretin!" CR>)
(T <RFALSE>)>)
(T
<TELL "You can't get into the "
D
"!" CR>)>
<RFATAL>>
<ROUTINE V-BOARD
("AUX" AV)
#DECL ((AV) OBJECT)
<TELL "You are now in the " D ,PRSO "." CR>
<RTRUE>>
<ROUTINE V-DISEMBARK ()
<TELL "You're not in that!" CR>
<RFATAL>)
(T
<TELL "You are on your feet again." CR>
<ROUTINE GOTO (RM "OPTIONAL" (V? T) "AUX" OLIT OHERE)
<NOT .OLIT>
<PROB 85>>
"Oh, no! Something slithered alongside you and feasted on your person!">
<RTRUE>)>
<TELL
"The adventurer, proceeding cautiously, follows you. He seems to be
paying particular attention to your possessions." CR CR>
<COND (<NOT <==? ,HERE .RM>> <RTRUE>)
<TELL
"The " D ,WINNER ", ever the good friend, leaves you." CR>)
<TELL
"The " D ,WINNER " returns to you." CR>)>)
<RTRUE>>
<ROUTINE WINNER-HAS-TREASURE? ()
<RTRUE>)>>
<ROUTINE V-BACK ()
<ROUTINE V-POUR-ON () <TELL "You can't pour that on anything!" CR>>
<ROUTINE V-SQUEEZE
()
<TELL "The " D ,PRSO " does not understand this.">)
(ELSE <TELL "How singularly useless.">)>
<CRLF>>
<ROUTINE PRE-OIL ()
<TELL "You probably put spinach in your gas tank, too." CR>>
<ROUTINE V-OIL () <TELL "That's not very useful." CR>>
<ROUTINE V-ADVENT () <TELL "A hollow voice says \"Fool.\"" CR>>
<ROUTINE V-DRINK ("AUX" S)
<TELL
"Ooh! The water tastes terrible, and even the slightest amount makes you
ill." CR>)
<TELL "Ooh! That tastes terrible!" CR>)
<TELL "You can't drink that!" CR>)
(T
<COND (<G? .S 60>
<TELL "You aren't the least bit thirsty." CR>
<RTRUE>)>
<TELL
"The delicious spring water tasted great">
<TELL "." CR>)
<COND (<EQUAL? .S 0>
(T <TELL "." CR>)>)>>
<GLOBAL JUG-FILLS <TABLE
", but the jug is now empty."
", and there's still some left."
", and there's plenty more."
", and there's lots more where that came from."
", and the jug's practically full.">>
<ROUTINE V-EAT ()
<TELL
"Did they teach you to eat that in survival school?" CR>>
<ROUTINE V-CURSES ()
<TELL "Insults of this nature won't help you." CR>)
(T
<TELL "What a loony!" CR>)>)
(T
<TELL
"Such language from an enchanter!" CR>)>>
<ROUTINE V-LISTEN ()
<TELL "The " D ,PRSO " makes no sound." CR>>
<ROUTINE V-FOLLOW ()
<TELL "You're nuts!" CR>>
<ROUTINE V-STAY ()
<TELL "You will be lost without me!" CR>>
<ROUTINE V-PRAY ()
<TELL "If you pray enough, your prayers may be answered." CR>>
<ROUTINE V-LEAP ("AUX" TX S)
<TELL "The "
D
" is too big to jump over." CR>)
(T <TELL "That would be a good trick." CR>)>)
<SET S <PTSIZE .TX>>
<COND (<OR <==? .S 2>
<AND <==? .S 4>
<NOT <VALUE <GETB .TX 1>>>>>
<TELL
"This was not a very safe place to try jumping." CR>
<ROUTINE V-SKIP () <TELL "Wasn't that fun?" CR>>
<ROUTINE V-HELLO ()
<TELL "The "
D
" bows his head to you in greeting." CR>)
(ELSE
<TELL
"I think that only schizophrenics say \"Hello\" to a "
D
"." CR>)>)
<GLOBAL HELLOS <LTABLE 0
"Hello."
"Good day."
"Nice weather we've been having lately."
"Good-bye.">>
<GLOBAL JUMPLOSS <LTABLE 0
"You should have looked before you leaped."
"I'm afraid that leap was a bit much for your weak frame.">>
<ROUTINE PRE-READ ()
<TELL "It is impossible to read in the dark." CR>)
<TELL "How does one look through " A ,PRSI "?" CR>)>>
<ROUTINE V-READ ()
<TELL "How can I read " A ,PRSO "?" CR>)
<ROUTINE V-LOOK-UNDER () <TELL "There is nothing but dust there." CR>>
<ROUTINE V-LOOK-BEHIND () <TELL "There is nothing behind the " D ,PRSO "." CR>>
<ROUTINE V-LOOK-INSIDE
()
<TELL "The "
D
" is open.">)
(ELSE <TELL "The " D ,PRSO " is closed.">)>
<CRLF>)
<TELL "There is nothing special to be seen." CR>)
<RTRUE>)
<TELL "There is nothing on the " D ,PRSO "." CR>)
(T
<TELL "The " D ,PRSO " is empty." CR>)>)
(ELSE <TELL "The " D ,PRSO " is closed." CR>)>)
(ELSE <TELL "You can't look inside " A ,PRSO "." CR>)>>
<ROUTINE SEE-INSIDE? (OBJ)
<ROUTINE V-REPENT () <TELL "It could very well be too late!" CR>>
<ROUTINE PRE-BURN ()
<TELL "Your blazing gaze is insufficient." CR>)
(T <TELL "With " A ,PRSI "??!?" CR>)>>
<ROUTINE V-BURN ()
<TELL "The " D ,PRSO " catches fire." CR>
"Unfortunately, you were holding it at the time.">)
(T
" catches fire and is consumed." CR>)
This last message is not compiled into the game file. It’s effectively an ELSE for the “PRSO in WINNER” COND, which already has an ELSE (T) clause directly above (the “catches fire and is consumed” response). So it can never run, and the compiler optimizes it out.
(ELSE <TELL "You don't have that." CR>)>)
(T <TELL "I don't think you can burn " A ,PRSO "." CR>)>>
<ROUTINE V-TURN () <TELL "This has no effect." CR>>
<ROUTINE V-PUMP () <TELL "It's not clear how." CR>>
<ROUTINE V-INFLATE () <TELL "How can you inflate that?" CR>>
<ROUTINE V-DEFLATE () <TELL "Come on, now!" CR>>
<ROUTINE V-LOCK () <TELL "It doesn't seem to work." CR>>
<ROUTINE V-PICK () <TELL "You can't pick that." CR>>
<ROUTINE V-UNLOCK () <V-LOCK>>
<ROUTINE V-CUT ()
<TELL "Your skillful "
D
"smanship slices the "
D
" into innumerable
slivers which evaporate instantaneously."
CR>)
<TELL
"I doubt that the \"cutting edge\" of " A ,PRSI " is adequate." CR>)
(T
<TELL "Strange concept, cutting the " D ,PRSO "...." CR>)>>
<ROUTINE PRE-HIT ()
<TELL "You don't have the " D ,PRSI "." CR>)>>
<ROUTINE V-KILL ()
<ROUTINE IKILL (STR)
#DECL ((STR) STRING)
<COND (<NOT ,PRSO> <TELL "There is nothing here to " .STR "." CR>)
<TELL "I've known strange people, but fighting a "
D
"?" CR>)
<TELL "Trying to "
.STR
" a "
D
" with your bare hands is suicidal." CR>)
<TELL "You aren't even holding the " D ,PRSI "." CR>)
<TELL "Trying to "
.STR
" the "
D
" with a "
D
" is suicidal." CR>)
(ELSE <TELL "You'd never survive the attack." CR>)>>
<ROUTINE V-ATTACK () <IKILL "attack">>
<ROUTINE V-SWING ()
<TELL "Whoosh!" CR>)
<ROUTINE V-KICK () <HACK-HACK "Kicking the ">>
<ROUTINE V-WAVE () <HACK-HACK "Waving the ">>
<ROUTINE V-WAVE-AT () <TELL
"Despite your friendly nature, the " D ,PRSO " isn't likely to respond." CR>>
<ROUTINE V-RAISE () <HACK-HACK "Playing in this way with the ">>
<ROUTINE V-LOWER () <HACK-HACK "Playing in this way with the ">>
<ROUTINE V-RUB () <HACK-HACK "Fiddling with the ">>
<ROUTINE V-PUSH () <HACK-HACK "Pushing the ">>
<ROUTINE V-PUSH-TO () <TELL "You can't push things to that." CR>>
<ROUTINE V-MUNG ()
<TELL "Trying to break the "
D
" with your bare hands is suicidal." CR>)
<TELL "Trying to destroy the "
D
" with a "
D
" is quite self-destructive." CR>)
(T <TELL "You can't." CR>)>>
<ROUTINE HACK-HACK
(STR)
#DECL ((STR) STRING)
<TELL "The " D ,PRSO " isn't here!" CR>)
<GLOBAL HO-HUM
<LTABLE 0
" doesn't do anything."
" doesn't accomplish anything."
" has no desirable effect.">>
<ROUTINE WORD-TYPE
(OBJ WORD "AUX" SYNS)
#DECL ((OBJ) OBJECT (WORD SYNS) TABLE)
<- </ <PTSIZE .SYNS> 2> 1>>>
<ROUTINE V-KNOCK
()
<TELL "I don't think that anybody's home." CR>)
(ELSE <TELL "Why knock on " A ,PRSO "?" CR>)>>
<ROUTINE V-YELL () <TELL "Aarrrrrgggggggghhhhhhhhhhh!" CR>>
<ROUTINE V-PLUG () <TELL "This has no effect." CR>>
<ROUTINE V-EXORCISE () <TELL "You can't do that with mere words!" CR>>
\
<ROUTINE V-SHAKE ("AUX" X)
<TELL "Be real." CR>)
<TELL "You can't take it; thus, you can't shake it!" CR>)
(T <TELL "There's no point in shaking that." CR>)>>
<ROUTINE PRE-DIG ()
(ELSE
<TELL "Digging with the " D ,PRSI " is very silly." CR>)>>
<ROUTINE V-DIG ()
<TELL "The ground is unsuitable for digging here." CR>>
<ROUTINE V-SMELL ()
<TELL "It smells just like " A ,PRSO "." CR>>
<ROUTINE GLOBAL-IN? (OBJ1 OBJ2 "AUX" TX)
<ZMEMQB .OBJ1 .TX <- <PTSIZE .TX> 1>>)>>
<ROUTINE V-SWIM ()
<TELL "You'd probably drown." CR>)
<TELL "This is a very small brook. Forget it." CR>)
(T <TELL "There's nothing to swim in!" CR>)>>
<ROUTINE V-UNTIE () <TELL "This cannot be tied, so it cannot be untied!" CR>>
<ROUTINE PRE-TIE
()
<TELL "You can't tie it to yourself." CR>)>>
<ROUTINE V-TIE () <TELL "You can't tie the " D ,PRSO " to that." CR>>
<ROUTINE V-TIE-UP () <TELL "You could certainly never tie it with that!" CR>>
<ROUTINE V-MELT () <TELL "I'm not sure that " A ,PRSO " can be melted." CR>>
<ROUTINE V-MUMBLE
()
<TELL "You'll have to speak up if you expect me to hear you!" CR>>
<ROUTINE V-ALARM ()
<TELL "The " D ,PRSO " isn't sleeping." CR>>
<ROUTINE V-ZORK ()
<TELL
"ZORK (R) - A trilogy of fantasy classics from INFOCOM. " CR>>
\
<ROUTINE V-CLIMB-ON ()
(T
<TELL "You can't climb onto the " D ,PRSO "." CR>)>>
<ROUTINE V-CLIMB-FOO ()
<ROUTINE V-CLIMB-UP ("OPTIONAL" (DIR ,P?UP) (OBJ <>) "AUX" X)
#DECL ((DIR) FIX (OBJ) <OR ATOM FALSE> (X) TABLE)
<COND (<GETPT ,HERE .DIR>
<RTRUE>)
(<NOT .OBJ>
<TELL "You can't go that way." CR>)
(<AND .OBJ
<TELL "Climbing the walls is to no avail." CR>)
(ELSE <TELL "Bizarre!" CR>)>>
<ROUTINE V-LIE-DOWN ()
<RTRUE>)
(T
<RTRUE>)>>
<ROUTINE V-CLIMB-DOWN ()
<ROUTINE V-SEND ()
<TELL "Why would you send for the " D ,PRSO "?" CR>)
<ROUTINE V-WIND ()
<TELL "You cannot wind up " A ,PRSO "." CR>>
<ROUTINE V-COUNT ()
<TELL "You have lost your mind." CR>>
<ROUTINE V-PUT-UNDER ()
<TELL "You can't put anything under that." CR>>
<ROUTINE V-PLAY ()
<TELL
"You are so engrossed in the role of the " D ,PRSO " that
you kill yourself, just as he would have done!" CR>
(T <TELL "How peculiar!" CR>)>>
<ROUTINE V-ENTER ()
<ROUTINE V-EXIT ()
<ROUTINE V-CROSS ()
<TELL "You can't cross that!" CR>>
<ROUTINE V-SEARCH ()
<TELL "You find nothing unusual." CR>>
<ROUTINE V-FIND ("AUX" (L <LOC ,PRSO>))
<TELL
"Within six feet of your head, assuming you haven't left that
somewhere." CR>)
<TELL "You're around here somewhere..." CR>)
<TELL "You have it!" CR>)
<TELL "It's right in front of you." CR>)
<TELL "The " D .L " has it." CR>)
<TELL "It's in the " D .L "." CR>)
(ELSE
<TELL "Beats me, but it's not here." CR>)>>
<ROUTINE V-TELL ()
(T
<TELL
"The " D, PRSO " looks at you expectantly, as though he thought you were
about to talk." CR>)>)
(T
<TELL "You can't talk to the " D ,PRSO "!" CR>
<RFATAL>)>>
<ROUTINE V-ANSWER ()
<TELL "Nobody seems to be awaiting your answer." CR>
<RTRUE>>
<ROUTINE V-REPLY ()
<TELL "It is hardly likely that the " D ,PRSO " is interested." CR>
<RTRUE>>
<ROUTINE V-KISS ()
<TELL "I'd sooner kiss a pig." CR>>
<ROUTINE V-RAPE ()
<TELL "What a (ahem!) strange idea." CR>>
<ROUTINE FIND-IN (WHERE WHAT "AUX" W)
<SET W <FIRST? .WHERE>>
<COND (<NOT .W> <RFALSE>)>
<REPEAT ()
<COND (<FSET? .W .WHAT> <RETURN .W>)
(<NOT <SET W <NEXT? .W>>> <RETURN <>>)>>>
<ROUTINE V-SAY ("AUX" V)
<TELL "You must address the " D .V " directly." CR>)
<RTRUE>)
(ELSE
<TELL
"Talking to yourself is said to be a sign of impending mental
collapse." CR>)>>
<ROUTINE V-SPIN ()
<TELL "You can't spin that!" CR>>
<ROUTINE V-THROUGH ("AUX" M)
<RTRUE>)
<RTRUE>)
<TELL "You hit your head against the "
" as you attempt this feat." CR>)
<TELL "That would involve quite a contortion!" CR>)
<ROUTINE V-WEAR ()
<COND
(ELSE
<TELL "You can't wear the " D ,PRSO "." CR>)>>
<ROUTINE V-THROW-OFF ()
<TELL "You can't throw anything off that!" CR>>
<ROUTINE V-$VERIFY ()
(,PRSO <TELL "I don't understand that sentence." CR>)
(ELSE
<TELL "Verifying disk..." CR>
<COND (<VERIFY> <TELL "The disk is correct." CR>)
(T <TELL CR "** Disk Failure **" CR>)>)>>
<ROUTINE V-STAND ()
<RTRUE>)
(ELSE
<TELL "You are already standing, I think." CR>)>>
<ROUTINE V-PUT-BEHIND ()
<TELL "That hiding place is too obvious." CR>>
<ROUTINE DO-WALK (DIR)
<ROUTINE V-WALK-TO ()
<TELL "It's here!" CR>)
(T <TELL "You should supply a direction!" CR>)>>
<ROUTINE OTHER-SIDE (DOBJ "AUX" (P 0) TX)
<REPEAT ()
<COND (<L? <SET P <NEXTP ,HERE .P>> ,LOW-DIRECTION>
<RETURN <>>)
(ELSE
<SET TX <GETPT ,HERE .P>>
<COND (<AND <EQUAL? <PTSIZE .TX> ,DEXIT>
<RETURN .P>)>)>>>
<ROUTINE V-DRINK-FROM ()
<RTRUE>)
<RTRUE>)
(T <TELL "How peculiar!" CR>)>>
<ROUTINE V-LEAN-ON ()
<TELL "Are you so very tired, then?" CR>>
<ROUTINE V-MAKE-LINE-TO ()
<TELL
"You're not holding anything you can make it with." CR>)
<TELL
"There's not enough left of the pencil to make a line with." CR>)
(T
(T <TELL "That's silly." CR>)>>
<ROUTINE V-MAKE-LINE ()
<RFATAL>)
<TELL
"You won't write anything with that!" CR>)
(T
<RFATAL>)>>
<ROUTINE V-ERASE-LINE-TO ()
<TELL
"You're not holding anything you can erase it with." CR>)
<TELL
"There's not enough left of the eraser." CR>)
(T
(T <TELL "That's silly." CR>)>>
<ROUTINE V-ERASE-LINE ()
<TELL
"You won't erase anything with that!" CR>)
<TELL
"If you want to erase one of the pencil lines, you should specify the
line. For example, \"ERASE THE LINE BETWEEN X AND Z.\"" CR>)
<TELL "You can't seem to erase the marking." CR>)
(T
<TELL "You can't erase that!" CR>)>)
(T
<RFATAL>)>>
<ROUTINE 2OBJS? ()
<COND (<NOT <EQUAL? <GET ,P-PRSO 0> 2>>
<TELL "That sentence doesn't make sense." CR>
<RFALSE>)
(T <RTRUE>)>>
<GLOBAL YUKS
<LTABLE 0
"No spell would help with that!"
"It would take more magic than you've got!"
"You can't be serious."
"You must have had a silliness spell cast upon you.">>
<ROUTINE V-REACH-IN ("AUX" OBJ)
<TELL "What a maroon!" CR>)
<TELL "It's not open." CR>)
(<OR <NOT <SET OBJ <FIRST? ,PRSO>>>
<TELL "It's empty." CR>)
(T
<TELL
"You reach into the " D ,PRSO " and feel something." CR>
<RTRUE>)>>
Move the contents of one object to another object, or off-stage. This is selective: it skips scenery, scrolls, the BREAD, the JUG, and the STRONG-BOX.
Returns true if anything was moved.
<ROUTINE ROB (WHO "OPTIONAL" (WHERE <>) (HIDE? <>) "AUX" N X (ROBBED? <>))
<SET X <FIRST? .WHO>>
<REPEAT ()
<COND (<NOT .X> <RETURN .ROBBED?>)>
<SET N <NEXT? .X>>
<SET ROBBED? .X>)>
<SET X .N>>>
Move the entire contents of one object to another object. This is used to strip your inventory when you are captured.
I don’t know for sure, but I bet BLT stands for “block transfer”. This was a PDP-10 opcode which moved a bunch of bytes all at once. Doctor Who fans remember it fondly.
<ROUTINE BLT (WHO WHERE "AUX" N X (CNT 0))
<SET X <FIRST? .WHO>>
<REPEAT ()
<COND (<NOT .X> <RETURN .CNT>)>
<SET N <NEXT? .X>>
<MOVE .X .WHERE>
<SET CNT <+ .CNT 1>>
<SET X .N>>>
<ROUTINE RIPOFF (X WHERE)
(<AND .WHERE <IN? .X .WHERE>>
<RFALSE>)
(.WHERE <MOVE .X .WHERE>)
(ELSE <REMOVE .X>)>
<RTRUE>)>>
<ROUTINE V-POINT ()
<RTRUE>)
<TELL
"The adventurer nods as if in approval of the " D ,PRSO "." CR>)
(T
<TELL
"The adventurer backs off from the " D ,PRSO "." CR>)>)
(T <TELL "Not much use in that...." CR>)>>
<ROUTINE V-ASK-FOR ()
<TELL "He's not holding that!" CR>)
<TELL
"The adventurer politely refuses, indicating its great beauty and value." CR>)
<TELL
"The adventurer refuses, indicating its utter necessity in his travels." CR>)
(T
<TELL
"The adventurer, not seeing any use in keeping the " D ,PRSI " anyway, hands
it to you gladly." CR>)>)
(T
<TELL
"The adventurer waves you off with an aggressive gesture." CR>)>)
(T <TELL "The " D ,PRSO " is not likely to oblige." CR>)>>
<ROUTINE V-THANK ()
<TELL "The " D ,PRSO " seems less than overjoyed." CR>)
(T
<TELL
"The Circle will revoke your certificate if you keep this up." CR>)>>
<ROUTINE V-FILL ()
(T
<TELL "There's nothing to fill it with." CR>)>)
(T <TELL "I don't see how you propose to do that." CR>)>>
<ROUTINE V-ESCAPE ()
<TELL "There is no escape from the " D ,PRSO "!" CR>>
<ROUTINE V-WRITE-WITH ()
<RTRUE>)
(T
<TELL "There's nothing good to write on." CR>)>)
(T <TELL "You can't write with that!" CR>)>>
<ROUTINE WRITE-HINT ()
<TELL
"You can't draw on it arbitrarily. Rather, the pencil seems to home in on
various points on the map, daring you to draw a line between them." CR>>
<ROUTINE V-WRITE-ON ("AUX" SPELL)
<SET SPELL <FIRST? ,PRSO>>
<TELL
"You've written on the scroll all right, but you've also defaced the spell
written on it." CR>)
(T
<TELL "You can't write on that!" CR>)>
<RTRUE>)
<TELL "You can't write with that!" CR>)
(T
<TELL "You have nothing to write with!" CR>)>>
<ROUTINE V-AVOID ()
<TELL "Perhaps that is unavoidable." CR>>
<ROUTINE V-SHOW ()
<TELL "I doubt the " D ,PRSI " is interested." CR>>
<ROUTINE PRE-SSHOW ()
<RTRUE>>
<ROUTINE PRE-BRING ()
<COND (<NOT <EQUAL? ,PRSO ,ME>>
<TELL "I don't understand that sentence." CR>
<RTRUE>)>>
<ROUTINE V-BRING ()
<TELL "Are you talking to yourself again?" CR>)
(T
<TELL "\"You can get it yourself!\"" CR>)>>
<ROUTINE V-DRAW-ON ()
<RTRUE>)
(T <TELL "You can't draw on that!" CR>)>>
<ROUTINE V-SHARPEN ()
<TELL "It's plenty sharp already." CR>)
<TELL
"The pencil can't be sharpened. Perhaps it is magical." CR>)
(T
<TELL "You can't sharpen that." CR>)>)
(T
<TELL "You'll never sharpen anything with that!" CR>)>>
<ROUTINE V-FORGET ()
<TELL
"You might also try not thinking about a purple hippopotamus!" CR>>
<ROUTINE PRE-FLY ()
<TELL "What a loon!" CR>
<RTRUE>)
(T
<TELL
"You are probably a loon, although you can't fly." CR>)>>
<ROUTINE V-HIDE ()
<TELL
"You'll have to say which direction you want to go." CR>
<RFATAL>)
<TELL
"Too late. The adventurer has already noticed the " D ,PRSO "." CR>)
(T
<TELL
"He isn't interested in that anyway." CR>)>)
<TELL
"Why? The " D ,PRSI " isn't interested in it." CR>)
<TELL
"From what? From whom? Why?" CR>)>>
This is the response if you type LOOK OBJECT instead of LOOK AT OBJECT or EXAMINE OBJECT.
Modern IF tools like Inform 7 have generally gone back to accepting LOOK OBJECT as a synonym. Honestly, I’m with Infocom on this one.
<ROUTINE V-CHASTISE ()
<TELL
"Use prepositions to indicate precisely what you want to do: LOOK AT THE
OBJECT, LOOK INSIDE THE OBJECT, LOOK FOR THE OBJECT, etc." CR>>
<ROUTINE V-GAG ()
<COND (<NOT <EQUAL? ,PRSO ,ME>>
<TELL "What a concept!" CR>)
<TELL "With a " D ,PRSO "?" CR>)
(T <TELL "Grody to the max! Like, totally!" CR>)>>
The command GROSS OUT is not implemented in any other Infocom game. Why here? Perhaps because there is a SILVER-SPOON, and some tester tried GAG ME WITH A SPOON (which is also supported).
<ROUTINE V-GROSS-OUT ()
<TELL "Let's not be disgusting!" CR>)
(T
<TELL "Gag me with a spoon!" CR>)>>
<ROUTINE V-WHO ()
<RTRUE>)
(T <TELL "That's not a person!" CR>)>>