Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: Jaarroho on November 29, 2007, 12:21:25 AM

Title: Strange DNS help
Post 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!
Title:
Post by: DragonBlaze on November 29, 2007, 03:33:42 PM
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?
Title:
Post by: A Forgotten Legend on November 29, 2007, 07:06:07 PM
Quote
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.
Title:
Post by: Jaarroho on November 29, 2007, 09:00:25 PM
Here is a screen.
Title:
Post by: lilsniffs3 on November 29, 2007, 10:33:43 PM
Use variables instead of timers.
Title:
Post by: Ganocide_of_a_Kingdom on November 30, 2007, 07:40:11 AM
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.
Title:
Post by: Jaarroho on November 30, 2007, 12:16:09 PM
Hey, thanks! That was the problem. Man, that was kind of a stupid error...
Title:
Post by: Moosetroop11 on November 30, 2007, 02:39:20 PM
*Dies*
Title:
Post by: Ganocide_of_a_Kingdom on November 30, 2007, 07:43:54 PM
Quote
Originally posted by Jaarroho
Hey, thanks! That was the problem. Man, that was kind of a stupid error...


It happens....A LOT.