like i said, i'm very new to the dark basic thing, but i'll try to better express what i mean...
say your npc has a limited amount of vision (small logging), then have an array that you would use to keep track of pc movements, say every second or two, until the array hits, say 50 logged coords. then, when whatever 'follow code' kicks in, the npc walks to the first logged pc coord in the array. once he's there, move the npc to the next logged coord that he 'watched' the pc go to. so, the general effect would be that...
-npc spots pc
-npc moves to 'follow mode'
-npc begins logging what he sees (logs pc's position)
-npc begins moving to where he just saw the pc
-pc keeps moving (to a new coord but still in view)
-npc logs pc coords some more
-npc reaches first dest and changes course to next coords logged
-pc walks behind a wall (thinking he's smart)
-npc continues following what he saw (up the the edge of the wall where he saw the pc last)
-npc reaching the end of the coords list, scans the area...
-being in reaching distance of the pc... (who's attached player didn't think your ai could best him)
-npc enters 'attack mode'
sorry i hope i didn't just waste a lot of space on this post..
there are 10 kinds of people.. those who understand binary logic, and those who don't.