Help Me Combine Pathfinding Algorithm with YEP_EventChasePlayer

Hello, guys. I am newbie here and i wanna ask this ....

I wanna make enemy move random little slowly but when the player enter his range, the enemy suddenly chase me and if i go away from his range it will turn back into slowly move again. Anyone can help me, please ?

Thank you if you guys wanna help me 🙂

Original thread: https://forums.rpgmakerweb.com/threads/help-me-combine-pathfinding-algorithm-with-yep_eventchaseplayer.145510/