Hello everyone.
I have here a 3 part (eventually 4 part) common event system that gives your game a sense of time! Ever wanted your games to turn from night to day as if by the flow of time? How about having your character look at a clock and see what the current time is in your imaginary world? Have you ever wanted shops to open and close at specific times, maybe even be closed all day during the weekend or because it is a holiday? Or even have NPCs lock their doors at night because the live in a shady part of town! Well with this Time Event system you can do just that! Don't just make the player think time passed, actually make it pass when you fade out the screen.
Art Credit: Dr. Mc -- Vianoce portrait
Eventually I'll be adding a calender system.
Edit: The calender system is done. I am not going to add the screen shots for this one because it is kinda long and I am feeling lazy.
Instructions:At the start of your game you will want to set the time you want it to be when your game begins and turn on the clock when you want time to start flowing. It'll look something like this.
And when ever your character is outside you will need to turn on the N&Dsystem switch and turn it off once once they go inside. You will also have to make sure every interior map has an event that sets the appropriate screen tone.
This system uses 6 switches and 10 variables and takes up 4 common events.
Switches:1. Clock
2. N&Dsystem
3. Dawn
4. Day
5. Dusk
6. Night
Variables:1. Secs
2. Mins
3. Hours
4. Days
5. Weeks
6. Years
7. FixTime
8. DaysofWeek
9. DaysofMonth
10. MonthText
Bugs:1. There seems to be a bug when changing the time too rapidly. When this happens the FixTime variable will fail to be corrected. and the clock display will read in a 24 hour format instead of 12 hours. I am not sure why this happens because the FixTime variable is controlled by a separate event than the one that controls time. I have tried calling the variable in a msgbox to debug it but I get an error saying Octal digit error... whatever that means. This seems to be the only variable that does this.
2. When the time is midnight the clock reads 12pm instead of 12am... This should be an easy fix, but if too many people have a problem figuring out how to do it then I will update the demo.
Demo: My first demo!
Time SystemFirst up: is the TimeSystem:
Note: I like to make my common events look like scripts for aesthetics.
Next up: The N&Dsystem
And then:]/color] ShowTime
Note: I use a script for a naming box that uses \n{" "} in show text boxes. You will have to edit that out unless you happen to use the same script. This script is not part of the demo.
This event must be called from map events from objects such as clocks, or if you just want the time to be displayed.