Scenario - John is taking a shower in the morning and he needs Yoko to get the towel from the bedroom asap. A map of the house opens up. Say there are 5 locations- Bedroom, Kitchen, Garage, Living room, Bathroom.
If Yoko goes to bedroom, clicks on the towels and comes back to bathroom, the quest is passed (label towel_quest_done). But if she clicks on another room, say- living room and watches TV, time will advance from morning to afternoon and the quest will fail (label towel_quest_failed).
I do realize I can create variables for quest_started, towel_found, towel_delivered, etc. But what I really want to know is how to make Ren'Py remember that the quest was initiated at day_time = "morning" and if the player does not deliver the towel in the same time period, it will fail. If it was initiated at evening, it will fail if the time advances to night.
Code: Select all
label towel_quest:
john "Hey, can you get me a towel from the bedroom?"
yoko "Sure!"
jump house_map
label bedroom_towel:
yoko "Alright, I am here. Now, where is that towel?"
jump bedroom_layout #if she clicks on the right imagebutton, it will jump to label towel_found
label towel_found:
yoko "Aah! There it is..."
jump house_map
label towel_quest_done:
yoko "There you go!"
john "Thank you!"
label towel_quest_failed:
yoko "Aargh! I got distracted...I am so sorry!"
john "You know what, I just used your towel."
yoko "Eeeeww, noooooooo!"