"GLOBALS for
ENCHANTER
(c) Copyright 1983 Infocom, Inc. All Rights Reserved.
"
<DIRECTIONS ;"Do not change the order of the first eight
without consulting MARC!"
NORTH NE EAST SE SOUTH SW WEST NW UP DOWN IN OUT>
<ROUTINE NULL-F () <RFALSE>>
"SUBTITLE GLOBAL OBJECTS"
<OBJECT GLOBAL-OBJECTS
This is a container for scenery objects like HILLS, which are visible from many locations in the game.
<OBJECT LOCAL-GLOBALS
(SYNONYM ZZMGCK)
(DESCFCN 0)
(ADVFCN 0)
(FDESC "F")
(LDESC "F")
(CONTFCN 0)
(SIZE 0)
(CAPACITY 0)>
This refers to the word ZZMGCK in LOCAL-GLOBALS, above.
Why is this synonym necessary? Not clear! Most Infocom games have it (or a variation), but some say “No, this synonym doesn’t need to exist” instead.
If you type EXAMINE ZZMGCK, the parser finds LOCAL-GLOBALS. But that object is nameless, so you get a garbage reply. Go on, try it.
<OBJECT ROOMS
(IN TO ROOMS)>
<OBJECT INTNUM
(SYNONYM INTNUM)
(DESC "number")>
<OBJECT PSEUDO-OBJECT
(DESC "pseudo")
<OBJECT IT
(SYNONYM IT THAT HER HIM)
(DESC "random object")
<OBJECT GROUND
(SYNONYM FLOOR GROUND)
(ADJECTIVE STONE)
(DESC "floor")
<ROUTINE GROUND-F ()
<COND (<VERB? CLIMB-UP CLIMB-ON CLIMB-FOO BOARD>
<TELL "You've got better things to do." CR>)>>
<OBJECT CORRIDOR
(DESC "passage")
(SYNONYM PASSAGE CORRIDOR ENTRANCE)
<ROUTINE CORRIDOR-F ()
<COND (<VERB? THROUGH WALK-TO>
<OBJECT WALLS
(DESC "castle wall")
(SYNONYM WALL WALLS CASTLE)
(ADJECTIVE TRANSLUCENT)
<ROUTINE WALLS-F ()
<COND (<VERB? EXAMINE>
<TELL
"The wall is stained and noisome." CR>)
(<VERB? LISTEN>
<TELL
"That's noisome, not noisy!" CR>)>)
(<VERB? LOOK-INSIDE>
<TELL
"They're translucent, not transparent!" CR>)>>
<OBJECT CEILING
(DESC "ceiling")
(SYNONYM CEILIN)>
<OBJECT HANDS
(SYNONYM HAND HANDS)
(ADJECTIVE BARE)
(DESC "bare hands of a novice enchanter")
Yes, the player’s printed name is “cretin”, although the game rarely says so. (The error for boarding a vehicle you’re already in mentions it.) This sort of sarcastic insult hasn’t aged too well, but MIT culture had a lot of it. Compare WINNER, and also the old MIT Jargon File.
Note that if you refer to ME, you get the ME global object, not the PLAYER.
See also the ADVENTURER, which – for this one game – is an NPC.
<OBJECT PLAYER
(SYNONYM ENCHANTER)
(DESC "cretin")
(ACTION 0)>
A global object which is always in scope. Commands referring to ME hit this, rather than PLAYER, which is a stub that moves around the map.
Because of this, parser messages mostly refer to you as “you”, even though the PLAYER’s printed name is “cretin”.
<OBJECT ME
(SYNONYM ME MYSELF SELF FACE)
(DESC "you")
<ROUTINE CRETIN ()
<COND (<VERB? ESCAPE>
<TELL "There's no escaping yourself." CR>)
(<AND <VERB? PUT> <EQUAL? ,PRSO ,EGG>>
<TELL
"If you don't succeed, there will be plenty of egg on your face." CR>)
(<VERB? BURN>
<TELL "Ouch!" CR>)
(<VERB? LISTEN>
<TELL "Yes?" CR>)
(<VERB? ALARM>
<TELL "You are obviously awake already." CR>)
(<VERB? GUNCHO>
<TELL
"You vanish into oblivion where, to the relief of much of the Circle, you
will be unable to do much harm." CR>
(<VERB? FROTZ>
<TELL
"You are bathed in a sickly yellow light, bright enough to read by." CR>)
(<VERB? BLORB>
"You experience the most peculiar sensation of being simultaneously shrunken
and sucked into what might best be likened to a black hole. The effect is not
without its exhilarating aspect; as a way of life, however, it leaves much to
be desired." <>>
<RTRUE>)
(<VERB? KULCAD>
<TELL
"You seem real enough already." CR>)
(<VERB? EXAMINE>
<TELL "You are not a pretty sight." CR>)
(<VERB? GIVE>
<TELL "I think you're a little confused." CR>)
(<VERB? KILL MUNG ATTACK>
<TELL "You don't need my help to do that!" CR>)
(<VERB? FIND>
<TELL "You're right here!" CR>)
<TELL
"I should think one experience with that knife would be enough. I wouldn't
press my luck." CR>)>>
<GLOBAL HERE <>>
The maximum weight you can carry. This decreases as you become tired; see I-TIRED. When you rest, it is reset to LOAD-MAX.
<GLOBAL LOAD-ALLOWED 100>
The maximum weight you can carry at full strength. (Compare LOAD-ALLOWED.)
<GLOBAL LOAD-MAX 100>
<GLOBAL MOVES 0>
<GLOBAL SCORE 0>
<OBJECT WINDOW
(DESC "window")
(SYNONYM WINDOW)
(ADJECTIVE BROKEN)
<ROUTINE WINDOW-F ()
<COND (<VERB? LOOK-INSIDE>
<TELL "It's too dark to make out much of anything." CR>)
(<VERB? OPEN>
<TELL "You can't open it." CR>)
(<VERB? CLOSE>
<TELL "It already is." CR>)>>
<OBJECT SEA
(DESC "sea")
(SYNONYM OCEAN SEA)
(ADJECTIVE MISTY)
<ROUTINE SEA-F ()
<TELL
"The sea is off beyond the beach." CR>)
(<VERB? THROUGH>
<TELL "You would drown." CR>)
(<VERB? EXAMINE>
<TELL "The sea is very rough. I wouldn't go in." CR>)>>
<OBJECT FOREST
(DESC "forest")
(SYNONYM FOREST)
<ROUTINE FOREST-F ()
<COND (<VERB? THROUGH>
<OBJECT TEMPLE-OBJ
(DESC "temple")
(SYNONYM TEMPLE)
<ROUTINE TEMPLE-OBJ-F ()
<COND (<VERB? THROUGH>
<RTRUE>)
(<VERB? LISTEN>
<TELL
"You can hear a howling chant coming from inside the temple." CR>)>)>>
<OBJECT COURTYARD
(DESC "courtyard")
(SYNONYM COURTYARD LAWN LAWNS GRASS)
<ROUTINE COURTYARD-F ()
(<AND <VERB? THROUGH>
<OBJECT TOWER
(DESC "tower")
(SYNONYM TOWER)
<ROUTINE TOWER-F ()
<COND (<AND <VERB? CLIMB-UP CLIMB-FOO BOARD>
(<AND <VERB? CLIMB-DOWN CLIMB-FOO>
(<VERB? CLIMB-UP CLIMB-FOO>
<TELL
"They are a bit far away to climb from here, and anyway the walls would
be impossible to scale." CR>)>>
<OBJECT TURRET
(DESC "turret")
(SYNONYM TURRET)>
<OBJECT LAWN
(DESC "lawn")
(SYNONYM LAWN)>
<OBJECT MEADOW-OBJ
(DESC "meadow")
(SYNONYM MEADOW)>
<OBJECT BEACH-OBJ
(DESC "beach")
(SYNONYM BEACH)
(ADJECTIVE WHITE ROCKY)>
<OBJECT GLOBAL-WATER
(SYNONYM WATER BROOK POND)
(ADJECTIVE DELICIOUS SPRING)
(DESC "water")
<OBJECT WATER
(SYNONYM WATER QUANTITY)
(ADJECTIVE DELICIOUS SPRING)
(DESC "quantity of water")
(SIZE 4)>
<OBJECT JUG
(SYNONYM JUG)
(ADJECTIVE POTTERY)
(DESC "jug")
(FDESC
"An empty jug lies in a corner of the room, against the overturned table.")
(CAPACITY 4)>
<ROUTINE JUG-F ("AUX" (E? <>))
<COND (<VERB? OPEN CLOSE>
<TELL
"The jug has no cover. It can't be opened or closed." CR>
<RTRUE>)
(<VERB? THROW MUNG>
<SET E? T>
<TELL "The jug shatters into innumerable pieces." CR>)
(<VERB? SHAKE>
<COND (<VERB? EXAMINE LOOK-INSIDE>
<TELL "The jug is ">
<TELL "empty." CR>)
(T
(.E?
<TELL
"The water spills to the ground and evaporates." CR>
<RTRUE>)>>
<GLOBAL JUG-AMTS <TABLE
"foo"
"mostly empty."
"half full."
"nearly full."
"full.">>
<ROUTINE WATER-FUNCTION ("AUX" AV W PI?)
#DECL ((AV) <OR OBJECT FALSE> (W) OBJECT (PI?) <OR ATOM FALSE>)
<TELL
"The ocean streches out as far as the eye can see to the south and
east." CR>)
<TELL
"The water is dark and murky, and lily pads cover most of the surface.
I wouldn't drink the stuff." CR>)
(T
<TELL
"The brook runs slowly through thick vegetation." CR>)>
<RTRUE>)
<TELL
"You have better things to do with your time than go swimming." CR>
<RTRUE>)
<RTRUE>)
(<VERB? SGIVE> <RFALSE>)
(<VERB? THROUGH>
<TELL "Swimming here is fraught with peril." CR>
<RTRUE>)
(<VERB? FILL>
<SET PI? <>>)
<SET PI? <>>)
(ELSE
<SET PI? T>)>
<COND (<VERB? DRINK> <RFALSE>)>
<COND (<VERB? TAKE PUT> <REMOVE .W>)>)>
<COND (.PI? <SETG PRSI .W>)
<COND (<AND <VERB? TAKE PUT> <NOT .PI?>>
<TELL
"Ok, but there was plenty enough there already." CR>
<REMOVE .W>)
<TELL
"The water leaks out of the " D ,PRSI " and evaporates immediately." CR>
<REMOVE .W>)
(T
<TELL
"The " D ,PRSI " isn't a very good container." CR>)>)
<TELL "The jug is closed." CR>)
<TELL "The jug is now full of ">
<TELL "sea">)
<TELL "foul algae-infested ">)
(T
<TELL "water." CR>)
(ELSE
<TELL "The jug is already full." CR>
<RTRUE>)>)
(T
<TELL "The only water here is in the jug." CR>)>)
<VERB? TAKE>
(T
<TELL "The water slips through your fingers." CR>)>)
(.PI? <TELL "Nice try." CR>)
(<VERB? DROP GIVE>
<TELL
"Ok, but there was plenty enough there already." CR>)
(T
<TELL
"The water spills to the ground and evaporates." CR>)>)
(<VERB? POUR-ON>
<TELL
"The water cascades off the " D ,PRSI " and onto the ground." CR>)
(<VERB? THROW>
<TELL
"The water splashes over everything and evaporates." CR>
<OBJECT SKY
(DESC "sky")
(SYNONYM SKY STARS)
<ROUTINE SKY-F ("AUX" EL)
<COND (<AND <FSET? ,HERE ,ONBIT> <VERB? EXAMINE>>
<TELL "It would be " <GET ,TIME-TABLE .EL> " now.">
<TELL " Bright stars shine down on the earth.">)>
<CRLF>)
(T <TELL "That would be difficult from here." CR>)>>
<OBJECT NOT-HERE-OBJECT
(DESC "such thing" )
<ROUTINE NOT-HERE-OBJECT-F ("AUX" TBL (PRSO? T) OBJ)
<TELL "Those things aren't here!" CR>
<RTRUE>)
(T
<SET PRSO? <>>)>
<COND (.PRSO?
<COND (<OR <VERB? ZIFMIA>
<AND <VERB? CAST>
<RTRUE>)>)
(T
<RFALSE>)>)>)
>
<TELL "You can't see any ">
<TELL " here!" CR>)
(T
<TELL "The " D ,WINNER " seems confused. \"I don't see any ">
<TELL " here!\"" CR>)>
<RTRUE>>
<ROUTINE FIND-NOT-HERE (TBL PRSO? "AUX" M-F OBJ)
<TELL "[Moby-found " N .M-F " objects" "]" CR>)>
<COND (<AND <G? .M-F 1>
<SET OBJ <GETP <GET .TBL 1> ,P?GLOBAL>>>
<SET M-F 1>
<COND (<==? 1 .M-F>
<RFALSE>)
(<NOT .PRSO?>
<TELL "You wouldn't find any ">
<TELL " there." CR>
<RTRUE>)
<ROUTINE GLOBAL-NOT-HERE-PRINT (OBJ)
<TELL "You can't see">
<TELL " any">)>
<TELL " here." CR>>
<ROUTINE NOT-HERE-PRINT (PRSO?)
(.PRSO?
(T
Yes, Belboz is a Necromancer. Apparently Warlocks are disreputable, but Necromancers can be stand-up members of society.
To be fair, your talent for fatal blunder gives Belboz’s talents a good workout. See JIGS-UP.
<OBJECT BELBOZ
(DESC "Necromancer Belboz")
(SYNONYM BELBOZ NECROMANCER)
<ROUTINE BELBOZ-F ()
<COND (<VERB? ZIFMIA>
<TELL
"A vision of the great Belboz begins to take shape before you, but ">
<TELL
"as
soon as he realizes where you are, he disappears, a look of fear upon
his face." CR>)
(T
<TELL
"with
a curt word and a waggle of his finger, he disappears again, shaking his
head in disappointment." CR>)>)
(<VERB? EXAMINE WHO>
<TELL
"Belboz is, in effect, your boss, professor, patron, and ultimate superior.
He is the head of the Circle of Enchanters." CR>)>>
<OBJECT GLOBAL-ROOM
(DESC "room")
(SYNONYM ROOM PLACE AREA HERE)
<ROUTINE GLOBAL-ROOM-F ()
<COND (<VERB? LOOK EXAMINE>
<RTRUE>)
(<VERB? WALK-AROUND>
<TELL
"Walking around the room reveals nothing else of interest. If you want to
move elsewhere, simply indicate the direction you wish to move in." CR>)>>
<OBJECT BRAMBLES
(SYNONYM BRAMBLE)
(DESC "bramble")
<ROUTINE BRAMBLES-F ()
<TELL "The only brambles here are in your head." CR>)
(<VERB? SEARCH LOOK-INSIDE>
<TELL
"There's nothing in the brambles now. Count your blessings." CR>)>>
<OBJECT GLOBAL-HOLE
(DESC "hole")
(SYNONYM HOLE)
<ROUTINE GLOBAL-HOLE-F ()
<COND (<VERB? DIG>
<TELL "It's not worth the bother." CR>)