Do you mean following a specific tile?.. Isn't the command similar to this :
NPC Code:
if(tiles[playerx+1,playery-1) == tile number 1 || tile number 2 || etc)){
//Do this..
}
Or add a variable to it for easier use..
I think this is wrong but.. o-well
