Well firstly, you have the the condition of the time of day variable nested within another time of day variable.
Your second screen shot shows:
Code:
"If Time of Day = 0
If Time of Day = 2"
This basically means, "If the time of day is 0 AND the time of day is 2, do this." Which is obviously a bit of a paradox since it can't be 2 different times of day at once. This isn't quantum RPG making.
So, first, you should separate your conditionals.
Code:
"If time of Day = 0"
Do this.
"If time of Day = 2"
Do this.
Secondly, you can simplify this a little bit. Logically, it makes sense to have 0 = morning, 1 = day, 2 = night. But since morning and night are effectively doing the same thing for your shop (making it closed), I would maybe make 0 = day, and then 1 and 2 would be morning and night respectively. (I know this contradicts what I said in my post before)
This is because you can use just 1 conditional by using a greater than check and an else branch.
So:
Code:
if time of day is greater than 0
shop's closed!
else
shop is open!
Thirdly, it should not be on a new common event. This logic can be contained within your existing time logic common event. Put the Time of Day logic under your "if hours" conditional in the Time_Counting common event.
This could be simplified even further. When I made my original post, I didn't realize you were already tracking hours (sorry, I was on my phone and was too lazy to zoom in on the pictures).
Since you are incrementing hours you could just check your shop using your existing hours variable instead of creating a new one. The "Time of day" method simplifies things a lot, but it does create an additional variable. If you want to simplify your used variables, then on the shop door, put a conditional check for the hours within a range.
So for example:
Code:
If hours (equal to or greater than) 0
If hours is < 9
Shop is closed.
If hours (equal to or greater than) 20
Shop is closed.
If hours (equal to or greater than) 9
if hours < 20
Shop is opened!
This method completely removes the necessity of the "time of day" variable and all the logic associated with it. I'm not familiar with the Nintendo Switch version, if you don't have access to a copy-paste function on the Switch, this might be a hassle to have to set up for every shop. In which case, your have 2 options:
1) Move the above logic into a common event, and don't have it be a parallel common event. On every shop door event, attach this common event to it. On activation of the door, this common event will run and make that check. (this is also kind of best practice anyways, because if later down the road you decide to change the shop hours, you don't need to change the hours for EVERY shop in your game, you only need to change the 1 common event)
2) The previous "Time of Day" method mentioned is easier to set up and might be quicker to do if you don't have a copy-paste function.
edit:
pressing "save" removed all my formatting

. I fixed it now.
Fixed a mistake in my logic and clarified a few things so my post reads more clearly.