Part 3 - The Plot
Chapter 1 - Waking Up
Discovery is a scene.
Discovery begins when the player is in the Laundry Room for the first time.
When Discovery begins:
now the time of day is 10:00 AM;
AutoLock is a recurring scene.
AutoLock begins when the indicator of the cellphone is not 0.
AutoLock ends when indicator of the cellphone is 0.
When AutoLock begins:
if the player can see the cellphone, say "The phone's screen springs to life, emitting a bright and slightly blueish glow.";
now the cellphone is lit.
When AutoLock ends:
if the player can see the cellphone, say "The phone's screen shuts off.";
now the cellphone runs lock screen;
now the software priority of lock screen is 1;
now the cellphone is unlit;
now the indicator of the cellphone is 0.
Every turn during AutoLock:
if the location is dark and the player can see the cellphone, say "Although [the location] is quite dark, you can just make out your surroundings by the light of your trusty cellphone.";
Now the indicator of the cellphone is the indicator of the cellphone minus one.