Thanks for your help...E-l337 wrote:I want to split the planner into weekdays and weekends, so the planner would show up every monday and saturday
How do I do that?
How do I determine when monday and saturday is?Having spent the last couple of months off and on hacking the day planner and making it do what I want, I think I can help you a little.CrimsonHazel wrote:My problem is that the time period would be around 10 months and the storyline is not quite long, I originally want to make it weekly planner but won't it make the game too short? but making it daily would just make it too long....
Do you have any other recommendation?
If not, I'll go with the weekly planner
Thanks in advance
If you're talking about wanting to change the options that are available on the day planner (different options on the weekend), you'll need to declare a variable that you can change in your init. The best way is a binary system, where "weekend = 0" or "weekend = 1".
With this variable set in place, you can determine what options are available on the planner during a given planning period. So you'll have events look something like this:
This code tells the game that on Monday, 'Attend class 1' is an option, but on the weekends it would be 'Attend class 2' instead.Code: Select all
dp_period("Morning", "morning_act") dp_choice("Attend Class1", "class01", show="weekend == 0") dp_choice("Attend Class2", "class02", show="weekend == 1")
From the sounds of things, you need something slightly more dynamic, so the other option is to create two day planners. If you intend the player to select options on a daily basis (go to park on monday, attend class on tuesday, etc), that's not too difficult. You'll want to create seven (or as many as necessary) 'periods' to use as options.
You'll want to make one of those for each day of the week. From here, you just need to hack the day planner itself.Code: Select all
dp_period("Monday", "mon_act")
Just make sure that the weekend variable gets adjusted before you call the acts and day planner.Code: Select all
if weekend == 0: $ mon_act = None $ tue_act = None $ wed_act = None $ thu_act = None $ fri_act = None $ narrator("What should I do today?", interact=False) # Now, we call the day planner, which may set the act variables # to new values. We call it with a list of periods that we want # to compute the values for. call screen day_planner(["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"]) if weekend == 1: $ sat_act = None $ sun_act = None $ narrator("What should I do today?", interact=False) # Now, we call the day planner, which may set the act variables # to new values. We call it with a list of periods that we want # to compute the values for. call screen day_planner(["Saturday", "Sunday"])
It really depends on just how you're breaking apart your game.
Hope this helps.
I think I'll go with the second one. where do i declare the weekend variable and when would it change from 0 to 1?
And sorry to bother you, but could you help me with adding a calendar to it?