How do i make an enemy able to both patrol and detect the player with event chase player?

Just as the title says, i don't know how to do that because the random movement and custom (chase player) cannot be put in the same event, do i somehow use second event page?
First page random movement is parallel and calculates distance to player and if it's below x switch to another page event touch that has move toward player and battle processing. But better to get a plugin.
you can do both in 1 page, as moveroute can set to random or specific.
while range could be set with event touch with the condition added of
it's range and flip the page while chasing.

I have a modified event call if the player is idle, the event starts when
touching or it wont start by default if the player isn't walking into it.

but there are more ways to pull this through though, depending how
your chasing works 🙂
you can do both in 1 page, as moveroute can set to random or specific.
while range could be set with event touch with the condition added of
it's range and flip the page while chasing.

I have a modified event call if the player is idle, the event starts when
touching or it wont start by default if the player isn't walking into it.

but there are more ways to pull this through though, depending how
your chasing works 🙂
How would you advise me to make it work?
Are you using Yanfly's Event Chase Player plugin? If so, you need to give a link to it. It's unclear wether you want help with the plugin or with eventing it by yourself.
depends on plugin usages, how well you know eventing.

move routes are similar as parallel.
so using that, you can let it walk left and right.

set it to player touch, and when hit, it chase the player from there.
this if condition can be set to for player touch can set the range for it.

so if the player is within 6 tiles, it chases the plugin or however you set it.

you can test with a text message or let the tint go green or red outside
for debugging to see if it works and replace with whatever you need it to do.
If you are using Yanfly's Event Chase Plugin, you can just put a "Move Randomly" on top of the script calls in the specific move route option, it works perfectly fine.

1739815835873.png
If you are using Yanfly's Event Chase Plugin, you can just put a "Move Randomly" on top of the script calls in the specific move route option, it works perfectly fine.

View attachment 331800
Thank you very much, this is all i needed!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-an-enemy-able-to-both-patrol-and-detect-the-player-with-event-chase-player.175547/