Need help mastering an Autorun trigger event

Hi, I'm still a newbie at this though I've watched several videos on youtube and found a few tutorials else where as well but even with all the info I obtained I have run into a wall with event programming. I don't know if there is already an answer on this forum for this problem, but I've typed the exact problem I have into google with no results answering my problem.

So, the problem I have. I'm trying to create an event that is triggers much like how in Pokemon red and Blue, the classic ones, if you try to walk out of the starting town without getting a pokemon, it triggers Professor Oak to approach you then lead you to his lab.

I'm trying to do something similar to this where the play walks onto a certain square to trigger an auto run event. Now the whole event actually runs smoothly until it ends, The Player is stuck in place. This is how I have it setup

a player touch event trigger with a control switch, (also tried adding a self control switch) a new event page left blank except activating the control or self control switch to end the event on this square. 

The control switch then activates a NPC to approach the character face to face, speaks, then a battle begins. After the battle a conversation between the characters takes place leading up to the NPC becoming a PC and joining the party. Used another control switch here and a new page to use a pop up message stating the PC has joined the party. Using a self control switch after this I have it switch to a blank event page to end the event.

This all works except for the player is stuck after. I've tested the Player touch square on a seperate square with a mild event where passing over it gives you an item, this worked and I could move. 

Any help is much appreciated 
What's the trigger on the blank event page? It should be action button. Any event pages set to autorun that have no event commands will still make the player freeze.


If that's not the problem, then please provide screenshots of all the event pages of interest, ensuring the entire event window is shown, and not just the commands. It's MUCH easier for us to debug a screenshot than a description, as descriptions usually include a heap of irrelevant stuff and leave out a heap of important stuff.


It also sounds like you're using extra switches and event pages when they're really not necessary, which can further complicate cutscenes (which is what this really is, albeit a small one).
http://s178.photobucket.com/user/Kakachi07/library/Screenshots%20on%20RPG%20Maker%20VX%20ACE

This link should take you to an album on my photobucket with the screenshots for each page of the whole event, the first two pages are the player touch square the rest is the autorun NPC event.
Not sure what the command on the first page on the NPC is for since that will never run unless you walk up and talk to him, in which case he'll break as he tries to walk into you and cannot move.

I wouldn't even use an auto-run for this.  I would just make the entire cutscene happen from the event you just stepped on and then at the end turn on a switch to disable the player touch event and hide the NPC.
Not sure what the command on the first page on the NPC is for since that will never run unless you walk up and talk to him, in which case he'll break as he tries to walk into you and cannot move.

I wouldn't even use an auto-run for this.  I would just make the entire cutscene happen from the event you just stepped on and then at the end turn on a switch to disable the player touch event and hide the NPC.
How would the NPC appear from the player touch allone? The way its setup the NPC is in action button mode until the player touched the touch trigger which switches the NPC into an autorun event. Like I said the whole thing does work except for the part where the play is stuck.
It's just a bad way of doing it, because you're using more switches and event pages than you need to, which leads to more problems.


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


Okay, there's a bit of a misunderstanding there about event conditions and so forth. You should check out some beginner tutorials - specifically on switches/self switches/variables, and on event pages, conditions and triggers. There was a blog post on the official forum not too long ago on creating cutscenes that would probably help you.


Do you want this to happen if you touch the angel event OR if you touch the trigger event? Or should it just happen automatically when you touch the trigger event? As it is, I think if you walk up to the angel event and touch it, the game will hang. So I'm going to make the assumption that you ONLY want it to happen when you walk over the trigger event.


lol - you've got some popup text on the last screenshot that's covering a critical bit of information on that event page! What is the self switch that's selected in the conditions?


I recommend putting the entire cutscene onto the first page of the trigger event, and have only two tabs on the Angel event, both set to Action Button trigger, and no event commands. The first page will have the angel sprite and no conditions, and the second page will have no sprite, and will be conditioned by the 'Angel Joins' switch (which is the only switch that will be used).


Now on the trigger event's first page, get rid of the event commands that are there, and replace it with what you've currently got on page 2 and 3 of the Angel event (put ALL the commands in there, so the message comes after the Change Party Member and switch change commands. In the Set Move Route, change the target from "this event" to the Angel event (you can do that - have one event tell another event to move around). Don't add the self switch from page 3 of the angel event. Add a second event page to the trigger event and condition it by the 'Angel Joins' switch as well.


That's all you need to do. There should be NO self switches used, ONE switch, and only two event pages on each of the events.


Now, when you step on the trigger event, IT will control the cutscene. It'll make the angel walk up to the player, the fight will take place, the conversation will happen, the angel will join the party and disappear from the map. And the cutscene won't happen again if you walk over the trigger event again.


If you don't follow that, let me know and I'll do screenshots. This is pretty much EXACTLY what that blog post was talking about ... let me see if I can dig it up.


However, none of what I see here would cause your game to hang. So I suspect you've got ANOTHER event somewhere that has a page set to autorun, where that page is conditioned by either switch 1 or switch 2. It could also be a common event.


Edit: Here we go - that blog article
How would the NPC appear from the player touch allone? The way its setup the NPC is in action button mode until the player touched the touch trigger which switches the NPC into an autorun event. Like I said the whole thing does work except for the part where the play is stuck.
If you want the Angel to appear then make him invisible (no graphic) at the start then use Move Route to give him a sprite.
I have set it up exactly as you suggested, it all runs exactly the same way as when I had all the switches. The Player is still stuck. 

I did somemore playing around and decided to trash the touch event and make a new map where the autorun can do its thing and not be on the main map. I basically set it up now to be like entering a forest area with an entrance and exit and works two ways, when the event ends the player can move now. 

I'll take a look at that blog another night, as I'ma call it quits for the night
I bet, as I said, there's another event on that first map, that's conditioned by one of those switches, and is set to autorun.


While "getting it working" is the main goal, an equally important goal is to understand why it broke. Otherwise (in this case) it could still cause problems when you go back to that original map, and you could also make the same mistake in other places. So I recommend persevering with it until you find out what the problem was in the first place, and fix it, or at least be sure that it's not going to cause further issues.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-mastering-an-autorun-trigger-event.18022/