Escapade!An interactive fiction by Juhana Leinonen (2008) - the Inform 7 source text | |
Home page Contents Previous Next Complete text | Part Drinking glass
[There seems to be some problem with the name of this object - namely, calling it "drinking glass" in the code sometimes produces errors where just "glass" works fine. I suspect this is because "drinking" is already the name of an action which messes I7 up.] The drinking glass is a container in the encyclopedia. The carrying capacity is 1. Before drinking the drinking glass: if something is in the drinking glass: let the contents be a random thing in the drinking glass; say "([the contents])[command clarification break]"; try drinking the contents; otherwise: say "There's nothing in the glass to drink."; stop the action. |