Extended Timers
version 2 by Gavin Lambert
Section 2 - Inform 7
Use one-based turn reporting translates as (- Constant TURN_REPORTING_ONE_BASED; -).
To say (interval - time) as a duration:
(- print (PrintTimeIntervalEnglish) {interval}; -).
To decide which number is the total number of minutes in (interval - a time):
(- {interval} -).
To decide which number is the interval between (T1 - time) and (T2 - time):
(- ({T2} - {T1}) -).
To decide which number is the number of turns until (R - a rule):
(- GetI7TimerTurns({R}) -).
To decide what time is the time when (R - a rule):
(- GetI7TimerTime({R}) -).
To decide what time is the time until (R - a rule):
(- GetI7TimerInterval({R}) -).
To decide if scheduled (R - a rule):
let turns be the number of turns until R;
if turns is less than zero, no;
yes.
To decide if (when - time) is invalid:
(- ({when} < 0) -).
Extended Timers ends here.