When in Rome 2: Far from Home

An interactive fiction by Emily Short (2006) - the Inform 7 source text

Home page

Contents
Previous
Next

Complete text
Section 2 - The Label

Understand "write on/out [text]" as a mistake ("You need to write the name of a home-world -- for instance, WRITE LUNA ON..."). Understand "fill out/in [text]" as a mistake ("You need to write the name of a home-world -- for instance, WRITE LUNA ON THE LABEL.").

Understand "write [moon] on [something]" as filling it out on.

Filling it out on is an action applying to one moon and one thing.

Setting action variables for filling:
    if the second noun is the egg and the blank label is stuck to egg:
        change the second noun to blank label;
    if the second noun is the egg and the filled label is stuck to egg:
        change the second noun to filled label.

Check filling it out on:
    if the second noun is not the blank label and the second noun is not the filled label, say "You can't fill out [the second noun], only the label." instead.

Check filling it out on:
    if the player is not carrying the ballpoint:
        if the ballpoint is visible, try taking the ballpoint;
        otherwise say "Now where did you set down your pen, anyway?" instead;
        if the player is not carrying the ballpoint, stop the action;
    
Check filling it out on:
    if the second noun is the blank label, fix blank label.

To fix blank label:
    if the blank label is part of something (called the parent):
        now the filled label is part of the parent;
    otherwise:
        move the filled label to the holder of the blank label;
    if the blank label is stuck to the egg:
        now the filled label is stuck to the egg;
        now the blank label is not stuck to the egg;
    remove the blank label from play;
    change the second noun to the filled label.

Check filling it out on:
    if the second noun is the filled label:
        say "First you cross out ";
        if filled label is alien-marked, say "[fixed letter spacing][tattoo-mark of the moon of the creature][variable letter spacing]";
        otherwise say "[moon of filled label]";
        say " vigorously with many strokes of the pen..."
    
Carry out filling it out on:
    now the second noun is human-marked;
    change moon of the second noun to the moon understood.
    
Report filling it out on:
    say "You write [moon understood] firmly on the label."
    
    
Before a creature trying filling moon understood out on the blank label when the person asked is not carrying the pen:
    try the person asked trying taking the pen instead.
    
Before a creature trying filling moon understood out on the blank label when the person asked cannot touch the blank label:
    try the person asked trying taking the blank label instead.
    
Carry out someone trying filling the moon of the creature out on the blank label:
    fix blank label;
    now the filled label is alien-marked;
    change moon of the second noun to the moon of the creature.
    
Report a creature trying filling the moon of the creature out on something:
    let destination be the moon of the creature;
    choose row with a moon column of destination in Table of Alien Characteristics;
    say "Tongue caught between its teeth, [the creature] writes [fixed letter spacing][tattoo-mark entry][variable letter spacing] on [the second noun]."
    
The description of the filled label is "[if human-marked]In your familiar handwriting it registers the origin of the creature as [moon of the filled label][otherwise]In alien writing it says [fixed letter spacing][tattoo-mark of the moon of the creature][variable letter spacing][end if]." The filled label can be alien-marked or human-marked.

The description of the blank label is "Intended to identify the alien to whatever interplanetary post office is responsible for these shipments."