The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => Topic started by: thanatos2k1 on August 19, 2011, 07:15:06 AM

Title: [VX] Eventing problem.
Post by: thanatos2k1 on August 19, 2011, 07:15:06 AM
Ok, so here's what I have, maybe one of you can help me..  I've created a Day/Night system for a certain part of my game.. and it turns switches day and night on...  its a ghost town and evil spirits are out at night, and ghosts you can talk to are out during the day..

Problem:

When the switches are on and off different NPCS are out, and when it changes from night to day.. they just disappear which looks crappy.  I want them to fade in and out during their respective times, and I made an event that works and changes the opacity and looks pretty good, and it works for one cycle...  from night to day..and then it doesnt work anymore, it gets stuck during the day cycle..  Im going to show what I made here and maybe you guys could tell me what the problem is...


Event Page 1:

Graphic is NPC

Conditions:
 Switch:    Night is ON
 Priority:    Same as Characters
Trigger:     Parallel Process

@>Control Self Switch: A =OFF
@>Set Move Route: This Event(Wait)
          $Change Opacity > Wait> Change Opacity
          (Makes the fade out)
@>Control Self Switch B =ON


Event Page 2:

Conditions:
 Switch:    B is ON
 Priority:    Below Characters
Trigger:     Action Button

@> (Blank Event Page with no Graphic)



Event Page 3:

Graphic is nothing

Conditions:
 Switch:    Day is ON
 Priority:    Below Characters
Trigger:     Parallel Process

@>Control Self Switch: B=OFF
@>Set Move Route: This Event(Wait)
          :$>Change Opacity: 0
          :$>Graphic:'Ghost', 6       #changes the graphic to npc
          $Change Opacity > Wait> Change Opacity
          (Makes the fade in)
@>Control Self Switch A =ON



Event Page 4:

Graphic is NPC

Conditions:
 Switch:    A is ON
 Priority:    Same as Characters
Trigger:     Action Button

@>Text:
        "Blah blah blah Im stupid and don't want to work..."

---------------------------------


What am I doing wrong?????? :(
Title: Re: [VX] Eventing problem.. may need a script
Post by: modern algebra on August 19, 2011, 05:30:23 PM
Well, page 3 doesn't run since you never turn Self-Switch A off. The way events work is that only the last page which has its conditions met is run, so once you turn self-switch A on at page 1 page 4 starts to run. Since self-switch A would only ever be turned off in page 3, then nothing happens as page 3 never runs (since page 4 has higher priority and its condition remains met).
Title: Re: [VX] Eventing problem.. may need a script
Post by: Infinate X on August 19, 2011, 08:52:53 PM
Why not use Jet's day/night script? It gives easy eventing and you can have random weather if you want! If not I can make you an event after I finish my script and another event
Title: Re: [VX] Eventing problem.
Post by: Infinate X on August 20, 2011, 12:44:52 AM
Is this posted on another forum?

Anyways you could use Jet's Day/Night system! It's a script but it makes everything VERY simple! You should try it :D
Title: Re: [VX] Eventing problem.
Post by: modern algebra on August 20, 2011, 01:18:58 AM
He had posted a copy of it in the Scripts board too. I moved and merged them.

Don't duplicate topics, thanatos. If it had required a script, a moderator can always move it and we are happy to do so on request. In this case, I think eventing is the more appropriate solution since you're not having a problem with the DNS per se, but simply an event to fade characters out and you'd need to event that even if you had a script.
Title: Re: [VX] Eventing problem.
Post by: Nessiah on August 20, 2011, 02:12:04 AM
Just in case the script is too hard, I recommend these Tutorials: http://rmt.divinelegy.com/V1/

2k3/XP/VX are the usually the same and any change in names are easily understood :3
Title: Re: [VX] Eventing problem.
Post by: thanatos2k1 on August 24, 2011, 04:19:33 PM
Thank you for the responses, and MA, as soon as you posted that it worked, now the system runs flawlessly, except that I want it to change the music, and through eventing I'm using a loop so the music wil just get looped, so I'm stuck having to put a music event in every house and building. :P

I want to stay away from a script here to hone my eventing skills. I'm getting pretty good I would say! Thanks for al your help!