02-24-2011, 09:32 PM
Thank you very much for your response. I should have thought of this before. Now just to let you know, if I use any of the
I get this error:
NoMethodError occurred while running the script.
undefined method 'clock_seconds' for #<Game_Time0x966bd40>
It's the same for the minutes and hours. I wanted to bring it to your attention.
However, I did find a way to get the same effect using the fact that you allowed the system to set variables for the seconds, minutes, hours, etc. In reality the only thing that matters is that the hour is correct (10:15pm vs 10:33pm makes no difference to me, just as though it's in the 22nd hour). So what I did was set up 23 different conditional branches, each having the pre-condition that the hours variable is set to 1, 2, 3, etc. Then depending on the number the I would use $game_time.adjust_hours(number) to jump forward or backward to hour 22. Then I can jump to morning because I know the hour will be 10am, and I can adjust to 6am easily. If there is any problem with that way of doing it, or if there is an easier way to get the same effect, please let me know. Thanks again, keep up the great work!
EDIT: I also got this error when I attempted to test a battle in the database, not sure if it's something you can fix or not:
Script 'Day and Night' line 386: NoMethodError occurred
undefined method 'update' for nil:NilClass
I am using CTB by Charlie Fleed with all of his gadgets for a battle system if you needed to know.
In addition, if I try and manually tint the screen(Fade in/out to simulate a scene), the screen will only begin to fade for 1 frame, then it will freeze and not complete the actual screen tint change. This problem only occurs on maps that are affected by the day and night script. The "inside" maps still work normally. I have tried both of these on the demo and it yielded the same results, so I can hope that it's not just my project. Thanks for any assistance.
Code:
# * $game_time.clock_seconds Returns the current seconds(ex 1-60)
# * $game_time.clock_minutes Returns the current minutes(ex 1-60)
# * $game_time.clock_hours Returns the current hours(ex 1-24)
I get this error:
NoMethodError occurred while running the script.
undefined method 'clock_seconds' for #<Game_Time0x966bd40>
It's the same for the minutes and hours. I wanted to bring it to your attention.
However, I did find a way to get the same effect using the fact that you allowed the system to set variables for the seconds, minutes, hours, etc. In reality the only thing that matters is that the hour is correct (10:15pm vs 10:33pm makes no difference to me, just as though it's in the 22nd hour). So what I did was set up 23 different conditional branches, each having the pre-condition that the hours variable is set to 1, 2, 3, etc. Then depending on the number the I would use $game_time.adjust_hours(number) to jump forward or backward to hour 22. Then I can jump to morning because I know the hour will be 10am, and I can adjust to 6am easily. If there is any problem with that way of doing it, or if there is an easier way to get the same effect, please let me know. Thanks again, keep up the great work!
EDIT: I also got this error when I attempted to test a battle in the database, not sure if it's something you can fix or not:
Script 'Day and Night' line 386: NoMethodError occurred
undefined method 'update' for nil:NilClass
I am using CTB by Charlie Fleed with all of his gadgets for a battle system if you needed to know.
In addition, if I try and manually tint the screen(Fade in/out to simulate a scene), the screen will only begin to fade for 1 frame, then it will freeze and not complete the actual screen tint change. This problem only occurs on maps that are affected by the day and night script. The "inside" maps still work normally. I have tried both of these on the demo and it yielded the same results, so I can hope that it's not just my project. Thanks for any assistance.
Habs11