AI: Find Package

Post » Fri Sep 10, 2010 1:09 am

I'm trying to understand the Find Package a little better for NPCs. If the package is included on an NPC, could you have it where the NPC would try to find the player from anywhere or do you have to specify a specific location for the player to be in before the NPC tries to find him/her?

Also, how would sneaking affect the Find Package? Would sneaking just be completely ignored while the NPC attempts to find the player?
User avatar
Genocidal Cry
 
Posts: 3357
Joined: Fri Jun 22, 2007 10:02 pm

Post » Thu Sep 09, 2010 5:42 pm

Find packages on the player can be difficult to get working. Both the player and NPC need to be in relatively the same location for it to work. For example, try looking at Jollring's AI. He is given several travel packages that each take him to the city where the player is. His actual 'contact player' package only activates when the player is in a city and outside. The package doesn't seem to work properly if the NPC is in one city and the player is in another, so if you want your NPC to find the player when he is not in a city, it could prove problematic.

In regard to your second question, I think that when the character is sneaking and he 'finds' an NPC, the game interprets the action as a failed pickpocket attempt. But I'm not completely sure.
User avatar
Tom
 
Posts: 3463
Joined: Sun Aug 05, 2007 7:39 pm

Post » Thu Sep 09, 2010 5:22 pm

Find packages on the player can be difficult to get working. Both the player and NPC need to be in relatively the same location for it to work. For example, try looking at Jollring's AI. He is given several travel packages that each take him to the city where the player is. His actual 'contact player' package only activates when the player is in a city and outside. The package doesn't seem to work properly if the NPC is in one city and the player is in another, so if you want your NPC to find the player when he is not in a city, it could prove problematic.

In regard to your second question, I think that when the character is sneaking and he 'finds' an NPC, the game interprets the action as a failed pickpocket attempt. But I'm not completely sure.

Hmm okay. Thanks for the info. I was looking for different ways of accomplishing an ambush type assassinating from NPCs that attack the player other than the current script I'm working on.
User avatar
Chloe Yarnall
 
Posts: 3461
Joined: Sun Oct 08, 2006 3:26 am

Post » Thu Sep 09, 2010 1:13 pm

Hmm okay. Thanks for the info. I was looking for different ways of accomplishing an ambush type assassinating from NPCs that attack the player other than the current script I'm working on.

Actually, a Find package will work for this. In the Spell Tomes DLC, there is a mage who seeks the player out and then attacks him/her. The mage is located at one of the forts and will run the Find package as long as the Player is outside. The key to getting a Find package to work is making sure the No Low Level Processing flag is unchecked on th NPC. After that, it's just a matter of setting the Player as the target and setting any desired conditions.
User avatar
Rex Help
 
Posts: 3380
Joined: Mon Jun 18, 2007 6:52 pm

Post » Thu Sep 09, 2010 7:20 pm

Actually, a Find package will work for this. In the Spell Tomes DLC, there is a mage who seeks the player out and then attacks him/her. The mage is located at one of the forts and will run the Find package as long as the Player is outside. The key to getting a Find package to work is making sure the No Low Level Processing flag is unchecked on th NPC. After that, it's just a matter of setting the Player as the target and setting any desired conditions.


so then it could work. What if the player is on the other side of the world, would the NPC seek the player out? Also, what about in different cells? And I'm still not sure about the sneaking issue. Would the NPC that is trying to find the player continue seeking the player? Like if you were to see the NPC coming from the distance, you could hit sneak mode and hide from them. What would happen? Would the NPC stop seeking you and go into wander mode unless he/she were to detect you?
User avatar
naomi
 
Posts: 3400
Joined: Tue Jul 11, 2006 2:58 pm

Post » Fri Sep 10, 2010 12:46 am

so then it could work. What if the player is on the other side of the world, would the NPC seek the player out?


Yes, as long as the No Low Level Processing flag is unchecked.

Also, what about in different cells?


The package could be set up so the NPC will seek the Player anywhere.

Would the NPC stop seeking you and go into wander mode unless he/she were to detect you?


As far as I know, the NPC will continue seeking the Player. He/she may not be able to find the Player, but he/she will continue looking.
User avatar
Lalla Vu
 
Posts: 3411
Joined: Wed Jul 19, 2006 9:40 am

Post » Fri Sep 10, 2010 2:55 am

Nice. This will probably change the direction the mod was going into then. Thanks again for the great info.
User avatar
Captian Caveman
 
Posts: 3410
Joined: Thu Sep 20, 2007 5:36 am


Return to IV - Oblivion