There's two different parts you'll need in order to script this monster:
The first part is a metric that determines whether the player is to the South of the monster, to the Southeast, to the East, etc. This can be done the same way roaches do it (player is to the South only if he's in the same column and South of the monster) or the same way guards do it (player is to the South only if he's within the 45-degree arc centered about the southern column), which is tougher.
The other part is just to take that direction between the monster and the player, and see if the player is facing that direction or not (for example, if player is to the southeast, test if they are facing southeast or not). If he is facing that direction, the monster moves 1 step towards the player; if not, then the monster stays still.
With that, you should probably be able to do the actual coding work, but post again if you run into any other problems.
____________________________
Quick links to my stuff (in case you forgot where it was):
Click here to view the secret text
[Last edited by Chaco at 02-10-2012 07:12 PM]