Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: Jaarroho on November 29, 2007, 12:21:25 AM
-
Well...I'm having a strange error. I have created a DNS for a game I'm working on, but It is having...issues...
Here is my Code:
------------------------------------------------------------------------------------------
<>Comment: Night Handler
<>Branch if timer1 is 12M 00S or less
<>Tint Screen R070G070B070S100
<>Switch Operation : [0067:Night Events On?] ON
<>Switch Operation : [0067: Day Events On?] Off
:Else Handeler
<>Comment: Day Handler
<>Branch if timer1 is 05M 59S or Less
<>Tint Screen R100G100B100S100
<>Switch Operation : [0067: Day Events On?] ON
<>Switch Operation : [0067:Night Events On?] OFF
:Else Handler
<>Branch Timer1 is 00M01S less
<>Teleport: 007: Inside Your House
<>Timer1 operation:Set, M12S00
------------------------------------------------------------------------------------------
It's pretty basic, and it works in one of my other projects...
My Problem?
It's Always Night!!!
I have no clue what is going on... It Makes my brain hurt to think of what the problem might be...
Any suggestion? I almost threw a shoe into my moniter out of fustration...
I need either another DNS or some help in telling me whats wrong.
Thanks in advance!
-
Where are the if statements? Theres two else statements, so there has to be if statments with them.
Anyway, I'm guessing the problem is that if its a parallel process event, it constintly sets the timer to 12m and thus would always be night. So can you give me the whole code or a screenshot of the event?
-
Originally posted by Jaarroho
<>Comment: Night Handler
<>Branch if timer1 is 12M 00S or less
----<>Tint Screen R070G070B070S100
----<>Switch Operation : [0067:Night Events On?] ON
----<>Switch Operation : [0067: Day Events On?] Off
----:Else Handeler
--------<>Comment: Day Handler
--------<>Branch if timer1 is 05M 59S or Less
------------<>Tint Screen R100G100B100S100
------------<>Switch Operation : [0067: Day Events On?] ON
------------<>Switch Operation : [0067:Night Events On?] OFF
-------------:Else Handler
------------------------<>Branch Timer1 is 00M01S less
------------------------<>Teleport: 007: Inside Your House
------------------------<>Timer1 operation:Set, M12S00
They're there.
-
Here is a screen.
-
Use variables instead of timers.
-
You say it's always night, but, there I see you never put the "Tint Screen" back to normal. In the "Day" block of code, there's not "Tint Screen" putting back to normal. After night falls, that code is showing that the screen will remain at 70, 70, 70, 100 for the time being unless told otherwise. That might be it. Or maybe I am just tired and seeing things here.
-
Hey, thanks! That was the problem. Man, that was kind of a stupid error...
-
*Dies*
-
Originally posted by Jaarroho
Hey, thanks! That was the problem. Man, that was kind of a stupid error...
It happens....A LOT.