I need help to make a simple, 24-hour clock. Here's how I want it to work:
At the bottom of the screen, it will say menu. When you go to the menu (StoryMenu), the time will be displayed at the top of the screen. I'd prefer this to be done by variables, as I think it would be easier then to add how much time doing certain actions would do, as I'd to make doing certain things take up different amount of times, I.E. Walking down to the mailbox would take 5 minutes, while going down to the post office would take 15 minutes.
I figured this should only take 3 variables at minimum, "Hour", "Minute", and "PM/AM'
So, I want it be able to the following:
-When the minutes get to 60, it will subtract 60 from minutes and add '1' to the hour variable.
-When the hour variable gets to 13, it will display it in the menu as 1, display 14 as 2, etc. (in other words, I want it to be in army time in the variables, but display as regular time in the passages.)
-When the hour is at anywhere from 13-23,0, it will change the variable "AM" to "PM", and when it's anywhere from 1-12, it will change back to AM (This is probably the easiest part)
Also, I'd like that all this would be automated using a Special Passage to check and update them so that I wouldn't need to check and update them at the top of every single passage, so that way the only thing I'd be putting at the top of the passage is how many hours/minutes to add. I don't know if this is even possible though, and while it would be a minor inconvenience, it's not the most important thing for it to be automated.
There would also be a "Day" variable, which would be updated when the time has the hour being '0', where it will take you to a passage letting you know it's the next day, and then you'll be able to pick if your character would go to bed and wake up again at 9:00AM (Every day starts at 9AM) or continue through the night, skipping some rest but allowing access to certain night-only events.
My game is only going to span over one month, so no other variables like month or year would be needed.
So, can anyone help me and tell me how to do this?