Some AI Questions

Post » Tue Jun 19, 2012 1:04 pm

First easy one, do enemy NPCs automatically use healing potions if they have any in their inventory? I know your companions do, but in my tests, Bandits and the like are not using their potions I've given them. Perhaps I'm killing them too fast?


Next, complex one.

I would like to add to default behaviour, so that if attacked, a NPC has a small chance of first finding a nearby container, and search it for better equipment before rushing to attack the player.
I don't yet fully understand the AI packages screen, but it looks like to me that I need to add extra elements to the Procedure Tree, some combination of Find and Aquire, linked to conditions about being in combat and with a random number check, that is only run the once at the start of combat.

Any experts out there managed to make sense of the AI packages?

I did try to add a Find element to the procedure tree, but then the editor reported an error and crashed.... Got a feeling that at the moment, this won't be possible?
User avatar
Nana Samboy
 
Posts: 3424
Joined: Thu Sep 14, 2006 4:29 pm

Post » Tue Jun 19, 2012 10:23 am

You can use the find and acquire procedures to cause an NPC to find and loot things, I've done that, no error and crashing.
This is the procedure tree i used
Sequence Branch	Simultaneous Branch		Procedure: Find		Procedure: Wait	Procedure: Acquire
You would have to fill out all the variables for these procedures also so they do what you want them to.

I'm not exactly sure how to make it happen during combat, because combat overrides the normal package list or something, although it can be done I think. You would need to make your package be the combat override package or perhaps setting the Interrupt Override to combat in the package settings maybe.
User avatar
Allison Sizemore
 
Posts: 3492
Joined: Wed Jul 19, 2006 6:09 am


Return to V - Skyrim