Restricting Actor Movement

This is kind of an odd question and I'm not even sure there's an answer for it.
Is there any possible way i could restrict the randomized movement of actors to certain areas? either via plugins or through creating an event.
I want to keep these roaming enemies i created from entering certain hallways and rooms.
first, to prevent future confusion: actors is the name for the heroes, the party members, not for events pretending to be NPCs.

Second, the best way is probably region restriction script or plugin.
However, your profile claims using VXA (which requires a script) while you posted in MV (which requires a plugin)

In both cases Yanfly has one, but you need to make sure to download the correct one for your maker.
first, to prevent future confusion: actors is the name for the heroes, the party members, not for events pretending to be NPCs.

Second, the best way is probably region restriction script or plugin.
However, your profile claims using VXA (which requires a script) while you posted in MV (which requires a plugin)

In both cases Yanfly has one, but you need to make sure to download the correct one for your maker.
Thank you!!
Thank you for also reminding me my profile is out of date lol.

Original thread: https://forums.rpgmakerweb.com/threads/restricting-actor-movement.166115/