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
Chapter 10 - The Plot

Section 1 - Accounting for Time

To decide whether we are dead:
    (- (deadflag > 0) -);

Waiting more is an action applying to one number.

Understand "wait [number] minutes/turns" or "wait for [number] minutes/turns" or "wait [number]" as waiting more.

Carry out waiting more:
    let duration be the number understood - 1;
    repeat with X running from 1 to duration:
        if the creature is dying or we are dead, do nothing;
        otherwise follow the turn sequence rules.
    
Report waiting more:
    if we are dead, do nothing;
    otherwise say "It is now [time of day + 1 minute]."

Check waiting more:
    if the number understood > 59, say "You really haven't got that kind of patience." instead.

Hanging around until is an action applying to one time.

Check hanging around until:
    if the time of day is the time understood, say "It is [time understood] now!" instead;
    if the time of day is after the time understood, say "It is too late for that now." instead.

Carry out hanging around until:
    while the time of day is before time understood:
        if the creature is dying or we are dead, do nothing;
        otherwise follow the turn sequence rules.

Report hanging around until:
    if we are dead, do nothing;
    otherwise say "You yawn until [time understood]."

Understand "wait until [time]" as hanging around until.