I just noticed that when you have someone recall the time in a message it can appear wonky. Specifically, if the minute value is 00-09, it'll just appear as 0-9. Example: 1:09 becomes 1:9. Is there something I can do to keep the system from auto-truncating that zero?
Advanced Game Time
RGSS3 Scripts (RMVX Ace)can this script be used with your advance climate script
and also how do i make events only exist on a certain day each year
and also how do i make events only exist on a certain day each year
All right! I finally got around to including the random character quips when your party gets Fatigued or Exhausted. You can use this process vanilla, or maybe repurpose it by removing the States altogether and just having characters comment about the time of day or whatever.
I also made some images detailing the *entire* process. Now you can see what to do to implement a Fatigue system with random character quotes!
You'll need three events (and Vlue's Advanced Game Time script of course!):
- A Rest event (Inn, Tent, etc.) to get the whole process going.
Rest event reference pic: http://i.imgur.com/DOccp0r.png
- A Random Message Variable event to set values you can reference as conditions later.
Random Message Variable pic: http://i.imgur.com/CbO7HAg.png
-The Fatigue and Exhaustion Timer events to add/remove the states when appropriate & trigger the Random Messages.
Fatigue/Exhaustion Timer page 1 pic: http://i.imgur.com/Pm8qJfA.png
Fatigue/Exhaustion Timer page 2 pic: http://i.imgur.com/LP1suNv.png
I also made some images detailing the *entire* process. Now you can see what to do to implement a Fatigue system with random character quotes!
You'll need three events (and Vlue's Advanced Game Time script of course!):
- A Rest event (Inn, Tent, etc.) to get the whole process going.
Rest event reference pic: http://i.imgur.com/DOccp0r.png
- A Random Message Variable event to set values you can reference as conditions later.
Random Message Variable pic: http://i.imgur.com/CbO7HAg.png
-The Fatigue and Exhaustion Timer events to add/remove the states when appropriate & trigger the Random Messages.
Fatigue/Exhaustion Timer page 1 pic: http://i.imgur.com/Pm8qJfA.png
Fatigue/Exhaustion Timer page 2 pic: http://i.imgur.com/LP1suNv.png
Whooops! Indeed it does, updated the pastebin~
Having this and the climate script at the same time will not cause any explosions! Least noones complained yet anyways.
For only certain days of the week you can do a month + day check or use the day_year check. I.E. :
GameTime.day_year? == 203
Would have that conditional branch only work if it was... whatever day of the year that is.
(Apparently that's today actually)
Hey Vlue, I've run into this error while using your script:
Script 'Advance Game Time' line 230 TypeError occurred.can't convert Fixnum into StringI get this error every time I run an event that shows text, saying: The time is GTHOUR:GTMIN. I am certain that it's not a compatibility issue, because I used a fresh copy of the script in a fresh project, and I get this error. The strange part is, in my main project with a load of scripts, I only get this error when the hour updates without leaving the map. Any ideas as to what's causing this?
Script 'Advance Game Time' line 230 TypeError occurred.can't convert Fixnum into StringI get this error every time I run an event that shows text, saying: The time is GTHOUR:GTMIN. I am certain that it's not a compatibility issue, because I used a fresh copy of the script in a fresh project, and I get this error. The strange part is, in my main project with a load of scripts, I only get this error when the hour updates without leaving the map. Any ideas as to what's causing this?
Whoops! Naw, just my bad on the last edit I did. Updated the pastebin to reflect the change~
Thanks man, really happy to hear back so quickly with a fix, it says a lot.
Ironically, I'm also having a problem with your Climate script too, so I'll head over to that forum to post my problem.
Thanks again!
Hey Vlue, back again with another question. When I call this command,
GameTime.notime(true) Time doesn't flow as expected, but the tints don't show up either. Is there a way to freeze time, so time doesn't flow but the tint remains?
And sorry if this double post is against the rules, I couldn't find where to read the rules...
GameTime.notime(true) Time doesn't flow as expected, but the tints don't show up either. Is there a way to freeze time, so time doesn't flow but the tint remains?
And sorry if this double post is against the rules, I couldn't find where to read the rules...
Naw, not against the rules to double post in this part of the forum for legitimate raisins, I'm sure.
Anywho, why was that line in there... oh well, updated the pastebin, try that.
Anywho, why was that line in there... oh well, updated the pastebin, try that.
Nope, still does the same thing...
Erm, well that's odd, it works for me...
When is this occuring?
When is this occuring?
At the beginning of my game, I have that script call start in an autorun event, with a default time of 8:00PM set in the script. The time does work correctly because I can check a clock to see the current time (thanks to your help, previously). So, without this script call the tint runs fine and time flows, and with it the tint doesn't work but time is frozen.
Well, I have to find out why the tint gets delayed at start, but if you put a 60ish second wait before time is paused itll work.
The wait command actually didn't work, but I got it to work. The problem was that I started on a completely empty map and then transferred the player to another map. I simply moved the script call to the other map and it worked fine. Thanks for your time!
so vlue been playing with things and fixing most my issues so far.
I am trying to figure out a way to do something and can not think of a way to do it.
I am trying to create a common event where it needs to track the amount of time passed. In this case an item using a battery pack.
When item is activated i need to start tracking time from this spot, when item turns off (and if possible if max amount of time for one battery runs out than auto shut off) track the time when it goes off. basically allowing me to keep track of battery time and figure out when a battery is dead. hopefully that made sense.
In a nutshell be able to track amount of time passed from one moment to next
I am trying to figure out a way to do something and can not think of a way to do it.
I am trying to create a common event where it needs to track the amount of time passed. In this case an item using a battery pack.
When item is activated i need to start tracking time from this spot, when item turns off (and if possible if max amount of time for one battery runs out than auto shut off) track the time when it goes off. basically allowing me to keep track of battery time and figure out when a battery is dead. hopefully that made sense.
In a nutshell be able to track amount of time passed from one moment to next
Well, the script has timer variables that just decrements a variable by one every minute/second (depending on your seconds), so if you set it to say... 500, then 500 ticks later it'll be 0 and you can have things run then. To avoid the fact that timer variables always count down to zero, you can have the value saved to a second variable to keep track of how much time is supposed to be left, then transfer that value back to the timer variable when then item's on.
Hello again! I have hit a small snag when it comes to businesses being open at specific times.
~Bullet point style!~
* I am using the 24 hour clock system.
* I have a pub that is open between 10 a.m. (10) and 2 a.m. the next day (2).
* My door script (in the conditional branch for deciding if it's open) is as such, "GameTime.hour? >= 10 and GameTime.hour? < 2".
* I don't think it's working because the script is just checking the variable for a number, and doesn't understand that the "2" is the next day. In other words, it's reading it as "Pub will be open only when it is later than 10 a.m. AND earlier than 2 a.m. on the same day. Pub will NEVER be open."
Help on the matter would be greatly appreciated!
~Bullet point style!~
* I am using the 24 hour clock system.
* I have a pub that is open between 10 a.m. (10) and 2 a.m. the next day (2).
* My door script (in the conditional branch for deciding if it's open) is as such, "GameTime.hour? >= 10 and GameTime.hour? < 2".
* I don't think it's working because the script is just checking the variable for a number, and doesn't understand that the "2" is the next day. In other words, it's reading it as "Pub will be open only when it is later than 10 a.m. AND earlier than 2 a.m. on the same day. Pub will NEVER be open."
Help on the matter would be greatly appreciated!
Yes, yes, common problem.
Do GameTime.hour? >= 2 and GameTime.hour? < 10 and have it run from the else modifier.
Do GameTime.hour? >= 2 and GameTime.hour? < 10 and have it run from the else modifier.
Ah, perfect!
I was really over-thinking it, this is such a simple solution...
Thank you for taking the time to help me with this.
Hello
Im using your awesome script in a game that Im making and Ive encountered a small problem which I cant seem to solve.
I made 2 common events that use GameTime.hour? as an condition and one is working and the other isnt working. I've brought pictures and I hoped you could help me.
the eventing of the whole area https://www.dropbox.com/s/dbrf0mzlcu9gld2/eventing.png
this link shows the event thats giving me troubles : https://www.dropbox.com/s/41faq01l9l6ci0f/Common%20event.png
here it is ingame https://www.dropbox.com/s/g04ybgttwomoljv/Common1notworking1.png
this one shows the working event : https://www.dropbox.com/s/teoennfl6gqi6bx/Common%20event2.png
here it is ingame https://www.dropbox.com/s/h6s0fd8ood6mtys/Common2working.png
the lighting common event makes sunlight shine in certain areas during the day time and the lamp common event is supposed to make lights appear on the spot of the event during night time. The lighting event is working perfectly but the lamp isnt.
the one lamp that is shining bright is a check that the lamp works without the nighttime condition (it shines bright even during days ) the lamp evented with a conditional branch doesnt turn on at all.
i hope you can help me ive been stuck on this quite some time now and i havent been able to solve it.
Im using your awesome script in a game that Im making and Ive encountered a small problem which I cant seem to solve.
I made 2 common events that use GameTime.hour? as an condition and one is working and the other isnt working. I've brought pictures and I hoped you could help me.
the eventing of the whole area https://www.dropbox.com/s/dbrf0mzlcu9gld2/eventing.png
this link shows the event thats giving me troubles : https://www.dropbox.com/s/41faq01l9l6ci0f/Common%20event.png
here it is ingame https://www.dropbox.com/s/g04ybgttwomoljv/Common1notworking1.png
this one shows the working event : https://www.dropbox.com/s/teoennfl6gqi6bx/Common%20event2.png
here it is ingame https://www.dropbox.com/s/h6s0fd8ood6mtys/Common2working.png
the lighting common event makes sunlight shine in certain areas during the day time and the lamp common event is supposed to make lights appear on the spot of the event during night time. The lighting event is working perfectly but the lamp isnt.
the one lamp that is shining bright is a check that the lamp works without the nighttime condition (it shines bright even during days ) the lamp evented with a conditional branch doesnt turn on at all.
i hope you can help me ive been stuck on this quite some time now and i havent been able to solve it.
Original thread: https://forums.rpgmakerweb.com/threads/advanced-game-time.3851/