Advanced Game Time

you need to keep track of groupings to ensure everything works correctly... so use parentheses as much as you could... 🙂


btw if you want it to be only checking for the time during mondays (meaning anyday other than monday it's open 24 hours), you probably would want to change the day_week? > 2 into day_week? < 2


take note that this is assuming that ur using the condition to determine if a shop should be closed
Wil

you need to keep track of groupings to ensure everything works correctly... so use parentheses as much as you could... 🙂

btw if you want it to be only checking for the time during mondays (meaning anyday other than monday it's open 24 hours), you probably would want to change the day_week? > 2 into day_week? < 2

take note that this is assuming that ur using the condition to determine if a shop should be closed
Will keep that in mind! right now i have day_week? > 2 so it's closed besides monday. Quick question, to test if it'll close when it hits the closing time, i did gametime.hour? > 11 or gametime.hour? < 12 but when it hits 12 pm the shop is still open =o am i doin something wrong? but it does work though when i change the first gametime.hour to test it
well, because 12 is still > 11... you used or so if one condition is true, it will be true...


if you need it to only be open from 11 to 12, it should be


gametime.hour? >= 11 and gametime.hour? <= 12


btw, I made it use greater than or equal to, less than or equal to so that it includes the exact time...
well, because 12 is still > 11... you used or so if one condition is true, it will be true...

if you need it to only be open from 11 to 12, it should be

gametime.hour? >= 11 and gametime.hour? <= 12

btw, I made it use greater than or equal to, less than or equal to so that it includes the exact time...
it doesn't work with the equal to =( 
really? what happens? can you show the exact event?


btw if that's the condition for closure, that means it will be closed during 11 to 12


if that's the condition for opening, that means it's opened during 11 to 12
really? what happens? can you show the exact event?

btw if that's the condition for closure, that means it will be closed during 11 to 12

if that's the condition for opening, that means it's opened during 11 to 12
I have it for opening. It's not crashing anymore but it still not closing at 12 pm. I'm trying again.
can you show the full condition that you are using? preferably, the actual event page too...
can you show the full condition that you are using?
yeah! here's my test event

[IMG]http://img.photobucket.com/albums/v293/dragon_oblivion/test.png[/IMG]
hmm... that should have worked between 11am and 12 noon...

can you add this script call line at the top of the commands , and test it with the console enabled then post here the results when you're trying it but doesn't work?

Code:
p GameTime.hour?
hmm... that should have worked between 11am and 12 noon...

can you add this script call line at the top of the commands , and test it with the console enabled then post here the results when you're trying it but doesn't work?

p GameTime.hour?
sorry you want me to put that command right above the first text command yes? also how do you enable console command?
yes...


it's I think on the Game sub menu at the menubar
yes...

it's I think on the Game sub menu at the menubar
the console window first showed 11, then it showed 12 at the bottom of 11 =o
then the game time is correct... oh wait, you want it to close at exactly 12?


just remove the = sign from the 12 part
bahahahah kk lme try it. If this one works I'm just gna laugh since I've been tryin to figure it out for what? 2 hours?
It works! it works T_____T *cries* thanks shanaaaaaa. Hopefully this helps other people too xD
I thought you want it to open until 12... so I thought you wanna include 12... hahaha... sorry


PS: actually since ur only checking hour, the previous one will stay open until 12:59... how dumb of me... XD
I thought you want it to open until 12... so I thought you wanna include 12... hahaha... sorry

PS: actually since ur only checking hour, the previous one will stay open until 12:59... how dumb of me... XD
XD nuuuuu~ oh btw, so I can do the same for timed lighting effects? Also, do you happen to know if I still need to do this if I use khas's awesome lighting?
I think you can... have a page that uses the light comment, then another page that doesn't and uses a certain switch to be ON, then using a time check parallel process event, set the switch to ON either if the time is for day or night...
I think you can... have a page that uses the light comment, then another page that doesn't and uses a certain switch to be ON, then using a time check parallel process event, set the switch to ON either if the time is for day or night...
I'll try that tomorrow. I'm still tryin to make GameTime.change(60) work =/ it's suppose to jump the time an hour but no luck
For repeated things I just use triggers. For example you can see my lighting system on a few pages back I think. The reason for this is minimal lines in an event. I doubt it would make much difference though to be honest. It is just easier for me to organize multiple things like that. 7PM to 7AM the lights are which that trigger turns on LIGHT I think is what I called it. When it reaches 8 AM the lights turn off until 7PM again.

You don't need to use triggers for this, I just find it more organizing then doing every light with the script string in it. So I plug in the commands in a common event and a side event on map to turn on or off the triggers and the magic happens.

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