Event's overlapping without through, is it possible?

hello, I'm trying to do a chase scene with multiple monsters chasing the playing, the problem is that occasionally they get stuck in a doorway.
I was wondering if there's any way to have the events going over each other but without through because I still want them to be confined between the walls.
Is there any way to do this?
Have you tried restricting the NPCs by region? That way, they could be through but not leave their designated area. You could use Galv's Move Route Extras which you can find here.
Have you tried restricting the NPCs by region? That way, they could be through but not leave their designated area. You could use Galv's Move Route Extras which you can find here.
I have that script, Im looking through it but Im not seeing how to restrict an event by region
Though I might also be not noticing it
The only one I can see is random_region(x,x,x) but that parently moves the npc is a random direction which is not what I need
What that script call does is to allow the event to move randomly within whatever region(s) you specify, not simply move in any random direction . It is always contained within the region. For example, I have this dog:
dog.png


I gave it a 'Custom' type in the Autonomous Movement box. With the script call random_region(1) in the move route it could move over my designated area.
1735978197066.png

regions.png


I had NPCs who could only move within region 2.
Of course, you might want the events to move in specific ways, not randomly within their area. Although I've never tried it, I think that if you put that script call first, you could then do their specific move route in the rest of the move command.
What that script call does is to allow the event to move randomly within whatever region(s) you specify, not simply move in any random direction . It is always contained within the region. For example, I have this dog:
View attachment 327941

I gave it a 'Custom' type in the Autonomous Movement box. With the script call random_region(1) in the move route it could move over my designated area.
View attachment 327942
View attachment 327943

I had NPCs who could only move within region 2.
Of course, you might want the events to move in specific ways, not randomly within their area. Although I've never tried it, I think that if you put that script call first, you could then do their specific move route in the rest of the move command.
I'll give it a try when im able to get back to working on my game

UPDATE: It didn't work unfortunately, the characters still go off the walls when chasing the player even with the script call. they will randomly walk within the region I chose and then they go off the walls when chasing the player

UPDATE2: I used Yanfly's move restrict script instead and it works, thank you

Original thread: https://forums.rpgmakerweb.com/threads/events-overlapping-without-through-is-it-possible.174395/