NPC Flees/Chases you while avoiding walls

Hey everyone just a quick question, I have several moments in my project where you have to chase an NPC or an NPC chases you. The problem is when this NPC reaches a wall he'll stop moving completely, is there a way to set it up that the NPC will maneuver around walls and such? Thank you

-JAD
You can check "Skip If Cannot Move," but it still may not work perfectly...
You'll need a pathfinding script to do this - there are a few available, but I haven't tried them myself so I can't offer more help.

Original thread: https://forums.rpgmakerweb.com/threads/npc-flees-chases-you-while-avoiding-walls.27198/