Thread: mobs that track
View Single Post
Old 11-26-2003, 09:35 PM   #7
Spazmatic
Member
 
Join Date: Mar 2003
Posts: 103
Spazmatic is on a distinguished road
Easy solution... Make the tracks doubly linked. That way, the character can simply backtrack along and, at every fork, take a random direction... Assuming they travelled far enough, over enough forks (if not, too bad), then they will search a different path.

Alternatively, you could doubly link then keep a pointer (in the mob) to the last room with a fork in the trail, as well as which direction they came from, so they won't follow that direction again.
Spazmatic is offline   Reply With Quote