i used your code for changing the time and if i used it 4 or more times in a game hour it will change to 17:00pm, 25:40pm , 36:20pm ect. any way to fix that?
Basic Game Time + Night/Day
RGSS3 Scripts (RMVX Ace)Saved files made before the script was put in will cause that error.
You'll see something in the customization portion of the script that allows you to enter id's of maps that are inside (not tinted)
Valid ranges for change is -1440 to 1440, if you use larger numbers then time won't be properly set after the change.
i want to make a Vampire state or class is there a way to make it so if your outside during the day your health will slow go down and make you weaker
you can have a parallel process common event that checks if it's day and also the map that ur currently in. If it's an outside map then simply use the event commands for reducing health
ya i thought of something like that a few hours after i posted it. but thanks it was still helpfull
okay i want to make a tint for a cave that will and some other inside room how can i do this i tried making it a none tint then giving it a tint in an event but it will just go right back to none tint
Okay not sure if it works do I need your game time script for it to work. Because I've waited half an hour and no tint changed so I put a switch to set it to 70 and it crashed and said 'game_interpreter' line 1411: NameError occured
Hi there.
First off, I'd like to say I love your script. It's exactly what I need for my little horror game.
I don't want the clock to be visible at the start of my game, as the player finds a watch later which then allows them to read the time. I've set the time to what I want, I've set line 37 USE CLOCK = false and I can pause the time, no problem. But, while I'm testing the mechanics to restore the clock I keep getting an this error though:
Script 'Game_Interpreter' line 1411: NoMethodError occured.
undefined method 'visible=' for nil:NilClass.
I use the script call -GameTime::clock(true)- (minus the "-"s of course) and I've tried it with a "." instead of "::", both of which are meant to work. I've had the script call before text, after text, on it's own special event. (Edit) I've also remove the time pause in case that was upsetting it, no effect.(End Edit)
But regardless of what I do, I get the same error. What's gone wrong?
Thank you in advance for any and all help.
First off, I'd like to say I love your script. It's exactly what I need for my little horror game.
I don't want the clock to be visible at the start of my game, as the player finds a watch later which then allows them to read the time. I've set the time to what I want, I've set line 37 USE CLOCK = false and I can pause the time, no problem. But, while I'm testing the mechanics to restore the clock I keep getting an this error though:
Script 'Game_Interpreter' line 1411: NoMethodError occured.
undefined method 'visible=' for nil:NilClass.
I use the script call -GameTime::clock(true)- (minus the "-"s of course) and I've tried it with a "." instead of "::", both of which are meant to work. I've had the script call before text, after text, on it's own special event. (Edit) I've also remove the time pause in case that was upsetting it, no effect.(End Edit)
But regardless of what I do, I get the same error. What's gone wrong?
Thank you in advance for any and all help.
I was wondering how would I stop the tints in certain areas like indoors or underwater. I have my code set like this.
#Include the ids of any maps not to be tinted based on time
# Usually reserved for indoor maps
NOTINTMAPS = [3]
3 is the number of the Puzzle room that doesn't need lighting.
#Include the ids of any maps not to be tinted based on time
# Usually reserved for indoor maps
NOTINTMAPS = [3]
3 is the number of the Puzzle room that doesn't need lighting.
With the basic that's exactly how you do it
if you want more than one it'd just be multiple map IDs like [3, 5, 8] e.c.t.
Hello, is it possible to make custom windowskin for the clock, please? ^^ I mean the option to have separate windowskin for this.
Nevermind! I fixed my issue! 😀
Can anyone tell me how to make, for example, a door that you can only open at night? Also first post in this topic in 2015!
Use the time in a condition on the door event... This has been discussed in this thread already (or maybe on the Advance GT thread)
This is most likely a stupid question, or i did something wrong, (I'm relatively new to this) but when i copy the script into RPG Maker VX Ace, and i try to launch the game it says "Script line 184: Name error occured. Uninitialized constant game time Window:Base" what did i do wrong?
This is most likely a stupid question, or i did something wrong, (I'm relatively new to this) but when i copy the script into RPG Maker VX Ace, and i try to launch the game it says "Script line 184: Name error occured. Uninitialized constant game time Window:Base" what did i do wrong?
I've had that problem in my project as well. What's happening is the game doesn't recognize the new script but is trying to run it anyway and gets an error. To get it working, you'll need to start a new game. Hope this helps!
To be safe, when you add a new script always try to test it on a new game rather than loading a save file that was made before the script was added.
I've been using various RPG Maker Incarnates over the years. But one of the things I usually avoid is adding new scripts and tile sets to the game. Simply, because I'm not knowledgeable enough to get these to work with out numerous questions. I don't know of any good resource to learn how to write these scripts or troubleshoot them either. Let's be real, there are so many scripts it's impossible to get every single script to work with every other script. However, I do realize how awesome scripts are. I also recognize how these scripts can make many games stand out.
Which leads me to the next point, after I've copied your script from the paste bin, exactly which section in the script editor does this need to be pasted?
Which leads me to the next point, after I've copied your script from the paste bin, exactly which section in the script editor does this need to be pasted?
is there a way i can change the starting time of the game so when i first open the game to play instead of 12 am it says maybe 5:30 am
also can i make a object (from a tile set) display the time like say i had a clock as the object and as a event i could press the confirm button and it maybe a text box itd say something like "it is 12:30 am"
also can i make a object (from a tile set) display the time like say i had a clock as the object and as a event i could press the confirm button and it maybe a text box itd say something like "it is 12:30 am"
Original thread: https://forums.rpgmakerweb.com/threads/basic-game-time-night-day.1079/