Adding days of the week to an event'd time system and a couple other things?

I have tried all sorts of plugins to achieve this and always run into issues later on... so I have gone back to what I tried first. Eventing the Time System, I followed a this tutorial:

It is now working very well, I can use it to make layers and events appear/disappear at certain times, and it's constantly running unless told otherwise which is perfect!

But I have some stuff I need to change/add.

I am here to find help adding days of the week to the time system.
I must have a seven day week running alongside the time system, with a display_day image. Same as the clock. With this I can have shops that only open at the weekend and events that only appear on Wednesday at 3pm etc.
I'm assuming it will be very similar to what we have here?
Either way I'd really appreciate some help as my experience with eventing this stuff is super limited.


Sidequests:
I'd also like to move the clock to the menu so it's not constantly on screen.
It would be nice to add a toggle button for the clock when outside the menu, say the player can hold T to view the clock at anytime.
While we are here I'd really appreciate feedback on if I'm using wait correctly for this event, frustratingly tutorials don't ever seem to mention that part.
You could try creating a variable so that when that variable === 1 then it's Monday, when variable === 2 then it's Tuesday, etc. And use a conditional if hour = 00 activate a switch that starts a parallel process (common event) that adds 1 to the variable that defines the day and puts that if that variable is 7 then it returns to 1.

If you want to show an image to show the name of the current day, you can also do it with a conditional so that if the variable === 1 then show an image of Monday, etc.

As for the clock that is displayed when you hold down a key, doesn't yanfly have a plugin that allows you to edit the keyboard keys at your convenience? I've never used that plugin so I can't tell you if that helps.
So there have been a number of threads about this: I'm going to disagree with the video title - that's actually not a great way to implement the system.

1 - You almost never want a parallel event running without a Wait command in it. That means the game is trying to execute that event 60 times every second, which is completely unnecessary for a system like this.

2 - You definitely don't want several of those going - that's how you make your game lag for players.

3 - From a design perspective, there's no reason to have all those separate hours events for tinting instead of putting them inside one event.

As far as adding days to it, you should be able to do that pretty easily by duplicating the logic. Have a day variable, add one to it every time you reset the hours counter, and when it goes to 8 you reset it to 1.
So there have been a number of threads about this: I'm going to disagree with the video title - that's actually not a great way to implement the system.

1 - You almost never want a parallel event running without a Wait command in it. That means the game is trying to execute that event 60 times every second, which is completely unnecessary for a system like this.

2 - You definitely don't want several of those going - that's how you make your game lag for players.

3 - From a design perspective, there's no reason to have all those separate hours events for tinting instead of putting them inside one event.

As far as adding days to it, you should be able to do that pretty easily by duplicating the logic. Have a day variable, add one to it every time you reset the hours counter, and when it goes to 8 you reset it to 1.

hey cheers for jumping in, I can't see to find any threads that give me the answers.

So I have moved all the tint events into a single event, called HOURS. seems like it's working, I'ce taken screen shots, do you or anyone see any issues here?

I add wait to everything after you told me about that in a different thread.
I am still unsure if I am doing it correctly though, it'd be really nice to see an example of what it looks like as at the moment I am just adding 150 to the end of each part of the code as you can see here.
the Time Counter is set to 600, so would the wait be 600, if so where dose it go?
I'm confused, I still see multiple events.

All you need is to increment each division; check for it to be at its maximum value and increment the next division of time, right?
Code:
◆Wait:60 frames
◆Control Variables:#0001 Minutes += 1
◆If:Minutes = 60
  ◆Control Variables:#0001 Minutes = 0
  ◆Control Variables:#0002 Hours += 1
  ◆If:Hours = 24
    ◆Control Variables:#0002 Hours = 0
    ◆
  :End
  ◆
:End

That's a day.

You wanted to add days to that, so you just follow the exact same logical progression and add days.
Code:
◆Wait:60 frames
◆Control Variables:#0001 Minutes += 1
◆If:Minutes = 60
  ◆Control Variables:#0001 Minutes = 0
  ◆Control Variables:#0002 Hours += 1
  ◆If:Hours = 24
    ◆Control Variables:#0002 Hours = 0
    ◆Control Variables:#0003 Days += 1
    ◆If:Days = 8
      ◆Control Variables:#0003 Days = 1
      ◆
    :End
    ◆
  :End
  ◆
:End

Then, if you want tinting at specific times, you look at which time division they depend on (hours) and check after you increment that division.

Code:
◆Wait:60 frames
◆Control Variables:#0001 Minutes += 1
◆If:Minutes = 60
  ◆Control Variables:#0001 Minutes = 0
  ◆Control Variables:#0002 Hours += 1
  ◆If:Hours = 6
    ◆Tint Screen:(0,0,0,0), 60 frames (Wait)
    ◆
  :End
  ◆If:Hours = 18
    ◆Tint Screen:(68,-34,-34,0), 60 frames (Wait)
    ◆
  :End
  ◆If:Hours = 22
    ◆Tint Screen:(-68,-68,0,68), 60 frames (Wait)
    ◆
  :End
  ◆If:Hours = 24
    ◆Control Variables:#0002 Hours = 0
    ◆Control Variables:#0003 Days += 1
    ◆If:Days = 8
      ◆Control Variables:#0003 Days = 1
      ◆
    :End
    ◆
  :End
  ◆
:End

That's it. One event, no extra variables or anything.
I'm confused, I still see multiple events.

All you need is to increment each division; check for it to be at its maximum value and increment the next division of time, right?
Code:
◆Wait:60 frames
◆Control Variables:#0001 Minutes += 1
◆If:Minutes = 60
  ◆Control Variables:#0001 Minutes = 0
  ◆Control Variables:#0002 Hours += 1
  ◆If:Hours = 24
    ◆Control Variables:#0002 Hours = 0
    ◆
  :End
  ◆
:End

That's a day.

You wanted to add days to that, so you just follow the exact same logical progression and add days.
Code:
◆Wait:60 frames
◆Control Variables:#0001 Minutes += 1
◆If:Minutes = 60
  ◆Control Variables:#0001 Minutes = 0
  ◆Control Variables:#0002 Hours += 1
  ◆If:Hours = 24
    ◆Control Variables:#0002 Hours = 0
    ◆Control Variables:#0003 Days += 1
    ◆If:Days = 8
      ◆Control Variables:#0003 Days = 1
      ◆
    :End
    ◆
  :End
  ◆
:End

Then, if you want tinting at specific times, you look at which time division they depend on (hours) and check after you increment that division.

Code:
◆Wait:60 frames
◆Control Variables:#0001 Minutes += 1
◆If:Minutes = 60
  ◆Control Variables:#0001 Minutes = 0
  ◆Control Variables:#0002 Hours += 1
  ◆If:Hours = 6
    ◆Tint Screen:(0,0,0,0), 60 frames (Wait)
    ◆
  :End
  ◆If:Hours = 18
    ◆Tint Screen:(68,-34,-34,0), 60 frames (Wait)
    ◆
  :End
  ◆If:Hours = 22
    ◆Tint Screen:(-68,-68,0,68), 60 frames (Wait)
    ◆
  :End
  ◆If:Hours = 24
    ◆Control Variables:#0002 Hours = 0
    ◆Control Variables:#0003 Days += 1
    ◆If:Days = 8
      ◆Control Variables:#0003 Days = 1
      ◆
    :End
    ◆
  :End
  ◆
:End

That's it. One event, no extra variables or anything.

WOW thanks Turan! seeing it broke down like this makes more sense.

in the previous screen shots I had just set all the other events to none to test the tint in one event.

I will clear what I have and try this out, I'm guessing Display_time will have to stay in a separate event? any thoughts on how I can move that into the menu?

either way thanks for breaking this down for me =]
I'm guessing Display_time will have to stay in a separate event?
Why? It's checking the exact same variables, Hours and Minutes, so if it's impossible for it to be changing at a different time, why would it need to be separate?

any thoughts on how I can move that into the menu?
There are plugins, such as Yanfly's Options Core, that allow you to add items to the options. You'd add a new field that toggles a switch, then reference that switch inside the common event to determine whether or not you show the image.

You may want to do some general eventing tutorials, there are some on these forums as well as plenty on YouTube.
Why? It's checking the exact same variables, Hours and Minutes, so if it's impossible for it to be changing at a different time, why would it need to be separate?


There are plugins, such as Yanfly's Options Core, that allow you to add items to the options. You'd add a new field that toggles a switch, then reference that switch inside the common event to determine whether or not you show the image.

You may want to do some general eventing tutorials, there are some on these forums as well as plenty on YouTube.


So I set the old events to none, I've put this into a parallel event with the switch time and the tints are not appearing?

I am also curious about why I don't need the code from the event I was using called TIME_COUNTER, that one allowed me to change the speed of time.

I have tried a few different things with the code you sent nothing is resulting in the tints showing up though, you are right about the clock I can just put the DISPLAY_TIME code in the same event and I'll look into that plugin once I've got these tints back, time dose appear to be running, as when I include the clock or turn the Time Counter event on it dose work.
On that note should the code for the clock go above or below the day/time system? both seemed to work.
I am also curious about why I don't need the code from the event I was using called TIME_COUNTER, that one allowed me to change the speed of time.
I'm not sure what you're asking here - I don't see anything in (the part that you posted of) TIME_COUNTER that allows you to change the speed of time. It has a constant effect, adding ten minutes every 600 frames.

That's the exact same thing I provided to you, adding 1 minute every 60 frames. If you want the ratio of game time to real time to be different, just change the wait amount.

I have tried a few different things with the code you sent nothing is resulting in the tints showing up
I dunno, the exact event I pasted to you works perfectly for me. Make sure you're starting a new game when you test changes, not loading a save.

On that note should the code for the clock go above or below the day/time system?
Why would it be separate?
I'm not sure what you're asking here - I don't see anything in (the part that you posted of) TIME_COUNTER that allows you to change the speed of time. It has a constant effect, adding ten minutes every 600 frames.

That's the exact same thing I provided to you, adding 1 minute every 60 frames. If you want the ratio of game time to real time to be different, just change the wait amount.


I dunno, the exact event I pasted to you works perfectly for me. Make sure you're starting a new game when you test changes, not loading a save.


Why would it be separate?

that's cool, the 600 frames is now that 60 wait.

I've been starting a new game, I started at midnight and it would only take from the first change, so I decided to remove your tints and put the old tint system in there... it didn't work in the same position you showed, so I put in above the clock code and tints are running now.

This is almost there, the only pressing issue I have is the AM/PM situation.
it's getting to 11am and then the clock stops counting hours at 11, but minutes and time continue to progress.

I have tried adding the same branches for AM/PM as before but there is no change
This is almost there, the only pressing issue I have is the AM/PM situation.
it's getting to 11am and then the clock stops counting hours at 11, but minutes and time continue to progress.
I'm not sure what you'd like anyone to say. You show screenshots of two parts of the event, neither of which shows either the AM/PM switch being toggled nor where you expect the clock to display 12.

So...your event is pretty? 😛

This really should be pretty straightforward logic, especially since you have that framework. Just think through where an instruction or question should go, and stick it in. If you're having issues, you need to post the entire thing.

Select the whole event code, right-click, copy as text. Go to your forum post, click the CODE tag (the </> symbol) and paste it in.
I'm not sure what you'd like anyone to say. You show screenshots of two parts of the event, neither of which shows either the AM/PM switch being toggled nor where you expect the clock to display 12.

So...your event is pretty? 😛

This really should be pretty straightforward logic, especially since you have that framework. Just think through where an instruction or question should go, and stick it in. If you're having issues, you need to post the entire thing.

Select the whole event code, right-click, copy as text. Go to your forum post, click the CODE tag (the </> symbol) and paste it in.

haha indeed, I'd say at this point my code has gone past questionable and evolved into some sorta mosaic of misery.

I have tried everything I think makes sense but I'm lost, at this point it hits 11 and PM changes, the hours stop progressing and AM reappears... 😳

Code:
◆Wait:30 frames
◆Control Variables:#0003 Minutes += 1
◆If:Minutes = 60
  ◆Control Variables:#0003 Minutes = 0
  ◆Control Variables:#0004 Hours += 1
  ◆If:Hours = 24
    ◆Control Variables:#0004 Hours = 0
    ◆Control Variables:#0014 Days += 1
    ◆If:Days = 8
      ◆Control Variables:#0014 Days = 1
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Hours = 12
  ◆If:AM/PM is OFF
    ◆Control Switches:#0004 AM/PM = ON
    ◆
  :End
  ◆
:Else
  ◆Control Switches:#0004 AM/PM = OFF
  ◆
:End
◆If:Hours < 6
  ◆If:INSIDE is OFF
    ◆Tint Screen:(-68,-68,0,68), 20 frames (Wait)
    ◆
  :End
  ◆
:End
◆If:Hours ≥ 21
  ◆If:INSIDE is OFF
    ◆Tint Screen:(-68,-68,0,60), 20 frames (Wait)
    ◆
  :End
  ◆
:End
◆If:Hours ≥ 6
  ◆If:Hours < 7
    ◆If:INSIDE is OFF
      ◆Tint Screen:(-68,-68,-68,0), 20 frames (Wait)
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Hours ≥ 7
  ◆If:Hours < 12
    ◆If:INSIDE is OFF
      ◆Tint Screen:(0,0,-17,0), 20 frames (Wait)
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Hours ≥ 12
  ◆If:Hours < 18
    ◆If:INSIDE is OFF
      ◆Tint Screen:(0,0,0,60), 20 frames (Wait)
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Hours ≥ 18
  ◆If:Hours < 19
    ◆If:INSIDE is OFF
      ◆Tint Screen:(7,0,-7,85), 20 frames (Wait)
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Hours ≥ 19
  ◆If:Hours < 6
    ◆If:INSIDE is OFF
      ◆Tint Screen:(-34,-34,-17,34), 20 frames (Wait)
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:AM/PM is ON
  ◆Show Picture:#95, PM, Upper Left (160,0), (100%,100%), 255, Normal
  ◆
:Else
  ◆Show Picture:#95, AM, Upper Left (160,0), (100%,100%), 255, Normal
  ◆
:End
◆Show Picture:#96, DOTS, Upper Left (64,0), (100%,100%), 255, Normal
◆If:Hours = 0
  ◆Show Picture:#97, 1_, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#98, 2_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 1
  ◆Erase Picture:#97
  ◆Show Picture:#98, 1_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 2
  ◆Erase Picture:#97
  ◆Show Picture:#98, 2_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 3
  ◆Erase Picture:#97
  ◆Show Picture:#98, 3_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 4
  ◆Erase Picture:#97
  ◆Show Picture:#98, 4_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 5
  ◆Erase Picture:#97
  ◆Show Picture:#98, 5_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 6
  ◆Erase Picture:#97
  ◆Show Picture:#98, 6_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 7
  ◆Erase Picture:#97
  ◆Show Picture:#98, 7_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 8
  ◆Erase Picture:#97
  ◆Show Picture:#98, 8_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 9
  ◆Erase Picture:#97
  ◆Show Picture:#98, 9_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 10
  ◆Show Picture:#97, 1_, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#98, 0_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 11
  ◆Show Picture:#97, 1_, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#98, 1_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Minutes < 10
  ◆Show Picture:#99, 0_, Upper Left (96,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Minutes = 10
  ◆Show Picture:#99, 1_, Upper Left (96,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Minutes = 20
  ◆Show Picture:#99, 2_, Upper Left (96,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Minutes = 30
  ◆Show Picture:#99, 3_, Upper Left (96,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Minutes = 40
  ◆Show Picture:#99, 4_, Upper Left (96,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Minutes = 50
  ◆Show Picture:#99, 5_, Upper Left (96,0), (100%,100%), 255, Normal
  ◆
:End
◆Show Picture:#100, 0_, Upper Left (128,0), (100%,100%), 255, Normal
I could be wrong but I think the event has a small error. You put that if the hours = 12 the switch is activated am/pm else it is deactivated, therefore at any time that is not at 12 the switch will remain off (so most of the time it will show AM, and PM will only be displayed when the hours are 12)
I could be wrong but I think the event has a small error. You put that if the hours = 12 the switch is activated am/pm else it is deactivated, therefore at any time that is not at 12 the switch will remain off (so most of the time it will show AM, and PM will only be displayed when the hours are 12)
I could be wrong but I think the event has a small error. You put that if the hours = 12 the switch is activated am/pm else it is deactivated, therefore at any time that is not at 12 the switch will remain off (so most of the time it will show AM, and PM will only be displayed when the hours are 12)


awe I see, I was trying to tell it to change to PM at 12... any suggestions on how I achieve that?
Separate the AM/PM switch in two. One called AM and another called PM. And you put in the conditional if hour = 0 activate the AM switch and deactivate the PM switch, then you put if hour = 12 activate the PM switch and deactivate the AM switch.
awe I see, I was trying to tell it to change to PM at 12... any suggestions on how I achieve that?
By doing so. You have that in your event. As @Xaniro pointed out, it's the second half that's wrong - why would you want to say "else change to AM"? There are 23 hours that aren't 12 😛

You already have a conditional for the end of the day, right? If hours are 24, reset to 0? You turn the switch back off right there.

You don't want to make your event larger and more confusing than you need to - if you already have a chunk of code running at the time you want, put stuff there.
By doing so. You have that in your event. As @Xaniro pointed out, it's the second half that's wrong - why would you want to say "else change to AM"? There are 23 hours that aren't 12 😛

You already have a conditional for the end of the day, right? If hours are 24, reset to 0? You turn the switch back off right there.

You don't want to make your event larger and more confusing than you need to - if you already have a chunk of code running at the time you want, put stuff there.


@Xaniro @ATT_Turan thank you both!
I am learning a lot here, it's running with AM/PM now.

The issue is it runs perfectly for 24 hours and stops, I have tried everything I can think of but assuming there must be some mistake here I can't see?

Code:
◆Wait:60 frames
◆Control Variables:#0003 Minutes += 1
◆If:Minutes = 60
  ◆Control Variables:#0003 Minutes = 0
  ◆Control Variables:#0004 Hours += 1
  ◆If:Hours = 24
    ◆Control Variables:#0004 Hours = 0
    ◆Control Variables:#0014 Days += 1
    ◆Control Switches:#0004 AM/PM = OFF
    ◆If:Days = 8
      ◆Control Variables:#0014 Days = 1
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Hours = 12
  ◆Control Switches:#0004 AM/PM = ON
  ◆
:End
◆If:Hours < 6
  ◆If:INSIDE is OFF
    ◆Tint Screen:(-68,-68,0,68), 20 frames (Wait)
    ◆
  :End
  ◆
:End
◆If:Hours ≥ 21
  ◆If:INSIDE is OFF
    ◆Tint Screen:(-68,-68,0,60), 20 frames (Wait)
    ◆
  :End
  ◆
:End
◆If:Hours ≥ 6
  ◆If:Hours < 7
    ◆If:INSIDE is OFF
      ◆Tint Screen:(-68,-68,-68,0), 20 frames (Wait)
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Hours ≥ 7
  ◆If:Hours < 12
    ◆If:INSIDE is OFF
      ◆Tint Screen:(0,0,-17,0), 20 frames (Wait)
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Hours ≥ 12
  ◆If:Hours < 18
    ◆If:INSIDE is OFF
      ◆Tint Screen:(0,0,0,60), 20 frames (Wait)
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Hours ≥ 18
  ◆If:Hours < 19
    ◆If:INSIDE is OFF
      ◆Tint Screen:(7,0,-7,85), 20 frames (Wait)
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Hours ≥ 19
  ◆If:Hours < 6
    ◆If:INSIDE is OFF
      ◆Tint Screen:(-34,-34,-17,34), 20 frames (Wait)
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:AM/PM is ON
  ◆Show Picture:#95, PM, Upper Left (160,0), (100%,100%), 255, Normal
  ◆
:Else
  ◆Show Picture:#95, AM, Upper Left (160,0), (100%,100%), 255, Normal
  ◆
:End
◆Show Picture:#96, DOTS, Upper Left (64,0), (100%,100%), 255, Normal
◆If:Hours = 0
  ◆Show Picture:#97, 1_, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#98, 2_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 1
  ◆Erase Picture:#97
  ◆Show Picture:#98, 1_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 2
  ◆Erase Picture:#97
  ◆Show Picture:#98, 2_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 3
  ◆Erase Picture:#97
  ◆Show Picture:#98, 3_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 4
  ◆Erase Picture:#97
  ◆Show Picture:#98, 4_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 5
  ◆Erase Picture:#97
  ◆Show Picture:#98, 5_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 6
  ◆Erase Picture:#97
  ◆Show Picture:#98, 6_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 7
  ◆Erase Picture:#97
  ◆Show Picture:#98, 7_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 8
  ◆Erase Picture:#97
  ◆Show Picture:#98, 8_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 9
  ◆Erase Picture:#97
  ◆Show Picture:#98, 9_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 10
  ◆Show Picture:#97, 1_, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#98, 0_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 11
  ◆Show Picture:#97, 1_, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#98, 1_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 12
  ◆Show Picture:#97, 1_, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#98, 2_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 13
  ◆Erase Picture:#97
  ◆Show Picture:#98, 1_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 14
  ◆Erase Picture:#97
  ◆Show Picture:#98, 2_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 15
  ◆Erase Picture:#97
  ◆Show Picture:#98, 3_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 16
  ◆Erase Picture:#97
  ◆Show Picture:#98, 4_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 17
  ◆Erase Picture:#97
  ◆Show Picture:#98, 5_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 18
  ◆Erase Picture:#97
  ◆Show Picture:#98, 6_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 19
  ◆Erase Picture:#97
  ◆Show Picture:#98, 7_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 20
  ◆Erase Picture:#97
  ◆Show Picture:#98, 8_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 21
  ◆Erase Picture:#97
  ◆Show Picture:#98, 9_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 22
  ◆Show Picture:#97, 1_, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#98, 0_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 23
  ◆Show Picture:#97, 1_, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#98, 1_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Hours = 24
  ◆Show Picture:#97, 1_, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#98, 2_, Upper Left (32,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Minutes < 10
  ◆Show Picture:#99, 0_, Upper Left (96,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Minutes = 10
  ◆Show Picture:#99, 1_, Upper Left (96,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Minutes = 20
  ◆Show Picture:#99, 2_, Upper Left (96,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Minutes = 30
  ◆Show Picture:#99, 3_, Upper Left (96,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Minutes = 40
  ◆Show Picture:#99, 4_, Upper Left (96,0), (100%,100%), 255, Normal
  ◆
:End
◆If:Minutes = 50
  ◆Show Picture:#99, 5_, Upper Left (96,0), (100%,100%), 255, Normal
  ◆
:End
◆Show Picture:#100, 0_, Upper Left (128,0), (100%,100%), 255, Normal
Not sure if you have figured this out yet, but there is a lot that could be done to clean this up.
Firstly, at a quick glance I don't see any reason why it shouldn't at least be looping properly. If the common event is set to parallel properly and the switch to control is on, then you can press f9 to see all of the switches/variables in your game and what value they have been set to. When the clock stops, check your variables and verify they are still counting. If they are, then it's a visual bug, and I'll admit, the area I looked at the least was the disaster of show picture events in the latter half. It to me sounds like something that is expecting to be reset isn't getting reset properly, meaning maybe a conditional is set wrong. But who knows. It's not my event.
For the AM/PM thing, the funny thing is, it's just a binary thing. Therefore, using a "is equal to or greater than" your afternoon hours, set to PM, else (in other words, everything less than your afternoon hours) is AM.

For your own sanity and when sharing your event, it helps if you break up long events by what each section is doing (this also helps you remember what things are doing should you need to edit the event months after creating it - long after you have forgotten the nuance to the event). Using comments such as a series of ////, ====, ----, ++++, or whatever can help create visual breaks in the event logic. They don't improve event performance, but do improve human performance.

The last thing I am going to recommend is what ATT_Turan already mentioned (maybe even twice?) in this very thread; you really, really should be practicing this more yourself, either in smaller situations, or following tutorials. One thing you should learn from game design is thinking for yourself. If you can't think for yourself and work through the problems by yourself, you're gonna be spending way too much time waiting for old curmudgeons to answer your thread grumpily. Save yourself the time and start thinking about things yourself; work through the problem, ask yourself "why is it not working?" and try using some debug stuff to help. F9 already mentioned. You can also insert text boxes at certain points in the events logic to spit out something like "OK!" to confirm a point in the logic was reached or "\v[x]" escape code to see what the value of a variable is.

Take some time to do some learning, and we'll be happy to help you when you have trouble.
Not sure if you have figured this out yet, but there is a lot that could be done to clean this up.
Firstly, at a quick glance I don't see any reason why it shouldn't at least be looping properly. If the common event is set to parallel properly and the switch to control is on, then you can press f9 to see all of the switches/variables in your game and what value they have been set to. When the clock stops, check your variables and verify they are still counting. If they are, then it's a visual bug, and I'll admit, the area I looked at the least was the disaster of show picture events in the latter half. It to me sounds like something that is expecting to be reset isn't getting reset properly, meaning maybe a conditional is set wrong. But who knows. It's not my event.
For the AM/PM thing, the funny thing is, it's just a binary thing. Therefore, using a "is equal to or greater than" your afternoon hours, set to PM, else (in other words, everything less than your afternoon hours) is AM.

For your own sanity and when sharing your event, it helps if you break up long events by what each section is doing (this also helps you remember what things are doing should you need to edit the event months after creating it - long after you have forgotten the nuance to the event). Using comments such as a series of ////, ====, ----, ++++, or whatever can help create visual breaks in the event logic. They don't improve event performance, but do improve human performance.

The last thing I am going to recommend is what ATT_Turan already mentioned (maybe even twice?) in this very thread; you really, really should be practicing this more yourself, either in smaller situations, or following tutorials. One thing you should learn from game design is thinking for yourself. If you can't think for yourself and work through the problems by yourself, you're gonna be spending way too much time waiting for old curmudgeons to answer your thread grumpily. Save yourself the time and start thinking about things yourself; work through the problem, ask yourself "why is it not working?" and try using some debug stuff to help. F9 already mentioned. You can also insert text boxes at certain points in the events logic to spit out something like "OK!" to confirm a point in the logic was reached or "\v[x]" escape code to see what the value of a variable is.

Take some time to do some learning, and we'll be happy to help you when you have trouble.


Heya, good stuff, the later half is solid life advice so cheers for that.

This one is solved, that code works, there was something left on the map messing it up.
I have made amendments since that seem to have improved it, so it's all good now, very fun educational thread for me.

Original thread: https://forums.rpgmakerweb.com/threads/adding-days-of-the-week-to-an-eventd-time-system-and-a-couple-other-things.160822/