1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-17 14:34:25 +03:00
inform7/resources/Documentation/Examples/TheHangOfThursdays.txt

29 lines
1.3 KiB
Plaintext
Raw Normal View History

Example: *** The Hang of Thursdays
Location: The value after and the value before
RecipeLocation: The Passage Of Time
Index: Turns take a quarter day each
Description: Turns take a quarter day each, and the game rotates through the days of the week.
For: Z-Machine
2019-02-05 02:44:07 +02:00
{*}"The Hang of Thursdays"
2024-03-19 23:14:26 +02:00
2019-02-05 02:44:07 +02:00
The Stage is a room. Rule for printing the name of the stage: say "[current weekday] [current time period]" instead.
2024-03-19 23:14:26 +02:00
2019-02-05 02:44:07 +02:00
A weekday is a kind of value. The weekdays are Saturday, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday. The current weekday is a weekday that varies. The current weekday is Saturday.
2024-03-19 23:14:26 +02:00
2019-02-05 02:44:07 +02:00
A time period is a kind of value. The time periods are morning, afternoon, evening, night. The current time period is a time period that varies. The current time period is afternoon.
2024-03-19 23:14:26 +02:00
2019-02-05 02:44:07 +02:00
This is the new advance time rule:
if the current time period is less than night:
now the current time period is the time period after the current time period;
otherwise:
now the current time period is morning;
now the current weekday is the weekday after the current weekday.
Now we need to borrow from a later chapter to make these instructions apply to the passage of time:
{**}The new advance time rule is listed instead of the advance time rule in the turn sequence rules.
2024-03-19 23:14:26 +02:00
Test me with "z / z / z / z / z".
2024-03-19 23:14:26 +02:00