(set:$lighton to 0)
(set:$haskey to 0)
You are in a room, it is dark.
[[Feel along the floor -> Cushion]]
[[Feel along the wall -> see]](if:$haskey is 1)[You have a key and insert the key into the door.
[[Turn the handle and open the door ->opendoor]]
[[end the game -> end]] ]
(if:$haskey is 0)[The door is locked. You need to find a key.
[[return to the start -> locked]]
[[search for the key -> Cushion]]](if: $hasKey is 1)[[It looks like the key will open the door.->opendoor]]
[[You do not have a key -> see]]As you feel along the wall you find a switch.
[[Would you like to flick the switch? -> turnon]]
[[Feel along the floor -> Cushion]] You are in a long passageway leading to a table with a cup, a jug, a cake, and a basball bat.
[[walk to the table->table]]
[[Look for something else to do -> search]](if: $lighton is 1)[You can see a cushion
[[lift the Cushion -> getkey]]
[[Leave the Cushion -> end]] ]
(if: $lighton is 0)[You flounder around in the dark and cannot seem to find anything.
[[turn on the light -> see]]
[[leave -> end]] ]The room is dark and you need to see what you are doing.
[[turn on the light (set:$lighton to 1) -> Cushion]]
[[leave the light off -> end]] You lift the cushion and find a key (set:$haskey to 1)
You can now see and have the key.
[[open the door -> open]]
[[end the game -> end]]Thankyou for playingDouble-click this passage to edit it.Double-click this passage to edit it.