Basic Game Time + Night/Day

Script call in game (in an event):

GameTime:😛ause_time(true)

and

GameTime::set(0) 

to set it to midnight.
How do you use this script. Do you just paste the script in? I tried to paste it in but it said it had some errors in it. Don't know why.
Yup, you paste it in, in it's own little section below Materials and above Main, and you can just leave it as it is and it'll run. No need to edit anything.
Hi Vlue, I love your script but it has compatibility issues with Khas Awesome Lighting Effects.
Any chance there will be a fix for it down the track?
Hi Vlue, I love your script but it has compatibility issues with Khas Awesome Lighting Effects.

Any chance there will be a fix for it down the track?
There were issues a while back, but I thought they were fixed. You may need to find the fixed lines within this topic, if they aren't in the script, unless you are using a modified version of Khas'..
What kind of issues?
Awesome script!

Just one question that may be a really stupid one haha.

How do you set what time it is when you start the game?

It's always 12 AM each time I start a new game.
I should really update the FAQ sections of my scripts, or leave them out, because I never add anything to them...

Anywho!

You can just make a script call at the start

$gametime = whatever number you want

or you can change line 89 in the script to read

$gametime = whatever number you want

where whatever number you want is the minute of the day, 360 for 6am, 720 for 12pm etc...
I should really update the FAQ sections of my scripts, or leave them out, because I never add anything to them...

Anywho!

You can just make a script call at the start

$gametime = whatever number you want

or you can change line 89 in the script to read

$gametime = whatever number you want

where whatever number you want is the minute of the day, 360 for 6am, 720 for 12pm etc...
Thanks man!

Just what I needed to know. Should have been able to figure that out myself haha.
This is really amazing, a very useful srcipt. Thank you, you did a very nice job with that clock, just what I was searching. 😀
Im having a alot of fun with this script, I'd just like to size the clock down some, how could i make the font size of the clock about half its size? or use a transparent  window skin for the bg?
Between lines 195 and 196 you can add the lines:

self.back_opacity = 255

self.contents.font.size = 12
i have a question.in the script it has id where you can turn the tint off in certain places my question is how do i add more id to it?
i have a question.in the script it has id where you can turn the tint off in certain places my question is how do i add more id to it?
just add  comma between each number.
thankyou 🙂
Hey, I'm having the same problem over and over again with an error box saying:

Script 'Day/Night' line 119: NoMethodError occurred.

undefined method '/' for nil:NilClass
Can you please tell me what to do there? I followed your advice saying to copy and paste it again but it still says that. So was there an updated script that fixed this? Or was there something I missed?

Please respond as fast as you can!
Between lines 195 and 196 you can add the lines:

self.back_opacity = 255

self.contents.font.size = 12
I changed the opacity to 0 and added   

self.windowskin = Cache.system("Window2")

and made a frameless windows skin, And it worked perfectly! Much thanks!!!!
Hello! Im very new to this script stuff but i really would like to use this scrip!

I have an issue where okay, I copy your script, I post your script under Main.( thats the right spot yes? >.<) and... place it in ofc. Then make an event

and go to the script call and i put like... GameTime::set(720), Id like to see it night.

Then i get this error:

Script 'Game_Interpreter' line240: NameError occured.

uninitialized content Game_Interpreter::GameTime

I get this dang error on so many scipts.... No idea what i means

Im using The RPG Maker VX Ace... I heard not many scipts work on it, Is that the case for this script?
1st: Awsome job!

2nd: i have read this entire topic and all but one of my questions have been answered, so here we go.

I figured out how to make time stop in my stores, and my characters to sleep for 8 hours, and how to make it so a door only opens during a certain time frame, from reading the above entries.

what i would like to know, is how i can make a monster and/or troop only appear at certain times in the day, like example a vampire only appearing at night.

i treid figuring it out myself with a conditional branch in the event page of a troop, but i just confused my self lol.

any and all help is appreciated!
 

thank you so much
Hello! Im very new to this script stuff but i really would like to use this scrip!

I have an issue where okay, I copy your script, I post your script under Main.( thats the right spot yes? >.<) and... place it in ofc. Then make an event

and go to the script call and i put like... GameTime::set(720), Id like to see it night.

Then i get this error:

Script 'Game_Interpreter' line240: NameError occured.

uninitialized content Game_Interpreter::GameTime

I get this dang error on so many scipts.... No idea what i means

Im using The RPG Maker VX Ace... I heard not many scipts work on it, Is that the case for this script?
scripts go above main if im not mistaken, or atleast its where i put them. BD

Original thread: https://forums.rpgmakerweb.com/threads/basic-game-time-night-day.1079/