Advanced Game Time

Oh no, Now it won't play music if it's 1 pm, anything after 12, maybe because i pt in 13?
Loving this script, but does anyone have a better tint for night time? The one in the script doesn't really make it look dark lol.
I'd like to ask a question.


I wanted to hatch an egg, so i need to make a common event on which i set an amount of time before it hatches. Is it possible with this script? For example, the egg hatches after 3 days. I'm not sure if it is possible tho.


Nvm, solved!
Hey all, sorry for what is probably a noob question, but is it possible to get the tint to turn of when I open the option's menu? I am using Galv's Menu Themes Engine, and the tint makes it look kind of funky. I'm guessing the answer is probably no, but I figured I would check.
i readed all 19 pages but my question is not here..


yet..


so,  imagine an event where you can rent a ship/boat/car/etc...


for 100 g per day.


some day the player returns to the owner-event- and pays 100g plus x days...
in rpg vx ace launguange is


[ Rent a ship?


-Yes


    >variable[1]=game.day


    >ship position x,y


    >switch[1] on or self switch a on


-No


]


and when you return the switched condition page is like


[ >variable[2]=game.day


>variable[2] - variable[1]


>variable[2] multyply 100


>variable[3]=curency


>wait x frames


Return the ship?


-yes


>curency-variable 2


and bla bla bla....


this should work but it doesnt 😛


what i do wrong??
I'm sorry if I'm necroposting... But I just cant find the solution for this... This error always shows up everytime I call the GameTime.clock?(false)  method to hide clock.


Yes, I did new game but this problem persist.


any help? Thx 

error gametime.PNG
It most probably means the clock isn't yet initialized by that time... Are you sure the clock is already created before you called that code? Are you sure that you really did hit New Game instead of Load Game? I don't really see any way that your clock won't be initialized if you really did hit New Game, unless there's another script in your game that messed up the initialization sequence. Can you try it on a new project that doesn't have any other script other than this one and see if it still errors?
Yes. I am sure. Can I at least make the clock is hidden by default but the system is still running? I'd like to make an event triggered at certain time (real time). But I just don't want the player to see the clock on the menu...


EDIT: Okay I found out that we can set USECLOCK_MENU = false by default. But is there a way to set it to true in game? Maybe via script call or switch..
I am having so trouble using Khas Awesome lighting effects along with this script D:. I want to be able to use the lighting system from Khas but also still allow the screen tins using Game Time. I noticed when I turned the
#Using KHAS lighting effects script? Turn this on to use that tint USE_KHAS = false to true it turned my screen dark. I know this is apart of Khas lighting script but is there any way I can use them both together without it canceling out Advanced game time?

Here are some screen shots of my game:

With the command: Using KHAS lighting effects script? Turn this on to use that tint use khas = false

upload_2017-5-18_13-26-28.png




With the command: Using KHAS lighting effects script? Turn this on to use that tint use khas = false

upload_2017-5-18_13-29-39.png



As you can see in the second image with lighting effect set to true. the advanced game time scripts are hidden by Khas lighting tints. The time hud is still there but it can barely be seen. I don't know how I am going to add in the advanced game time tints to Khas lighting script. If anyone knows how I can get both of these scripts working together please let me know.
Sorry to necropost- this is just such a useful-seeming script, and I'd really love to give it a shot. I've done all the customization I want- making the clock appear in the menu, setting it to sync with PC time- but I simply can't figure out anything else.
I want to make things happen based on the current time- for example, if it's past this day, you can't get into this building, or if it's w day of the week, x button will do y instead of z. I see the script calls and message codes in the how-to-use section of the script, but I have no idea how to implement them, and I can't find anything on 'what is a script call' or 'what is a message code' anywhere on the forum. Sorry for bothering you with my stupid questions, but do you know how to do conditional branches based on time with this?
I was using this along with Khas' Awesome lighting script and it was fine.

Just bought Khas Ultra lighting only to find they DON'T work together like the previous one. Despite both scripts having compatibility built in, you can't use both real time tint and the lighting effects at the same time like you can with Khas Awesome. Using Vlue's Advance time tint you can't use Khas Ultra lights which require his opacity overlay, and using Khas' overlays, there's no tint cycle.

A slight but crappy workaround is to use Vlue's tints but make them much brighter then adding a less dark Opacity to the note tag of each map for Khas. Nowhere near as good and a lot of messing around.

Wish I'd known before forking out money. Going back to the free one which works with this great script. Just a heads up for those who might stumble upon this thinking that because they each have intergration for one another that they do work in that way together.
Is this plugin still work today ?
Because i've just install it, the game runs right but i have no clock on the screen. :s

I use Kha's advanced lightning, and i have all latest updates for RPGmaker MV.

Anyway thanks a lot !
@Christophe546 It won't work because it's a Ruby script for Ace, not a JavaScript plugin for MV
Oh ok ! Thanks Kes. 🙂
Do you know if there are any other plugin like this for MV ?
@Christophe546 I don't use MV, so I am not familiar with the range of plugins for it. There is a master list which contains many (not all, because not everyone gets round to adding their plugins) which you can find here. Search there first. If you don't find what you are looking for, post a thread in 'JS Plugin Requests', giving as much detail as you can of what you want, and people may be able to point you to something suitable.
Thanks Kes for your help, i will go see the list. 🙂
Is Vlue still around these days? Trying to work out a bug between Khas and Advanced Time where the screen will flicker every time the game minute updates. I had to actually modify the Advanced Time script to add a note tag for Khas tints (because I just use a universal darkness) because no matter what I tried, I couldn't get khas's tints to override Vlues even with the correct events and script calls.

The modification I did was just adding an identical definition for for notint calling it khastint and changed the color and alpha values to what I wanted. The note tag works as advertised, and I added a function call for it under the definition for using Khas, but alas I can't figure out why it flickers and how to make it stop.

Even if Vlue isn't around anymore, anybody able to point me in the right direction? I'm not a ruby programer so a lot of the code looks greek to me.

Edit: oddly found a work around by just shifting the location of the khastint call to above the notint in the if khas definition and changing the line "return if no_tint" to "else return if no_tint" and suddenly it works as expected.
Hey Guys was wondering if I could get some help with this script. I am trying to make a conditional branch to check if the time is between two times. How would I go about doing this without creating two branches. For example if it needed to check if the time is between 12:00 AM-8:00 AM.
without creating two branches.
I have no idea why this would a game breaker.
The only reason I didn't show on one line is because my first attempt didn't work but two check did work.

GameTime.hour? >= 0 && GameTime.hour? <= 8
I have no idea why this would a game breaker.
The only reason I didn't show on one line is because my first attempt didn't work but two check did work.

GameTime.hour? >= 0 && GameTime.hour? <= 8
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.

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