Set move route to wait is changing automatic move route

This one's got me baffled. I have a bunch of monsters that move down, down, up. When I run a common event that makes them all wait 30 frames, the move routes somehow change to left, left, right. This only happens under certain conditions. First, the enemies have to have had an earlier event page run. If the first page is bypassed and they activate starting on their second page, the problem doesn't happen. The first page has their movement set to approach, so they chase the player. When one of them is killed, all of their positions are reset, and the next enemy in a pre-defined sequence is moved to his second event page. That puts him in a preset location to fight a solder. The enemy gets a custom move route of move down, down, up every 135 frames, so he kinda looks like's bashing back and forth with a soldier.

I use a common event that makes every monster on the map wait 30 frames after a monster is killed or escaped from, so the player has a second to advance without being swarmed. But any monster who had his first page activated and was then moved to his second page will stop moving down, down, up and start moving left, left, right anytime a wait command is issued to him. There is no left, left, right movement pattern in any of the events on this map, so it seems that they're rotating their original pattern. Also, they occasionally just stop moving at all.

So basically I have guys who are happily moving down, down, up, then I can go click an event that does nothing other than set each monster's events move route to "wait 30 frames," and then suddenly the monsters start moving sideways. They're still on their second event page, because they run all the commands on it when I kill one.

Any ideas?
Please post screenshots of your events - both pages, as well as the common event. Make sure you include the whole event window. If the move route is an autonomous move route, you might need to take extra shots of that (or see if you can open the move route and capture it as part of the event window).


It's FAR better to actually SEE what you've done than to rely on your description.


Also, how do you make them wait 30 frames? Do you turn on a switch or change a variable? Any chance you have added a script that uses that switch or variable, and you're using it for two different things?
Well, nevermind. It seems to be a bug in the editor. What happened was that the monster's page 1 event had a custom move route set, even though they use use Approach on page 1. It was a holdover from copying one monster over from a different map as a prototype for the new map. When a wait command was issued (as a "set move route" for each event, no variables or switches involved), it somehow reverted a monster on page 2 (using custom movement) to the custom movement plan from page 1, although the monster is still on page 2 as far as his actions are concerned. I tried erasing the movement plan on page 1, and they stopped moving instead of going left, left, right. So I just set page 1's movement to down, down, up and it got me the behavior I want.

I tried reproducing the bug with a simpler event that has the same basic conditions, but it didn't happen. The only thing that I noticed is that under these conditions, if I set an event's move route to issue a wait command while a unit is already waiting, they stop moving completely. So that explains why the monsters sometimes stopped moving, but I still don't know the conditions that are causing them to run page 1's deactivated custom movement route while they're on page 2. Fortunately, I don't care anymore  😀
That sounds a bit unbelievable. I've never heard of anybody coming across an issue like this due to an "engine bug" before. Are you using a legally-purchased version of the engine?


I'd like to see your events still, to see if I can find any reason why it might happen. The problem with "oh, it works now, so it's okay" is that you don't know what made it NOT work, so you don't know what made it work again, so you can't guarantee it's not going to start up again randomly.


I never trust a buggy event unless I can determine exactly what caused the issue and what fixed it.

Original thread: https://forums.rpgmakerweb.com/threads/set-move-route-to-wait-is-changing-automatic-move-route.37619/