Custom Movements Stop

So, I've always had this issue, and I've looked into it multiple times but have never been able to figure it out.

Anyway... I try to give some of my NPC's a custom movement where they look as if they're working, or moving about their home or shop... but if you stand in their path, talk to them, walk off and eventually come back... sometimes they're frozen in place. You can tell they're frozen because they're trying to complete their move actions, but they're stuck in some strange loop... or it's changed to the point they can't move due to now being blocked by an object.

Any idea how you can avoid this? I typically just give up and either give them a "random" move or just have them stand in place, but I'm now curious how I could fix this. I want my NPCs to have a set path, but then continue that path even if you stand in front of them for a bit before leaving.
Can you post your map, the event (and all its pages), and your custom move route?

I made an event in a new project that just has a move route of move left 3 times, then move right 3 times, but if I get in the event's way, then leave, it continues the route uninterrupted. If I interact with the event, it still continues its route without problems after I walk away.

Perhaps I'm not recreating or understanding the issue accurately, though.
Event movement will messed up if :
  • You checked the "Skip If Cannot Move" and something obstruct its movement in any way.
    upload_2019-1-27_3-38-44.png
  • The event change page in the middle of movement. This will cause the autonomous movement to reset from the start, even if you swap page back and forth for a little while.
  • .... I forgot, or just can't think of anything else.
So basically you just have to UNCHECK "Skip If Cannot Move", and make sure the event don't change page if interacted.
2 options in regards of the "skip if cannot move":
1) If it is unchecked, the event will wait until the next move command is possible to continue executing it's movement route. That is probably what is happening in your case.
2) If it is checked and the current move command is impossible, the event will skip that move command and go to the next one. However, that means that your original intended path will be different since it is skipping a move command.

EDIT: Corrected my error (switched both).
1) If it is checked, the event will wait until the next move command is possible to continue executing it's movement route. That is probably what is happening in your case.
2) If unchecked and the current move command is impossible, the event will skip that move command and go to the next one. However, that means that your original intended path will be different since it is skipping a move command.

I think you have those two switched around - checking "skip if cannot move" means "skip the next move command if it can't be completed" and leaving it unchecked means "wait until the next move command is possible."
@Zevia Oops, you're right lol. Silly me.
*UPDATE* Oh, wait. I get it now. After re-reading the replies, I realize it's due to the event page changing mid-movement. That does happen in my game. The event page changes after hitting a certain switch, which then causes the new page to start that same movement over, but in the new spot... which causes NPC to get stuck. Thanks for all the help everyone! Really appreciate it 🙂

Sorry it took so long to reply. Posted this and then went to work. Here's a screenshot of the event page and move route. I have Repeat Movements check & Skip unchecked. Basically, I've tested the move route before, and they go through it, go back to where they start and repeat. But when I stand in front of them... something messes them up, and suddenly they get stuck against a wall, etc.

upload_2019-1-26_22-1-48.png


upload_2019-1-26_22-0-22.png

upload_2019-1-26_22-0-49.png
If the event that changes the switch controlling the second page is on a different map, it shouldn't matter - the event will start its new move route on the second page, from its original position, when you return to the map.

If the event that changes the switch is on the same map, just do a Set Event Location to move the event back to its starting spot at the same time as you turn on the switch (you might have to experiment if it makes a difference which one is first). Of course this will only work if the event is not actually in view when that switch gets turned on - might look a bit strange if it is.
If the event that changes the switch controlling the second page is on a different map, it shouldn't matter - the event will start its new move route on the second page, from its original position, when you return to the map.

If the event that changes the switch is on the same map, just do a Set Event Location to move the event back to its starting spot at the same time as you turn on the switch (you might have to experiment if it makes a difference which one is first). Of course this will only work if the event is not actually in view when that switch gets turned on - might look a bit strange if it is.

Thanks. I'll try that. It's on the same map, so I'll have to do your second suggestion.

Really appreciate the help everyone.
If the two events (the one with the move route, and the one that changes the switch) are far enough apart, and you don't have a plugin that makes regular events update when they're away from the screen (to override the anti-lag options), it shouldn't matter what order you do them in, as the event won't move until you get closer. So in theory you should be able to change the switch then move the event, and it won't start its new move route before you relocate it, and you should be able to move the event and change the switch, and it won't take the next step in its old move route before the switch comes on. Hope that's understandable.

Original thread: https://forums.rpgmakerweb.com/threads/custom-movements-stop.104924/