Assuming you're using a new project and not the demo as a base(demo works fine), by default unless you changed some options, time should only stop under the following conditions.
Map/Tileset has the <stop_time> notetag
Switch 1 is On/True
A game_message is displayed
An event is activated
There are similar rules for tone changes and weather showing. Not knowing how exactly you set up your project I don't know what could be causing your problems. Best case scenario I can think of is Variable/Switch ID conflicts since you mentioned Yanfly's scripts, Make sure each script's designated Switches/Variables do not clash.
Hello
First off , the scrips is awesome and has opened up loads of ideas and uses for me.
Being quite new to this however, I ran into a roadblock :
I did not start a new project, but tried to incorporate this into my existing one.
Everything went really well until I playtested it. The clock runs fine, but I just can't seem to "control" the day night cycle according to the clock.
I used the demo from Steam ( very nice )
When I "copied" the variables ( Selchar hour (V) " etc, i entered these into the 0061-0080 series (in case that matters?) I tried to make an activateable event to force the time to another hour, but I can't seem to "make contact" with the clock.
I just can't seem to grasp any differences between the script,variables,vommon events and switch from the demo to my game. except for the variables/switch/common events to be in other lines as my 001 and 002 etc was taken already.
Hope this makes sense, I'm sure its all me.. I just cant see where.
*edit*
I tried making a new project, that worked fine. could make events and change the clock all over the place.
It does not even work to press F9 and change the variable on the clock on my original project, or rather.. it works, just have no effect.
My "Hour" Command just does not do anything.
*edit*
Ok, tried to copy all variables into the same positions on my new poject as in the one where it doen not work.
Could not duplicate the error.
If I understand what you said correctly, then I think know what you're doing wrong. Scripts that incorporate switches/variables require you to edit the script to set the ones said script uses to unused ones in your project. Near the top of my calendar script you should see...
module HM_SEL #What variables will be used MIN = 1 #Minute Variable HOUR = 2 #Hour variable, actual/military time. 0 = 12 AM, 13 = 1 PM DAYA = 3 #Day of the Week variable, 1 for Monday, 7 for Sunday DAYB = 4 #Day of the Month variable, you can find a use for it I'm sure. DAYC = 5 #Day of the Year variable, used for festival day checks. MONTH = 6 #Month Variable YEAR = 7 #Year Variable WEATHA = 8 #Current Weather WEATHB = 9 #Tomorrow's WeatherThese are the default settings, it says minute is reserved for variable 1, hour is reserved in variable 2, etc... If you wanted them to be reserved in say 61+ variables, then you would change these lines in the code to be...
module HM_SEL #What variables will be used MIN = 61 #Minute Variable HOUR = 62 #Hour variable, actual/military time. 0 = 12 AM, 13 = 1 PM DAYA = 63 #Day of the Week variable, 1 for Monday, 7 for Sunday DAYB = 64 #Day of the Month variable, you can find a use for it I'm sure. DAYC = 65 #Day of the Year variable, used for festival day checks. MONTH = 66 #Month Variable YEAR = 67 #Year Variable WEATHA = 68 #Current Weather WEATHB = 69 #Tomorrow's WeatherLet me know if that was your problem.
That is so awesome 🙂
Thank you for your time and effort ! Problem solved !
Now I am going to make sweet make up love to your script ^^
*edit*
Ok, guess I was getting some mixed signals, the clock workes like a charm now, I can control the hour.
However, the day /night cylce does not seem to be following the idea.
i start at 6am, it turns dark at 7am .. and just sort of stays that way throughout the day.
The crickets and the lights follow the time, but the light just goes its own path..
Are there more places that I should change some variables? I think I understand enough that the issue is with my common events.
my common events are from 004(afternoon) to 011(resume)
I guess this mess it up, but I just can't see where i change it.
Sorry for being such a mess up.
*edit*
Sorry, I got it .. it was the #Hour => [Minute, ID], I had to change the ID
Check the configuration for each individual script, I posted the main variable portion for my calendar up above for the other person, tho there are a few more settings immediately after such as...
STOP_TIME = 1
NO_TONE = 2
INSIDE_SWITCH = 3
DISABLE_WEATHER = 4
These are the default switch settings. If you turn switch 1 On, then time will stop, If I changed STOP_TIME = 1 to STOP_TIME = 61, then turning on switch 1 won't do anything(where this script is involved), but switch 61 will set time to stop. It's important to know what switches/variables the scripts you use set aside so that you don't accidentally change something unnecessary while setting up your events.
Not knowing what Yanfly scripts you're using, I can't give you exactly what you need, same with how you're using your events. Just remember to read a script's instructions so that you don't miss small details like this.
Hello, im relative new to scripts but im managing to get by, however...
I'm having trouble with the hour_range script call and my objective is fairly simple..... Shops business hours! While the result is false theres no problem, but once its true... for some reason i'm geting a "Script 'Game_Interpreter' line 450: TypeError ocurred. can't convert true into integer".
Now im wondering if im calling the code right, i use an event (door) with a conditional branch calling the script with the exemple presented - HM_SEL::hour_range(9, 21). Is this how it's suposed to be? Tried to begin a clean project but it still remais.... so im guessing I am the error.
Can you help me? Thnx in advance.
Bump!
edit:
I managed to get arround by using common events and switchs, but it would just be simpler to use and "if true" sentence, so my call for help stil remains.
Hi..im new at scripting and i love your calendar script. i also have made a simple bank event and i am trying to add a interest system where if you had X amount in you bank you would get X amount of gold every week or month...or both. please help i have been trying to make this and have had no luck
game freezes every time. thanks
How do I make festivals? I'd be interested in knowing how.
Is there a way to make it so that the game warps you to a different map depending on the time of the day? Similar to how time is handled in Ocarina of Time; when you arrive at night you see a night version of the town where time is frozen. When you get out and back in during the day you'll see the day version.
Yet more ambitious, is it possible for different troops to appear depending on the time of the day?
For someone being really new and hearing all about switches.
STOP_TIME = 1
NO_TONE = 2
INSIDE_SWITCH = 3
DISABLE_WEATHER = 4
Where and how do I add one of these switches to a Map? Do they conflict with other scripts that might have switches 1-4?
Any and all information would be wonderful.
EDIT: Also to make life simple. How can I make fresh games start at like 8am rather then midnight? For testing it gets a bit annoying 🙂
Solved: $game_variables[HOUR] = 8 # set start time. (With all the other variables)
Edit 2: Also I guess while I am at it.. Trying make script that you can go to sleep but it has to be during the night and not the day time. So people not skipping days left and right none stop.
Okay, i'm making a nice Intro but the Clock(ADDON) is still visible on my Intro! How i can hide/toggle the Clock without pressing a button ?¿
I have a major issue, the game that I am working on relies heavily on the atmosphere of the natural surroundings. This means that almost every map has some kind of background sound that plays automatically. My issue is that the moment I installed this script into my game it will no longer automatically play those BGMs. Why is that and how do I fix it?
BTW thanks for the response in advance and Great Script!!(minus my one issue)
FESTIVALDAYS = {
#Day => Variable,
1 => 0,
2 => 0,
}#Please do not remove
What this does? I can't really understand.
#Used to determine if the currend day is flagged as a festival. 0 means it's
#a normal day, and you can set different values for different days in the
#FESTIVALDAYS hash below.
FESTIVAL_VAR = 22
The hash you posted is used alongside this variable that's set aside
FESTIVALDAYS = {
#Day => Variable,
1 => 0,
2 => 0,
}#Please do not remove
On the left side of the => is the day in the year. By default there are 4 months and 28 days per month, so if you were to set aside the 3rd day of the 2nd month, it would be
31 => SomeVariable,
Where SomeVariable would be a number that you choose to have the designated variable change to.
In order to actually use it you would use that variable in a conditional branch or multiple conditional branches to multiple days set aside for festivals. You can have npcs have different text, give them a unique sprite, go to a completely different yet identical for eventing convenience map where you hose the festival(and maybe a game... or not).
That's how it's meant to be used, just an aid to simplify making certain days of the year different or special.
Oh... Ok... It feels like I am an idiot... But I can understand it! Thank you, and keep up the good work!
Can you please make a supporting script which will run the game even if we are not playing the game.. i mean if a crop takes 1hr to grow then it will grow after 1hr even if the game is switched off..just like real time farming games in facebook, android etc...