Play Live Overview Routines Objects Global Vars Properties

Note that properties and attributes (flags) are declared implicitly in OBJECT definitions. They have no explicit definitions in the ZIL source to link to.

Properties

#9 ACTION rtn
#8 ADJECTIVE adjs
#16 ADVFCN rtn

If a room has this property, it’s called when the ADVENTURER enters. For an object, it’s called when the ADVENTURER sees it and tries to pick it up.

#10 CAPACITY int
#12 CONTFCN rtn
#4 COUNT int

For spell objects, tells how many times you have the spell memorized. For rooms, distinguishes the four mirror rooms.

#18 DESCFCN rtn
#22 DOWN dir
#29 EAST dir
#15 FDESC str
#17 GLOBAL objs
#21 IN dir
#14 LDESC str
#3 MUNGDESC str

A few rooms have a different description when ruined. This is it.

#30 NE dir
#31 NORTH dir
#24 NW dir
#20 OUT dir
#6 POINT mazepoint
#13 PSEUDO wordrtns
#28 SE dir
#11 SIZE int
#27 SOUTH dir
#26 SW dir
#19 SYNONYM words
#7 TEXT str
#5 TMAZE tmaze

For each maze room, this property is a list of eight entries (one per compass direction). Each entry says which room is in that direction, and whether the exit is open (1) or closed (0).

The open/closed flags change as you wield the PENCIL. The room values do not.

#23 UP dir
#25 WEST dir

Attributes

#28 BURNBIT flag

Set for objects which the player can BURN. (It might be a bad idea, but you can do it.)

This is different from LIGHTBIT, objects which the player can TURN ON.

#26 CLIMBBIT flag
#21 CONTBIT flag
#24 DOORBIT flag
#27 FLAMEBIT flag

Most Infocom games use this to indicate objects which are on fire. However, Enchanter does not use FLAMEBIT. The ETERNAL-FLAME, the only flaming object in the game, is handled as a special case by V-BURN.

#16 INVISIBLE flag
#22 LIGHTBIT flag

This indicates objects which can be switched on and off. When on, they will also have ONBIT.

(FROTZed objects have LIGHTBIT temporarily, which means they can be un-FROTZed with a simple TURN OFF command. This is not intuitive, but it seems to be deliberate. Except that if you FROTZ yourself, this doesn’t work, which is even more unintuitive.)

Outdoor rooms, and rooms which can see the sky, also have LIGHTBIT. This seems to have been intended to support rooms that are dark only at night. However, this feature is not used; see LIT?

#1 LOCKEDBIT flag
#7 NDESCBIT flag
#8 ONBIT flag

Set for glowing objects and permanently-illuminated rooms. Compare LIGHTBIT.

#12 OPENBIT flag
#6 POINTBIT flag

Set for the nine point objects on the TMAP.

#18 READBIT flag
#25 RLANDBIT flag

Indicates rooms; but also used as a hack in grammar lines, where it means the object is optional (but the preposition before it is required). This allows the parser to accept commands like LOOK AROUND.

#17 RMUNGBIT flag

Indicates ruined objects and rooms.

#3 SCROLLBIT flag

Set for scrolls, naturally. (Compare SPELLBIT.)

#11 SEARCHBIT flag
#4 SPELLBIT flag

Set for spell objects, naturally. (Compare SCROLLBIT.)

#14 SURFACEBIT flag
#19 TAKEBIT flag
#23 TOOLBIT flag
#15 TOUCHBIT flag
#10 TRANSBIT flag
#2 TREASURE flag

Set for obviously valuable objects. You don’t care, but the ADVENTURER does.

#13 TRYTAKEBIT flag
#29 VEHBIT flag
#20 VICBIT flag

Generally set for living beings, though not the PLAYER. The MAGIC-ROPE and the MIRROR have it as well.

This is almost the same as VILLAIN, but some verbs use VILLAIN and some VICBIT, with no obvious pattern.

#5 VICTIM flag

This flag is only set for the DRAGON, and it’s never used. It’s almost certainly a typo for VICBIT.

#31 VILLAIN flag

Generally set for living beings, although they may or may not be villainous. The portraits in the GALLERY have it as well.

Compare VICBIT.

The PLAYER has the VILLAIN flag, which leads to a few buggy messages. Try HELLO ME, for example.

#9 VOWELBIT flag
#30 WEAPONBIT flag