Ciao Annsi,
I have a question about liquids. I've noticed that in lib_classes.i their header is thus declared:
CONTAINER
HEADER "In" SAY THE THIS. "you see"
ELSE "There is nothing in" SAY THE THIS. "."
But I also noticed that neither room descriptions nor examining a liquid ever gets the HEADER text printed. I.e., although liquids are not OPAQUE CONTAINERS, it seems you can't get a list of whatever is inside them.
The verbs examine and look_in, implemented on the liquid class don't seem to refer to the liquid's HEADER either:
VERB examine
DOES ONLY
IF vessel OF THIS <> null_vessel
THEN
IF vessel OF THIS IS open
THEN "You notice nothing unusual about" SAY THE THIS.
ELSE "You can't, since" SAY THE vessel OF THIS.
IF THIS IS NOT plural
THEN "is"
ELSE "are"
END IF.
"closed."
-- Here we prohibit the player from examining
-- a liquid when the liquid is in a closed container.
END IF.
ELSE "You notice nothing unusual about" SAY THE THIS. "."
END IF.
END VERB examine.
VERB look_in
DOES ONLY
IF vessel OF THIS <> null_vessel
THEN
IF vessel OF THIS IS open
THEN "You see nothing special in" SAY THE THIS. "."
ELSE "You can't, since" SAY THE vessel OF THIS.
IF THIS IS NOT plural
THEN "is"
ELSE "are"
END IF.
"closed."
-- Here we prohibit the player from looking into
-- a liquid when the liquid is in a closed container.
END IF.
ELSE "You see nothing special in" SAY THE THIS. "."
END IF.
END VERB look_in.
Why liquids with a null_vessel or an open vessel just say "You see nothing special in..."? Wouldn't a DESCRIBE or LIST statement be useful there?
I was thinking of a lake or swimming pool in which the player can throw object, and other actor can enter and swim, etc. How would descriptions and examination show the lake/pool contents?
Ciao Annsi,
I have a question about liquids. I've noticed that in
lib_classes.itheir header is thus declared:But I also noticed that neither room descriptions nor examining a liquid ever gets the
HEADERtext printed. I.e., although liquids are not OPAQUE CONTAINERS, it seems you can't get a list of whatever is inside them.The verbs
examineandlook_in, implemented on theliquidclass don't seem to refer to the liquid'sHEADEReither:Why liquids with a
null_vesselor an open vessel just say "You see nothing special in..."? Wouldn't aDESCRIBEorLISTstatement be useful there?I was thinking of a lake or swimming pool in which the player can throw object, and other actor can enter and swim, etc. How would descriptions and examination show the lake/pool contents?