Date system
Ok people in the guide will we be looking into a date system to give your game that real-time feeling. Once again it uses the standard wait and fork condition but you are going to need my Day/night system added in your game Ive supplied an updated version with this guide:
DAY
In common events name one of the events Day make the event start condition parallel process and appear in event day. Then make the events commands wait 60.0s and a variable that is called day (again) and make it + 1 do this by click on the + sign and make the set 1. Then make a fork condition then make it set as variable Day then at the set button set it to 7000 and make it above. Next set the screen tone as R070, G090, B070, S090 (Or whatever you want) you make a message here if you want but only if you want. Now go to change variable and set day to 0 then turn day switch off and evening switch on. Ok if you didnt get that this is what the screen should look like:
<>Wait 60.0s
<>Variable Ch: [0001: Day] + , 1
<>Fork optn: [0001: Day]-6over
<>Set screen tone: (R070, G090, B070, S090),1.0sec(W)
<>Variable Ch: [0001: Day] Set, 0
<>Change switch [0019: Day] off
<>Change switch [0020: Evening] on
<>
: Excepting Case
<>
: End Case
EVENING
Now start on another event still in common events and make it a parallel process again and make work in event evening now copy the stuff from the last page and paste it on to this page. Now change the first variable event to evening variable but still doing the same thing. The screen tone to R000,G050,B070,S080. The next variables change that to the evening variable and still do it the same thing. Now change the first switch to evening off and the second one to night on. Once again this is what it should look like:
<>Wait 60.0s
<>Variable Ch: [0002: Evening] + , 1
<>Fork optn: [0002: Evening]-4over
<>Set screen tone: (R000, G050, B070, S080),1.0sec(W)
<>Variable Ch: [0002: Evening] Set, 0
<>Change switch [0020: Evening] off
<>Change switch [0021: night] on
<>
: Excepting Case
<>
: End Case
NIGHT
There aint much point to explain like above so Ill just show what is should look like. Remember to set in a parallel process and in switch night
<> Wait 60.0
<>Variable Ch: [0003; Night] + , 1
<>Fork optn: [0003: Night]-8over
<>Set screen tone: (R070, G080, B080, S090),1.0sec(W)
<>Variable Ch: [0003: Night] Set, 0
<>Change switch [0021: Night] off
<>Change switch [0022: morning] on
<>
: Excepting Case
<>
: End Case
MORNING
You now should know what your doing with the events but this is what it should look like
<>Wait 60.0s
<>Variable Ch: [0004: Morning] + , 1
<>Fork optn: [0004: Morning]-6over
<>Set screen tone: (R100, G100, B100, S100),1.0sec(W)
<>Variable Ch: [0004: Morning] Set, 0
<>Change switch [0023: Morning] off
<>Change switch [0020: Day] on
<>
: Excepting Case
<>
: End Case
There you have it all you have to do is in your o9pening event put the switch Day on or what time you want your game to start. The Day night guide has been change so that it gives a scale of 1 min in real time is 1 hour in game time the scale is the same as my clock system. Also people please make sure you add this to the night event a variable that add 1 to variable days the night section should now look like this:
NIGHT
There aint much point to explain like above so Ill just show what is should look like. Remember to set in a parallel process and in switch night
<> Wait 60.0
<>Variable Ch: [0003; Night] + , 1
<>Fork optn: [0003: Night]-8over
<>Set screen tone: (R070, G080, B080, S090),1.0sec(W)
<>Variable Ch: [0003: Night] Set, 0
<>Variable Ch: [0023: Days] +, 1
<>Change switch [0021: Night] off
<>Change switch [0022: morning] on
<>
: Excepting Case
<>
: End Case
This now means that the game has a way of adding the date information. Now find a empty slot in your common events and call it Jan make this a parallel progress and make it work in a switch called Jan days. In the event commands you need to add a fork condition for variable 0023:Days and set to 32 above just trust me on the 32 ok. You now need a to set the variable 23 back to 1 and then add a variable 0024:Month and add 1 to it. You can add a message here like " The month is February \v[21]" (variable 21 will be used later on) the reason I have said February is because it will be moving on to the month of February shortly. Finally you need to turn off switch Jan days and turn on switch Feb days this is what the event should look like:
<>Fork optn: [0023: Days]-32over
<>Variable Ch: [0023: Days] Set, 1
<>Variable Ch: [0024: Month] +, 1
<>Messg:The month is February \v[21]
<>Change Switch: [0028:jan days]-OFF Set
<>Change Switch: [0029:feb days]-ON Set
<>
:END Case
<>
That it for January Ill go though a few more months with you guys.
February is just the same but different switches are used and days. Use another slot in common events and once again parallel progress and starts in switch Feb days and make events commands similar to the last one by having a fork condition but this time set it 29 days but still set to above. You need the same switches here as before, which are 23:Days set to 1 and 24:Months plus 1. If you want you can add that a message again but this time it will be "The month is March \v[21]". Now all you have to add is turn switch Feb off and turn switch Mar on once again check if yours looks like the one below:
<>Fork optn: [0023: Days]-29over
<>Variable Ch: [0023: Days] Set, 1
<>Variable Ch: [0024: Month] +, 1
<>Messg:The month is March \v[21]
<>Change Switch: [0029:feb days]-OFF Set
<>Change Switch: [0030:mar days]-ON Set
<>
:END Case
<>
You should be getting the hang of this by now will just do one more than yes.
March in the next slot call it March and again in parallel progress and make it work in switch mar days this time the fork condition should be set to 32 again and once again 23:Days set to 1 and 24:Month plus 1. Then a message if you want one "The month is April \v[21]". Then add the switch to do this mar days off and April days on. The code should look like this:
<>Fork optn: [0023: Days]-32over
<>Variable Ch: [0023: Days] Set, 1
<>Variable Ch: [0024: Month] +, 1
<>Messg:The month is March \v[21]
<>Change Switch: [0028:mar days]-OFF Set
<>Change Switch: [0029:april days]-ON Set
<>
:END Case
<>
You should know how this work now just follow these rules:
The only month that will be different will be December this month will look like this:
<>Fork optn: [0023: Days]-32over
<>Variable Ch: [0023: Days] Set, 1
<>Variable Ch: [0024: Month] +, 1
<>Variable Ch: [0021: Years] +, 1
<>Messg:The month is December \v[21]
<>Change Switch: [0028:dec days]-OFF Set
<>Change Switch: [0029:jan days]-ON Set
<>
:END Case
<>
That is where the variable 21 comes into play from all those messages you added.
But now your thinking Ive done all this coding for what to tell the gamier that the month has change well not if you add this Data stone in your game. Find another empty slot in the common events and call it Date stone make it a parallel progress and make it start in switch Date. Now inside the events commands add a message that says " The Date is \v[23] - \v[24] - \v[21]" this will say the day, month and year in number form e.g. "The Date is 3-4-2001" after this add a thing to turn off the switch date. You may now be thinking how do I access this event well if you have read my magical item guide you wont but if you havent here is how. Go to the items tabs and find a empty slot and called it Date stone have the classification set to switch and the number of times it can be used to limitless. The explanation can be like this "See what the date is" and finally set the ON Switch to Date and that it.
Now all you have to do is add this to your intro:
Add/Remove Item.Date stone-> 1Incr
Change Switch:[0030:mar days] ON
Change Switch:[0003:day] ON
Variable Ch:[0021:year] set, 2001
Variable Ch:[0023:month] set,3
And that should do remember you dont have to call the months the same as are own you can make them up and the number of days there are in that month also there is no leap year in this system maybe one day I will but maybe I wont. Anyway if you have any probs go to my web site
www.gimpmaster.homestead.com and use the message board or download stuff it up to you or just e-mail me @ gimpinmaster@hotmail.com Ill try and answer all your probs or you can download my game Dark MIST and do a copy and paste jobby. Any way good luck please put me in your credits if you use this system and send me a copy of your game. Look out for my next guide random weather. This just leave me to say you know the rules!!!!