Full Version : Complex NPCs
xmlspawner >>Q&A >>Complex NPCs


<< Prev | Next >>

Lord Hog Fred- 07-24-2008
Ok I realise this might be slightly much to ask from the XML Spawner but it seemed to me that if anything could do this it would be XMLS2.

I'm interested in writing some complex NPC "AI" that will give NPCs routines. Things such as having NPCs sat at tables in taverns rambling to each other (talking NPCs are pretty easy, but can they trigger each other?) with a waiter NPC moving form the bar to the table and spawning food/drink at the table then the food/drink being deleted some time after.

As I say this could be a bit much to be trying to do but we'll see.
Maybe setting up a TriggerOnCarried that would check for something in the waiters inventory and then spawn food at the table? I'm not sure, any ideas?

Cheers smile.gif,


Ednyved- 07-24-2008
Sounds interesting... it's easy enough to get npcs to trigger eachother without writing anything new other than xmldialogs; I have a trio of performing artists that recite a portion of a scene from Macbeth in our Nujel'm theater, and I have a few different groups sitting in inns in Ilshenar that talk to each other.

To get yourself started on this, you can do an "[xmlloadhere whosonfirst.xml" providing you nabbed all the extras... 2 npcs will be created that do an old Abbott and Costello routine. I used it to do all my npc conversations.

Good luck!