Using Yanfly's Event Player Chase

So I wanted to use this script:

http://yanflychannel.wordpress.com/rmvxa/field-scripts/event-chase-player/

The idea that I had that led me to use this script goes like this:

1. The player is in a dungenon, and he must escape from there without triggering an alarm.

2. All guards are patroling the area and they move at a particular area.

3. If the player is in the guard's viewing range (say, 3 squares), the guard chases him/her.

4. Should the player gets caught, trigger battle.

5. If he/she manages to escape, the guard returns to his post.

The problem that I have is that I can't get them to move while they check if the player is in viewing range. Once I made them move them, but they don't chase the player. How do I do that?
Set the movement to custom, then under the movement route, use this:

@chase_range = 3

Be advised they will not chase you through events, so you will need to make sure the path is clear, else you may get strange behavior like the guards trying to walk forward into an empty square and failing.
Ok, I know that, but where do I place the event's path?

EDIT: Found it. I just had to place the script's commands first.
You don't. The event will automatically take the shortest path to the player (if it exists). If the path is blocked, the event will be unable to get to the player.
OK, I spoke too soon. The guard went a bit crazy. Found the player, but he went on a random route. What did I do wrong?
Probably found stuff in the way so did the best it could. The guard cannot go through any events, so anything on the ground will cause the path to 'bounce'. Also unless you set the chase speed I've noticed they move at warp 10 to track the player down.

Personally, I had to remove this script though....between the tripping on events and such it didn't cut it for me (the events also don't return to start, but stay where they were if you get out of the sight range). I instead had the players 'blind' the guards so that they had to stumble into the player to start a fight. A strange workaround, but it fits into my game universe...maybe you could do something similar by smoke bombs?
Huh, I guess that'll do. Although I have the Smoke Bombs as escape from battles.

Original thread: https://forums.rpgmakerweb.com/threads/using-yanflys-event-player-chase.35010/