The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Heretic86 on March 24, 2012, 09:42:04 PM

Title: [XP]Quick question about how to tell if an Event is executing its conditions...
Post by: Heretic86 on March 24, 2012, 09:42:04 PM
Is there a quick and easy way to tell if an Event is executing anything, like the player walks up to an NPC (Event) and they are talking or moving or doing whatever is in the "List of Event Commands"?

In more detail...  I came across a bit of a quirk in my Caterpillar Rewrite script with turn_toward_event.  Im trying to rethink how to get this to work.  Ok, you know how if you have an NPC that has a Custom Move Route, walks around, and you can "talk" to them?  They dont turn away from the Player until that "List of Event Commands" has completed, then they turn back to their original direction and keep doing whatever it is they were doing.

Well, my weird quirk is taking place with turn_toward_event.  That NPC Event turns toward the player, then immediately turns back away.  And Im not sure how to prevent that from happening.  What I would like to happen is to have let them work like any other NPC with a Custom Move Route.

Script is available in "Heretic's Caterpiller Rewrite" in XP scripts.
Any suggestions? 
Title: Re: [XP]Quick question about how to tell if an Event is executing its conditions...
Post by: Heretic86 on March 25, 2012, 01:06:57 AM
Ok, I think I am going to leave this "as is" because it appears that assigning a new move route to an event does the same thing regardless if it is running my scripted event movement or not.
Title: Re: [XP]Quick question about how to tell if an Event is executing its conditions...
Post by: D&P3 on March 25, 2012, 04:57:12 AM
I'm not understanding exactly what you want.

From what I could tell, you don't want the NPC to face you and talk to you if it isn't already doing that.

Solution is simple, in their 'Set Move Route' list you switch 'Direction FIX' to ON when they are moving, and switch it to off if they are moving in another direction then turn it back on.

Title: Re: [XP]Quick question about how to tell if an Event is executing its conditions...
Post by: Heretic86 on March 25, 2012, 07:10:11 AM
Not by Eventing, talking about the crap thats in the Interpreter.  Coding.

In Eventing, there are two ways to set a Move Route.  One is by selecting Custom in the Drop Down Menu in the Autonomous Movement Box (just to the right of the Graphic in the Event Editor Window), from there, selecting the now not grayed out Move Route button below the Autonomous Movement Box.

The Other way is in the "List of Event Commands" Window which brings up Event Commands Window, Selecting 2 on the Tabs on the Top, then hitting "Set Move Route".

What I was saying was that these two work very very different.  I thought it had something to do with my Script, but apparently it affects any movement assigned from the "Set Move Route" or 2nd way of doing things, so it wasnt my script, thus, I will leave it "as is".

Explaining the Original Question again for you, although I dont really expect an answer since I have made my Decision.