Nine AM Appointment
Example 388
★If there's some reason the player needs to be at a specific place and time, we might want to allow him to wait a number of minutes at once.
"Nine AM Appointment"
Waiting more is an action applying to one number.
Understand "wait [a time period]" or "wait for [a time period]" or "wait for a/an [a time period]" or "wait a/an [a time period]" as waiting more.
Carry out waiting more:
let the target time be the time of day plus the time understood;
decrease the target time by one minute;
while the time of day is not the target time:
follow the turn sequence rules.
The one nuance here is that after our wait command occurs, the turn sequence rules will occur one more time. So we need to subtract one minute from the parsed time to make the turn end on the desired number of minutes.
Report waiting more:
say "It is now [time of day + 1 minute]."
And if we want to ensure that the player doesn't (accidentally or intentionally) put the interpreter through a really long loop, we could put an upper limit on his patience:
Check waiting more:
if the time understood is greater than one hour, say "You really haven't got that kind of patience." instead.
The Specialist's Office is a room. The secretary is a woman in the Office. Instead of asking the secretary about "[appointment]", say "'Hang on just five more minutes,' she says, in a distracted manner."
Understand "appointment" or "specialist" or "doctor" as "[appointment]".
At 9:45 AM: say "At [the time of day in words], secretary glances at you and gives a reassuring smile."
Test me with "ask secretary about appointment / wait five minutes / g / g / wait 61 minutes / wait for half an hour / wait for a quarter of an hour / wait for an hour".
Test me with "ask secretary about appointment / wait five minutes / g / g / wait 61 minutes / wait for half an hour / wait for a quarter of an hour / wait for an hour".
Specialist's Office
You can see a secretary here.
>(Testing.)
>[1] ask secretary about appointment
"Hang on just five more minutes," she says, in a distracted manner.
>[2] wait five minutes
It is now 9:06 am.
>[3] g
It is now 9:11 am.
>[4] g
It is now 9:16 am.
>[5] wait 61 minutes
You really haven't got that kind of patience.
>[6] wait for half an hour
At quarter to ten, secretary glances at you and gives a reassuring smile.
It is now 9:47 am.
>[7] wait for a quarter of an hour
It is now 10:02 am.
>[8] wait for an hour
It is now 11:02 am.
You can see a secretary here.
>(Testing.)
>[1] ask secretary about appointment
"Hang on just five more minutes," she says, in a distracted manner.
>[2] wait five minutes
It is now 9:06 am.
>[3] g
It is now 9:11 am.
>[4] g
It is now 9:16 am.
>[5] wait 61 minutes
You really haven't got that kind of patience.
>[6] wait for half an hour
At quarter to ten, secretary glances at you and gives a reassuring smile.
It is now 9:47 am.
>[7] wait for a quarter of an hour
It is now 10:02 am.
>[8] wait for an hour
It is now 11:02 am.