Escapade!

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

Home page

Contents
Previous
Next

Complete text
Part Encyclopedia

The encyclopedia is a closed, openable container. It is useful. The carrying capacity is 2. The printed name is "dusty old book". It can be book-form or container-form. It is book-form. The description is "It says [italic type]'ENCYCLOPÆDIA ESCAPÆDIA: The Definite Guide to Getting Out of All Kinds of Trouble'[roman type] in large block letters on the cover.".

Understand "book" and "cover/covers" and "dusty" and "old" and "encyclopaedia/encyclopædia" and "guide" and "escapadia/escapaedia/escapædia" and "box" as the encyclopedia.

The printing of the encyclopedia is "There's only one readable passage.

[printing of the article]";

After examining the book-form encyclopedia:
    change the printed name of the encyclopedia to "encyclopedia".

Instead of reading the book-form encyclopedia:
    if the printed name of the encyclopedia is not "encyclopedia":
        try examining the encyclopedia;
    try opening the encyclopedia.

After opening the book-form encyclopedia:
    if the printed name of the encyclopedia is not "encyclopedia":
        try examining the encyclopedia;
    say "Instead of finding pages full of useful information you find that all the pages apart from one have been glued together and the book has been carved hollow to create a secret compartment inside. In the compartment there's a drinking glass and a small bottle of brown liquid.";
    now the encyclopedia is container-form;
    now the encyclopedia is not useful;
    now the description of the encyclopedia is "It's an ENCYCLOPÆDIA ESCAPÆDIA shaped box with barely any of the articles left to read.[if something is in the encyclopedia and the encyclopedia is open] There's [a list of things in the encyclopedia] inside.[otherwise if the encyclopedia is closed] It's closed.[end if]";
    stop the action.
    
Before reading the container-form encyclopedia when the encyclopedia is closed:
    say "(first opening [the encyclopedia])[command clarification break]";
    silently try opening the encyclopedia;
    continue the action.

Test encyclopedia with "test screws/trade skindude".