Patrolling enemy to chasing enemy script

Is there a script that can have an enemy walk around on the overworld and when spots the player starts chasing them?
For example fear and hunger. but for vx ace.
I have moved this thread from RGSS3 Scripts (VX Ace) to RGSS3 Script Requests.
What you'll need is an event sensor script. Mogunter has one.
What you'll need is an event sensor script. Mogunter has one.
This is normal vx, not ace? It doesn't seem to work.
Yes, the one I linked is for VX Ace. I used it in an old project of mine. What's the error?
If you're using VX, he has a demo for that as well, although I'm not sure if it has the same script.
@FinnishEngineer MogHunter's website doesn't correctly link to the VX Ace package, instead it accidentally sends you to the VX scripts.

Luckily someone else on the forum has re-hosted the VX Ace scripts. You can find them here.
Thank you! This helped a lot. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/patrolling-enemy-to-chasing-enemy-script.164397/