Advanced Game Time

No problem, I asked that question not too long ago 😛
Yes... the whole tint problem at start of battle is something that's plagued me since the start. I've tried lots of things.

Yay to the demo part, I like seeing examples of my work in use!
If it tints before a battle, you can probably do untint the game on the pre_terminate maybe... at least on my private lighting script, I have been able to eliminate that tinting of the battle screen...
I was wondering if anyone knew of a simple way to make tiles change at a certain time of day (like dark windows instead of lighted ones after a shop closes, for example) and to turn a door off to close the shop until it opens again. Also, have certain things be available/open on certain days of the week or at different times of day. Great script, thanks Vlue!
If you do the windows via events, you could simply use two pages that switch between day/night...

Also, have certain things be available/open on certain days of the week or at different times of day.
You would be using switches and autorun common events for things that will happen at a certain time... not for availability depending on time/day etc, just event pages and conditions...
How would I go about making the switches or whatnot equal to the current value of the time of day or day of week though? Been using RPG Maker since RM2k but have gotten rusty in recent years, recently got back into it.
you would use the script set for variables and use the appropriate script calls from Vlue's script...
Okay I'll give it a shot. Thanks.
I will give you an example of how I do my day-night cycle lighting system. I think there might be an easier way to do it, but I wanted to be able to enable it manually and disable it manually. I don't have a need to turn it off yet really do the one you see that enables it will be on forever, but you can turn it off as well.

Here you go:

Common Event:

Nv5t5vD.png


Event turning the common event on:

oIMuN5o.png


Light Event:

NGmB1LB.png


The Lights turn on at 7 PM and they turn off at 10 AM.
Thanks! This is exactly what I needed. You're awesome.
Vlue, is there a way to change the position of the menu clock? I can't seem to find where to move it if it is in there.
@Blood - there should be... if you can place it, you can move it... 🙂
Vlue, is there a way to change the position of the menu clock? I can't seem to find where to move it if it is in there.
There's no option in the customization, but if you wanted to make small changes, you can edit lines 787 and 788 (which should read @clock.x = blah and @clock.y = blah)
Sweet thank you!
=) heeey, tried a simple conditional branch using this script and I got it workin' perfectly but if you don't mind, can you break this code down for me please >_<

So let's say I want this merchant only accessible at 11 am and he'd close his shop at 6pm, I'll put this on script call:

GameTime.hour? > 21 or GameTime.hour? < 6

My question is, where do I put 11 (am) and 18 (6pm) =o. I keep seeing it as if the hour is greater than 21, shop is closed, but if the hour is less than 6 pm shop is open xD. 

Confusing myself a bit here hahaha

Also, if I also want to add a day where the shop to only be open on mondays from 11 am to 6pm would the 

script look like this?

gametime.day_week? >2 and GameTime.hour? > 18 or GameTime.hour? < 11
GameTime.hour? > 18 or GameTime.hour? < 11

It is basically saying if it is greater then 6PM close the shop or less then 11 AM. Once it hits 11 AM the shop will open.

I haven't touched doing it at certain days of the week so I can't help you there.
gametime.day_week? >2 and (GameTime.hour? > 18 or GameTime.hour? < 11)


--> This means, shop will be closed if day is greater than 2 and it's either past 6 pm or earlier than 11am...


Those parentheses are sacred... without it, your condition will probably check for


gametime.day_week? > 2 and GameTime.hour? > 18


or


GameTime.hour? < 11


Of course this is assuming day_week? is a valid statement
thank you!! lme try it real quick > 🙂
btw, that means that for all days > 2, the shop will be closed during past 6 to before 11am...
gametime.day_week? >2 and (GameTime.hour? > 18 or GameTime.hour? < 11)

--> This means, shop will be closed if day is greater than 2 and it's either past 6 pm or earlier than 11am...

Those parentheses are sacred... without it, your condition will probably check for

gametime.day_week? > 2 and GameTime.hour? > 18

or

GameTime.hour? < 11

Of course this is assuming day_week? is a valid statement
=D it seems to be working!! Shana look at me! I'm learnin~ I was on the right track cept I didn't kno about the parenthesis. Ahaha btw thank you again for teaching me how to customize the window designs for each menu! I'm trying to learn how to make custom menu tabs and interface. Small steps. 

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