Changing Autonomous Movement

I wanted to ask if there was a way to change the enemy's autonomous movement type from approach to fixed.


Currently, I have an enemy that appears after you interact with an object. Then after a certain amount of time, says a bit of dialogue then disappears. However, during the dialogue sequence the enemy is still moving around trying to reach the player. I would like the enemy to stop approaching the player during the dialogue sequence, but I'm not sure how to go about this.


This is what I currently have:


A common even that keeps track of the length of the chase


Currently what the movement route does is make the enemy frozen and facing away from the player, but it still continues to move around.


Screen Shot 2016-03-12 at 11.37.00 PM.png


The enemy event that just holds the game over state, and the autonomous movement.


Screen Shot 2016-03-12 at 11.37.34 PM.png


I'm not quite sure if I need to a script for this, if I need to delete this event and replace it with a new event, or if there is a function I'm not aware of?


Thank you for time!
I think if you set the move route in the common event to repeat, it'll override the autonomous movement.


Common events set to parallel process loop by default, so you do not need to add a loop in there and a break loop.  Your break loop is simply going to go to the last command in the list, then start over again from the top.
And to change the autonomous movement, you need to change the page of the event.


I would remove the set move route from the CE completely, have it as autonomous movement on a second page of the event, and use a general switch in the common event to control which page of the event is active.


Also, please note that player touch waits on player movement - if the player stands still, the event will never tag him.


If you want the trigger to react to the events movement, you need to change it to event touch (which means when the event touches the player)
Thank you for your quick reply Shaz and Andar!


This fixed my problem!


I'll definitely try out what you've written Andar, and thank you for player touch info!


I noticed that there was something wrong when the enemy touched the player sometimes, but the end condition would not activate, and now I know why!


Thank you again!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/changing-autonomous-movement.58563/