Escapade!An interactive fiction by Juhana Leinonen (2008) - the Inform 7 source text | |
Home page Contents Previous Next Complete text | Part Flashlight / Searchlight
[i.e. the glass with tin foil and light bulb inside] ["To decide whether the glass is a flashlight" doesn't seem to work - a bug in I7?] To decide whether the glass is flashlight: if the tin foil is in the glass and the light bulb is in the tin foil: decide yes; if the glass is in the tin foil and the light bulb is in the glass: decide yes; decide no. To decide whether the glass is not flashlight: if the glass is flashlight: decide no; decide yes. To decide whether the glass is searchlight: if the photograph is intact: decide no; if the glass is flashlight and the photograph is enclosed by the drinking glass: decide yes; decide no. To decide whether the glass is not searchlight: if the glass is searchlight: decide no; decide yes. [the following rules take care that the glass or tin foil is listed as "flashlight/searchlight" and that it doesn't list the contents.] Rule for printing the name of the glass when the glass is flashlight and the glass is not searchlight: say "makeshift flashlight"; omit contents in listing. Understand "flashlight/torch" and "makeshift" as the glass when the glass is flashlight. Should the game choose when comparing the glass against the tin foil: it is a good choice. Rule for printing the name of the glass when the glass is searchlight: say "makeshift searchlight"; omit contents in listing. Understand "searchlight" and "makeshift" as the glass when the glass is searchlight. After inserting the light bulb into the drinking glass: if the glass is in the tin foil: say "You put the light bulb inside the glass and the tin foil concentrates and reflects the light into a bright beam of light." instead; otherwise: say "The lamp fits nicely inside the drinking glass. The glass bends and reflects the light, creating beautiful patterns of light and shadow on the cell walls. The top of the glass throws a weak beam of light on the ceiling." instead. After inserting the light bulb into the tin foil: if the tin foil is in the glass: say "You put the light bulb inside the glass and the tin foil concentrates and reflects the light into a bright beam of light." instead; otherwise: say "You put the light bulb inside the tin foil. The foil reflects the light into curious patterns but the foil is too floppy and shapeless to form anything useful." instead. After inserting the tin foil into the drinking glass: if the light bulb is in the tin foil: say "You put the tin foil with the light bulb inside into the glass and straighten the foil against the glass walls. The foil concentrates the light into a bright beam of light."; otherwise: say "You put the tin foil into the glass and straighten it against the glass walls."; stop the action. After inserting the drinking glass into the tin foil: if the light bulb is in the drinking glass: say "You put the drinking glass with the light bulb inside into the tin foil and straighten it against the glass walls. The foil concentrates the light into a bright beam of light."; otherwise: say "You put the glass inside the tin foil and straighten it against the glass walls."; stop the action. Instead of inserting the photograph into the glass when the glass is flashlight: make a searchlight. Instead of inserting the photograph into the tin foil when the glass is flashlight: make a searchlight. Instead of putting the photograph on the tin foil when the glass is flashlight: make a searchlight. Instead of putting the photograph on the glass when the glass is flashlight: make a searchlight. Instead of putting the photograph on the light bulb when the glass is flashlight: make a searchlight. To make a searchlight: if the photograph is intact: say "You put the photograph on top of the glass. It blocks the light from the light bulb completely, so you take it off again."; otherwise: say "You put Captain McBrawn's silhouette on top of the drinking glass.[paragraph break]"; if the glass is on the window: do the final escape; otherwise: say "The beam of light emitting from the drinking glass casts a shadow on the wall shaped like the Captain.[if the creature is present][one of][line break][c]Nananananananana CAP-TAAIN!' [the creature] sings.[or][stopping]"; now the photograph is in the drinking glass. [this overrides the carrying capacity] Pointing the glass at the window is captain-calling. Pointing the glass at the clouds is captain-calling. [Pointing the tin foil at the window is captain-calling. Pointing the foil at the clouds is captain-calling. ] [for some reason that is beyond my comprehension the previous two sentences refuse to compile.] Pointing the light bulb at the window is captain-calling. Pointing the light bulb at the clouds is captain-calling. Putting the glass on the window is captain-calling. Instead of captain-calling when the glass is searchlight: do the final escape. Instead of pointing the tin foil at the window when the glass is searchlight: do the final escape. Instead of pointing the tin foil at the clouds when the glass is searchlight: do the final escape. Instead of captain-calling when the glass is flashlight: say "You point the makeshift flashlight at the dark clouds in the sky. A round patch of light appears on it - the light is stronger than you imagined it would be. It looks the same as any other Screaming Communists['] searchlights and nothing particular happens so you stop playing with it after a while." Instead of pointing the tin foil at the window when the glass is flashlight: try pointing the glass at the window. Instead of pointing the tin foil at the clouds when the glass is flashlight: try pointing the glass at the window. |