Advanced Game Time

What if I want it to be from 8:00 PM to 12:00 AM? BTW I am using a 12 Hour Clock not a 24 Hour Clock
Kind of tells me that you haven't even read the instructions in the script, or tried to test the options.

GameTime.hour_nom? >= 8 && GameTime.hour_nom? <= 12

Keeping in mind this will be true twice.

But you can display the game time as a 12 hour clock and check for the 24 hour time.
Kind of tells me that you haven't even read the instructions in the script, or tried to test the options.

GameTime.hour_nom? >= 8 && GameTime.hour_nom? <= 12

Keeping in mind this will be true twice.

But you can display the game time as a 12 hour clock and check for the 24 hour time.
Ok so I did it like this:
GameTime.hour_nom? <= 0 && GameTime.hour_nom? >= 14 (Note I put 14 for the 24 Hour type clock) So it should go from 2:00 PM to 12:00 AM, but when I did that, it didn't do what I needed it to do.
If the statement is true then it will say that the place is closed if not then you can go in to the shop. When I set it up and tested it out it still allowed me in the shop.
@Roninator2 Here is what I have got so far. I got it to work atm. If I have anymore questions I will let you know. Thank you for the help.
Screenshot_1.png
GameTime.hour_nom? <= 0 && GameTime.hour_nom? >= 14
Again, please read the script. hour_nom is for 12 hour clocks.
Here is what I have got so far
This means that your shop is open from 1AM to 8PM
Again, please read the script. hour_nom is for 12 hour clocks.
Again, please read the script. hour_nom is for 12 hour clocks.

This means that your shop is open from 1AM to 8PM
Ok so I got that figured out, now how would I go at making people in my towns not be there at specific times of the day. For example I have an npc that sells things and I want her to be in the town from 12:00 AM to 5:00 PM. How would I set it up to make her be there at that time but after that she is not there?
How would I set it up to make her be there at that time but after that she is not there?
Easiest way I can think of off the top of my head is a parallel event checking the time and when the proper time is met, change a switch. Have shop people on the switch to a blank page for the event.
Easiest way I can think of off the top of my head is a parallel event checking the time and when the proper time is met, change a switch. Have shop people on the switch to a blank page for the event.
Ok but how do i make it check if the npc is supposed to be gone. For example: If I set up a shop event to do parallel processing to see if the time is met then the shop will be gone during that time, but if not then the event will continue to get you in the shop each time you move.
Since this is not a problem with the script anymore, I suggest you make a new thread in vx ace support or look at some tutorials. What your asking for just involves some thinking and eventing.
Hey was wondering if I could get some help with this. When I start a new game the clock shows up correctly, but when I save and open the game up from my save the clock dissappears. How would I fix this?
I love this script but it lowers my fps to 10...
Is there any fix to this??

EDIT:
I found solution!

If you disable the clock from showing, it doesn't lower the fps.
So with that, you can't see the time, but hey.. it's something.. (personally i don't mind at all)

It's on line 82 and 83. set USECLOCK to false

Ruby:
#Clock is shown
USECLOCK = false

Remember not to use any show clock script calls ( like GameTime.clock?(true) ), it will crash and close the game.
hi, I very love your script. But I get stuck in some problems: I can't change my clock time with comments, and perharps I don't get how to use it. Can anyone help me?

here's my event

1688903164486.png


1688903274975.png

it's kinda weird
hi, I very love your script. But I get stuck in some problems: I can't change my clock time with comments, and perharps I don't get how to use it. Can anyone help me?

here's my event

View attachment 268756

View attachment 268757
it's kinda weird
Try using the "Script" event command.
Scripts rarely (in my experience) use comments for stuff like that
Try using the "Script" event command.
Scripts rarely (in my experience) use comments for stuff like that
thanks! now it can change the time, but how to show the date and month? And how to let the clock always shows on the screen even if the shift key is pressed?
thanks! now it can change the time, but how to show the date and month? And how to let the clock always shows on the screen even if the shift key is pressed?
No idea. Sorry, I'm not a scripter and I don't even think I have this script downloaded.

Original thread: https://forums.rpgmakerweb.com/threads/advanced-game-time.3851/