Take a look at a good MUD (my favorite is
Mystical Mud. I think the link will work... The AI there, if you just glance at it, looks completely stupid (and it really is), but if you play for a while, you see the NPCs do all kinds of things. The town guards defend the citizens, a newspaper boy walks around selling papers. In combat, the NPCs are really nice. They can win very easily if you aren''t careful, and they don''t cheat either. This AI is not quite up to the level of what you are talking about, but it isn''t all that far behind. The coding for it is VERY easy. An FSM with random movement selection, different types of attitudes towards different players/classes/alignments. They can sit, they can bash, they can eat. Just slap a GUI on top and you have a pretty good game.
--------------------
You are not a real programmer until you end all your sentences with semicolons;
(c) 2000 ROAD Programming Yanroy@usa.com
Visit the ROAD Programming Website for more programming help.