Make overworld enemies follow the player in a specific area?

I'm making a few large maps for my game, and so far i have enemies walking in circles, but I want a few enemies who follow you in a specific area and ignore you/refuse to leave a specific area in the same map. Does anyone know a way I can do this? Do regions help here?
I wanna keep this game fairly vanilla, so no plugins please.
I wanna keep this game fairly vanilla, so no plugins please.
It doesn't matter whether you use a plugin or an event command. The only reason you wouldn't want to use a plugin is because A: Your game would violate said plugins terms B: Conflict with other plugins

You'll want to use an event sensor, like this one.
i just dont wanna bother with all the complicated stuff is the main reason, im just making this rpg for fun lol
also, i tried putting the plugin into my plugins folder and it didnt actually work (i opened the plugin menu in-program to select it but everything was blank... i just downloaded the javascript 🙁)
i just dont wanna bother with all the complicated stuff is the main reason
If you found installing a plugin to be too complicated, trying to do this in a purely evented way will definitely be harder.

It's not impossible by any means - you could have a parallel event that checks what region it's in, and makes a step towards the player if they're both in the "chasing" region, or take a step backwards instead if it walks into a "border" region around it.

But I'd recommend starting with figuring out how to use plugins, this will make your life a lot easier in the future. Here's a simple guide to them.
it's not the installation that's the problem haha, just dealing with it afterwards. all the buttons and options overwhelm me fast...
i like the sound of this parallel event thing, how do i check for regions? specifically how do i tell the event what's in the region and what to do and whatnot
how do i check for regions?
Here's a tutorial explaining how to work with region IDs - you'd just select the event instead of the player.

Though if you find using a plugin overwhelming, all the logic this will require later will likely prove to be too complicated as well. I'd recommend spending some time working on simpler events and getting used to the engine before tackling more complex tasks like this one.
You could go it pretty barebones basic, have an event trigger a switch when crossed by the player, and have your enemies converge when the switch is set to on. If the player leaves the area, have them trigger the switch off. If you need more complex wrangling you can also have enemy entities trigger the switch off for themselves when they come in contact with the edge of their 'go zone'.

If you're not worried too much about eventing impact, you can make a border out of events that all trigger the same common event. It can be as basic as this:
1710625971996.png

If you set the common event trigger to parallel, it'll keep repeating the action, slowly encroaching on the player.
thank you Mac and HIIVE, it's worked! :]

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/make-overworld-enemies-follow-the-player-in-a-specific-area.166867/