Skip to content

Instantly share code, notes, and snippets.

@jamesu
Created November 29, 2009 12:10
Show Gist options
  • Save jamesu/244889 to your computer and use it in GitHub Desktop.
Save jamesu/244889 to your computer and use it in GitHub Desktop.
"Dreadful Test" by James Urquhart
[Compile with Inform 7]
Chapter 1 - The Observatory
The Observatory is a room. "Outside a large rundown observatory. It is raining.".
Wetness is a kind of value. Wetness is dry, wet. Player has Wetness. Rooms have wetness. They are usually dry. The observatory is wet.
Fred is in the observatory. He holds an umbrella. The description of the umbrella is "A nice and shiny umbrella with a screw cap on the handle".
Fred is wearing a hat. Fred is a person. "A tall, dark mysterious figure[if fred wears hat] wearing a hat[end if] stands ominously." Understand "figure" as Fred.
The Shed is a room. The shed door is a door. It is south of the observatory and north of the shed. It is locked. The umbrella is openable. It is closed. It contains the gold key. The gold key unlocks the shed door.
Instead of answering the Fred that something:
if the umbrella is held by Fred:
say "The figure looms over and says 'Here, take this umbrella.'";
move umbrella to player;
otherwise:
say "The figure nods in acknowledgement.";
Every turn:
if the umbrella is not carried by the player and the player is in a wet room, now the player is wet; else now the player is dry;
If the player is wet, say "You are wet"; else say "You are dry[if player carries umbrella] under the umbrella".
When play begins:
now the player is wet.
Chapter 2 - The Shed
The description of the shed is "A small, cramped shed full of garden tools".
After going to the shed:
say "In the pitch black confines of the shed, you inadvertently step onto a lawn rake whose solid handle sends you hurtling back into the rather poorly constructed shelving full of garden tools, which promptly collapses on top of your head.";
say "You are most certainly dead.";
end the game in death.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment