Events Region Wander + Approach

I want events to be able to wander randomly, but to stay within a certain region. I also want them to approach the player once the region is stepped on. If the player goes outside the region, they should stop approaching and resume their random wandering within the region.

Is there a plugin for this? I found one but it was for an older version of RPG Maker.

Right now I can make events do whatever based on if the player steps on the region or not, but idk how to make them wander randomly only within a region, or to stop pursuing and return to wandering if the player leaves the region.
Well, with VisuStella Events and Movement Core you can use <Move Only Region: x> notetag for the event, and use a random movement route for it.

Then you can either use a parallel event to check the player's region with event commands and flip the events' page to a move towards player move route or use the <Activation Region: x> notetag to flip the event pages.
You can also try Galv's Move Route Extras plugin (https://galvs-scripts.com/2020/08/27/mz-move-route-extras/) along with the r88 Proximity Sensor plugin (https://reflector88.itch.io/proximity-sensor).

I have been using this for a "fleeing" event that also stays within a certain region tag, but I'm sure it can be adapted for approaching instead.

Original thread: https://forums.rpgmakerweb.com/threads/events-region-wander-approach.167027/