and if whoever is interested with build his own game by using same way NC handle mob/npc ai
you can take a look at this article
it explain all information about a scripting game system
"Creating a Scripting System in C++" by Greg Rosenblatt
Part 1:
http://www.gamedev.net/reference/art...rticle1633.asp
Part 2:
http://www.gamedev.net/reference/art...rticle1686.asp
Part 3:
http://www.gamedev.net/reference/art...rticle1788.asp
Part 4:
http://www.gamedev.net/reference/art...rticle1803.asp
Part 5:
http://www.gamedev.net/reference/art...rticle1877.asp
its exactly how nc handle their ai.obj
and this article explains how path finding works in 2d
"A* Pathfinding for Beginners " by Patrick Lester
http://www.gamedev.net/reference/art...rticle2003.asp