Hey all. So I have a structure where the game lasts seven days. I have many actions in mind that if the player does them once, there’s a positive result, but if they do it too many times in one day, there are negative consequences. If they wait until the next day to continue, they get the positive result again.
Here’s how I’ve got my days set up at the moment:
A weekday is a kind of value. The weekdays are Saturday, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, You Did It. The current weekday is a weekday that varies. The current weekday is Saturday.
When play begins:
the calendar tumbles at 12:00 am.
At the time when the calendar tumbles:
say "It's a new day!";
now the current weekday is the weekday after the current weekday;
we need to enqueue the timed event in 30 minutes from now.
At the time when we need to enqueue the timed event:
the calendar tumbles at 12:00 am.
And here’s an example of the type of action I’m talking about:
Instead of switching on the TV when the player has the remote control for the first time:
now the TV is switched on;
say "You lose yourself for a blissful hour of pure entertainment, and turn off the TV again to mull it all over.";
increase the mood of the player by 20;
now the TV is switched off;
increase the time of day by 60 minutes.
Instead of switching on the TV when the player has the remote control for the second time:
say "You find something tolerable and watch that for a while, then turn the TV off.";
increase the mood of the player by 10;
increase the time of day by 60 minutes.
Instead of switching on the TV when the player has the remote control for the third time:
say "Your eyes are starting to go square.";
increase the time of day by 60 minutes.
Instead of switching on the TV when the player has the remote control for the fourth time:
say "You're beginning to question your life goals.";
decrease the mood of the player by 5;
increase the time of day by 60 minutes.
Instead of switching on the TV when the player has the remote control more than four times:
say "Is this what you wanted to be when you grew up?";
decrease the mood of the player by 20;
increase the time of day by 60 minutes.
I’m not sure how to ALSO check “if this is the first time today”, or otherwise tell it to treat the TV-watching like it’s the first time once midnight passes.
Thanks for any help!