Chapter 4 - The Plot
Section 1 - Accounting for Time
To decide whether we are dead:
(- (deadflag > 0) -);
Waiting more is an action applying to one number. Waiting more is useless action.
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
begin;
if the creature is dying or we are dead, do nothing;
otherwise follow the turn sequence rules;
end repeat.
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. Hanging around until is useless action.
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
begin;
if the creature is dying or we are dead, do nothing;
otherwise follow the turn sequence rules;
end while.
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.