Escapade!

An interactive fiction by Juhana Leinonen (2008) - the Inform 7 source text

Home page

Contents
Previous
Next

Complete text
Part Rug

The rug is a thing in the cell. It is middle, hidden in dim light and bulky. The description is "The rug has bright stripes in all the colors of a neon rainbow."

The creature response of the rug is "'Nice rug,' you comment.[paragraph break]'Oh you poor thing,' [the creature] says. 'You're color-blind as well!'"

The guard response of the rug is "'How nice that you found the time to decorate the cell with a rug,' you compliment the guard.[paragraph break]'WELL it does LOOK LIKE something a DOG HAS VOMITED, so this should be a GOOD PLACE FOR IT,' he replies."

Understand "simple" and "carpet" and "mat" as the rug.
Understand "stripe/stripes" as the rug.


Before listing nondescript items:
    if the rug is marked for listing and the trapdoor is unrevealed:
        change the rug to not marked for listing.
        


Report taking the rug:
    say "You roll the rug and lift it to your arms.";
    if the trapdoor is unrevealed:
        say "[line break]Glancing down on the floor where the rug used to be you notice a trapdoor in the floor![if the creature is present][line break][c]What a shocking revelation,' [the creature] says.";
        discover the trapdoor;
    stop the action.


Instead of pushing or pulling or looking under the rug when the trapdoor is unrevealed:
    say "As you tug the rug with your foot you see something that looks like wood under it. You pull the rug all the way out and reveal a trapdoor in the floor![if the creature is present][line break][c]What a shocking revelation,' [the creature] says.";
    discover the trapdoor.

To discover the trapdoor:
    now the trapdoor is revealed;
    [the sticker must be added now, or the player will be able to interact with it before the trapdoor is revealed.]
    now the sticker is part of the trapdoor.
    

Before giving the rug to the creature when the trapdoor is unrevealed:
    try taking the rug;
    continue the action.