How are quest-related AI packages applied to NPCs?

Post » Fri Jun 22, 2012 1:47 am

Okay, so the problem is following: I have a mod that is supposed to give the player a choice to change the progress of a vanilla quest (http://skyrim.nexusmods.com/mods/18685).

In vanilla, NPCs are supposed to stand in one place, then, after a certain quest stage is reached, go to a different place. Two different packages, each one having a GetStage condition, but one being for an earlier stage, and the other being for a later stage.

The mod, however, adds a possibility for the player to slightly change the progress of the quest, and it requires those NPCs to stay where they were standing in the earlier stage. Unfortunately, the later quest stage still tells them to go to that different place.

My intention was to change the conditions in related vanilla packages and add a new one, which would tell them to stay where they are standing despite the later quest stage.

However, I have no idea how the game applies quest-related AI packages to NPCs. They aren't in those NPCs' base entries, and all what the related quest stages do is doing EvaluatePackage on those NPCs. How does it work? In Oblivion it was perfectly clear to me, but Skyrim have apparently flipped everything upside-down...
User avatar
Mackenzie
 
Posts: 3404
Joined: Tue Jan 23, 2007 9:18 pm

Post » Thu Jun 21, 2012 2:48 pm

Look at the aliases tab for the vanilla quest. Quest aliases can have packages, which supersede packages directly on NPCs. Your quest could also make aliases for those NPCs, give the aliases packages, and if you give your quest a higher priority than the vanilla quest, your packages will have priority.
User avatar
Markie Mark
 
Posts: 3420
Joined: Tue Dec 04, 2007 7:24 am

Post » Thu Jun 21, 2012 7:34 pm

You need to change the conditions of the packages added to the aliases of those npcs. You'll find them under the "Quest Aliases" -Tab of the according quest. The game applies quest-related packages with aliases.
User avatar
Amy Cooper
 
Posts: 3400
Joined: Thu Feb 01, 2007 2:38 am

Post » Thu Jun 21, 2012 4:29 pm

Look at the aliases tab for the vanilla quest. Quest aliases can have packages, which supersede packages directly on NPCs.

Oh, so that's where those AI packages are stored! Just tried that out and it seems to work as intended. :)

Thank you very much, this is exactly what I needed to know. :)


PS: I think I screwed up the grammar in the name of the thread... I still have much to learn.
User avatar
Cedric Pearson
 
Posts: 3487
Joined: Fri Sep 28, 2007 9:39 pm


Return to V - Skyrim