I edited the script up on the pastebin, so you can try that. It should have pictures from number 10 and down be tinted, and numbers 10 and up not be tinted.
Advanced Game Time
RGSS3 Scripts (RMVX Ace)Is there any way to make time speed up momentarily? Such as when you're on a main map screen, since it's not realistic that you walk like 10 miles within 2-3 minutes
Yup! There's an option on line 136 that let's you designate a variable that you can use to alter the speed of time. Lowering the value of the variable will make time go by faster.
Hello! 😮
I have a question...I really love this script, by the way. Thank you very much for sharing it with us! However...I want to make it so that when it is really late in the night, say 2 in the morning, that the player will pass out and wake up later the next day. So what script would I use to cause an event to happen where the player would pass out when 2 in the morning?
I have a question...I really love this script, by the way. Thank you very much for sharing it with us! However...I want to make it so that when it is really late in the night, say 2 in the morning, that the player will pass out and wake up later the next day. So what script would I use to cause an event to happen where the player would pass out when 2 in the morning?
You'd just have a parallel process common event running that does a conditional branch checking if the time is 2am (through the script box option: GameTime.hour? == 2) and if it is, then force player to pass out and do whatever else you need it to do.
Awesome! Thanks a bunch! 😀 I am also using your Advanced Climate System. I'm trying to do this thing where the player can change their clothes, and there is an option to choose a snow coat. But, I don't want them to be able to wear the snow coat when it isn't snowing outside. How would I do that? 😮
Also, I would like to know if it is at all possible to make "hunger" or "thirst" go down after a certain amount of time. I have my variables set up so that you have 100 hunger and thirst each time you start out the day. After every hour, I want the hunger and thirst to go down by ten. I tried doing a conditional branch and all that...But I'm not sure how the script call would be or anything like that...Any idea?
For the snowing one, you would use Climate_Control.current_weather = [whatevernumbersnowis] and if you are using the default set up, snow is 6 and 7 in climate 0 and 1 and 2 in climate 1.
Yes, you can make hunger and thirst go down every hour. Easiest way to do hourly events is again, a parallel process common event, this time it checks if a variable (that you set to the hour you start out every day plus one, which you set at the same time you set hunger and thirst to 100) is equal to the current hour. If it is, decrease hunger and thirst, and increase the variable by one.
To easily check a variable against a script call, in the conditional branch script box put: $game_variables[id] == GameTime.hour? where id is the id of the variable.
Yes, you can make hunger and thirst go down every hour. Easiest way to do hourly events is again, a parallel process common event, this time it checks if a variable (that you set to the hour you start out every day plus one, which you set at the same time you set hunger and thirst to 100) is equal to the current hour. If it is, decrease hunger and thirst, and increase the variable by one.
To easily check a variable against a script call, in the conditional branch script box put: $game_variables[id] == GameTime.hour? where id is the id of the variable.
Thanks. 😀 I understand the weather part. But...the second part of your explanation about the decreasing hunger and thirst every hour sort of confuses me...Is there an easier explanation for a simplitan like myself? Lol Or, perhaps a demo?
By the way, I tried the Climate_Control.current_weather=(number)
But I just keep getting the same error: Script 'Game_Interpreter' line 450: NoMethodError occured. undefined method 'current_weather=' for Climate_Controle:Module
Hey, can we really chance the clock hud? because I've made hud for time system (on a paper) , so I want to try to chance so that it won't show normal window clock hud.
I said it wrong, it's Climate_Control.current_weather == whatevernumber, for example: Climate_Control.current_weather == 6 would go in the script box.
As for the hunger and thirst thing...
>Conditional Branch: Script: $game_variables[3] == GameTime.hour?
> Control Variable [1] - 10 (Hunger)
> Control Variable [2] - 10 (Thirst)
> Control Variable [3] + 1 (Time)
>Branch End
You set the time variable at the same time you set your hunger and thirst ones to 100 and you set it to whatever the hour is plus one
Yes, I can look into using custom backgrounds for the clock.
I'm trying to get it where it turns 7PM (Local time for the player) Or just 7 PM period, it will tint "Dawn" then slowly change to night when it hits 8 PM it will tint to "Night".
When that happens at 7 PM I also want the lamps/torches to produce light. So I thought I could do this?
GameTime.Hour? == 16 is that 7PM?
When that happens at 7 PM I also want the lamps/torches to produce light. So I thought I could do this?
GameTime.Hour? == 16 is that 7PM?
7pm is 19
Ah thank you. Military time confuses me a lot for some reason.
Do you think I could "dungeons" appear at a certain time?
Just always add 12 (or subtract it) for PM times!
You can use the conditional branch script option in events to decide how events work at different times and make it appear like dungeons only work at a certain time. Like...
>Conditional Branch: Script: GameTime.hour? > 21 or GameTime.hour? < 6
> Message: It's open!
> Teleport: Blah blah
>Else:
> Message: It's closed...
>End Branch
And also, I updated the script so you can use a custom image background for the clock on the map display. Details inside under clock options.
You can use the conditional branch script option in events to decide how events work at different times and make it appear like dungeons only work at a certain time. Like...
>Conditional Branch: Script: GameTime.hour? > 21 or GameTime.hour? < 6
> Message: It's open!
> Teleport: Blah blah
>Else:
> Message: It's closed...
>End Branch
And also, I updated the script so you can use a custom image background for the clock on the map display. Details inside under clock options.
Awesome. I don't need that option as I just made it transparent, Lol. But ah, I assume I do the same thing if I want lights to only "light" up a certain time. Sweet. Thanks.
EDIT: I seem to be confused on how to do this whole lighting system I'm trying to do. I have it:
Conditional Branch: Script: GameTime.hour? > 7 or GameTime.hour? <19
Turn on Switch
Else
Turn off switch.
Then with a event
Switch on
The normal lighting event.
It seems to not work at all, and it seems to be messing the tints up too.
EDIT:
Okay so I'm doing this now, but for some reason it still doesn't work, at all. It is not messing with the tints anymore but... Still a no go.
EDIT2: Nevermind my nubness knows no bounds. I got it! Lol
Feature request: Be able to switch from Real Time to Game Time through a function call.
As it stands I can set the time but I can't figure out how to do USE_REAL_TIME = !USE_REAL_TIME.
(Admittedly I only have rudimentary understanding of RGSS3)
As it stands I can set the time but I can't figure out how to do USE_REAL_TIME = !USE_REAL_TIME.
(Admittedly I only have rudimentary understanding of RGSS3)
You can change every mention of USE_REAL_TIME to $use_real_time and then you can just go $use_real_time = false or $use_real_time = true.
Hi there Master Vlue, i have a question for you, might have been already asked, but how can i disable the tinting for a map entirely?
(underground base) in a way to make sure the battles aren't getting tinted on that map either (evented battles, not normal ones).
Can you help me with it?
Also is the delay at the start of battle before the tint is applied a bug, or just something i`ll have to deal with? ( just hide the battle till it gets applied or something)
BTW cant wait to show you the demo of the game i`m working on.
(underground base) in a way to make sure the battles aren't getting tinted on that map either (evented battles, not normal ones).
Can you help me with it?
Also is the delay at the start of battle before the tint is applied a bug, or just something i`ll have to deal with? ( just hide the battle till it gets applied or something)
BTW cant wait to show you the demo of the game i`m working on.
Put <notint> in the map notes. or <noTint> I can't remember which one.
FACEPALM, geez i`m being an idiot today.... Thank you and sorry for taking your time :S
Original thread: https://forums.rpgmakerweb.com/threads/advanced-game-time.3851/