Escapade!An interactive fiction by Juhana Leinonen (2008) - the Inform 7 source text | |
Home page Contents Previous Next Complete text | Part Emptying
Emptying is an action applying to one thing. Understand "empty [something]" as emptying. Should the game choose emptying a container: it is an excellent choice. Should the game choose emptying a supporter: it is an excellent choice. Check emptying: if the number of things in the noun is 0: say "There's nothing to empty in [the noun]." instead; if the noun is in a container (called the bucket): try emptying the bucket instead; if the noun is on a supporter (called the surface): try emptying the surface instead. Carry out emptying: say "You remove [the list of things in the noun] from [the noun]."; repeat with x running through the list of things in the noun: silently try taking x. |