Chicken with its head cut off! (an event in the making)

What I'm trying to do is create an event where a chicken is at first walking slow.  Then when you touch it, a few SFXs activate and the chicken runs frantically for six seconds.  After the six seconds are up, it goes back to normal until you click it again.  At that time, the cycle repeats.


Unfortunately the closest I get to this is Event 1 is slow walking until "touched".  Then it sounds the SFXs and does a self-switch A.  The second event is the fast movement, which ends after six seconds and hits self-switch B.  The third event is a copy of the first event.  However, after the first cycle, the chicken stops running quickly no matter how many times the player touches it.  It still sounds off the SFXs, but the movement remains the same.  I've tried toggling with turning the self-switches off, but this hasn't done the trick.


Any ideas?
Sounds like you're describing event pages, not events.  Be careful not to confuse terms, as that confuses us, and then we give you the wrong advice.



You should be able to do all of this with a single event page.  Add the following commands:

Code:
Play SE
Set Movement Route (this event): Change Speed (to fastest)
Wait 360 frames (this is 6 seconds)
Set Movement Route (this event): Change Speed (to normal)

The second change speed might even be slower than normal - I don't know how it is in your game, or even in MV if it comes to that, but in earlier makers, events had a speed that was one notch slower than the player (3 instead of 4).


This means when you interact with the chicken, it'll do its stuff, and will ignore you while it's doing it, so you can't interact with it a second time until the 6 seconds is over.
Or, if you want to, you could just turn self switch A off and eliminate the third page with self-switch B. That would make the event turn back to the first page.
I am fairly sure that is the issue here... Page 2 is activating Page 3 (Redundant because everything is already in page 1) without deactivating Page 2 (Self Switch A and B are on now).


You could use Shaz.


Or...


You can set Page 1 to Action Button and have it do what you got... Page 2 can be set to Parallel Process (unless you want it to lock the player up while the chicken is going crazy) and put in a wait command so after 6 seconds have it turn Self Switch A off which will revert it back to Page 1.


Delete Page 3. You don't need it.
Sounds like you're describing event pages, not events.  Be careful not to confuse terms, as that confuses us, and then we give you the wrong advice.



You should be able to do all of this with a single event page.  Add the following commands:

Code:
Play SE
Set Movement Route (this event): Change Speed (to fastest)
Wait 360 frames (this is 6 seconds)
Set Movement Route (this event): Change Speed (to normal)

The second change speed might even be slower than normal - I don't know how it is in your game, or even in MV if it comes to that, but in earlier makers, events had a speed that was one notch slower than the player (3 instead of 4).


This means when you interact with the chicken, it'll do its stuff, and will ignore you while it's doing it, so you can't interact with it a second time until the 6 seconds is over.

Yes, I was meaning pages.  Sorry about that.


So I did what you suggested, and the problem is that when the chicken is "touched", the player waits for 360 frames as well.  The chicken doesn't even move during that time either.
I think a second page is the best idea... put it in parallel process with autonomous movement random, 4x faster and highest, and make it wait the 360 seconds then turn the self-switch that activated the second page off to send it back to the first.
You only gave us a little bit of the information.  I made the assumption that the chicken is already moving randomly, and would continue to do so, just much faster.  If you show a screenshot of your event pages, you put us in a MUCH better position to be able to help you.

Original thread: https://forums.rpgmakerweb.com/threads/chicken-with-its-head-cut-off-an-event-in-the-making.69045/