Escapade!

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

Home page

Contents
Previous
Next

Complete text
Chapter Unlocking the door when the toilet hole is attached to it


Instead of unbolting or opening the celldoor when the toilet hole is part of the celldoor:
    if the guard is in the cell:
        say "Better not do that now when the guard is right on the other side.";
    otherwise:
        say "[one of]You reach through the toilet hole and reach for the keyhole on the other side. You are delighted to find the key in the lock![or]You reach for the key again.[stopping][line break]";
        if the electrical wire is boobytrapping the door:
            say "As you touch the key, the electrical wire attached to the keyhole gives you a good zap. You quickly pull your hand away.[if the creature is present][one of][line break][question intelligence] [the creature] says.[or][stopping]";
        otherwise:
            say "The key turns easily and you open the door very very carefully. You sneak into the corridor and close the door again.";
            pause the cutscene;
            say "The guard stands behind the door with his arms crossed.[paragraph break]'Do you REALLY THINK I wouldn't NOTICE A HAND REACHING THROUGH THE DOOR?' he roars.[paragraph break]'Well I kinda assumed so,' you say.[paragraph break]He squints his eyes and takes a step forward. You open the door again, step inside and close the door.[paragraph break]The guard grabs the hole and pulls it off. 'NO MORE TRICKS!' he yells.[silent c]";
            remove the toilet hole from play;
            remove the doorkey from play;
            mark the escape down as "unlocking the door through the hole".