NPC Stands around

Post » Sat Nov 17, 2012 3:51 pm

I am trying to make a khajiit hunter

the package that I am using
hunt and protal
wonder
eat
eat and sleep
sandbox

how does the flow work? when does skyrim goes to the next package on list?
User avatar
Marie Maillos
 
Posts: 3403
Joined: Wed Mar 21, 2007 4:39 pm

Post » Sat Nov 17, 2012 11:17 am

The Package Stack works from Top Down.

Packages have CONDITIONS - These mean a package may not run all of the time (for example, a shopkeeper package might only run between 8am and 6pm) - You set the CONDITIONS on a package

So the game engine starts at the top of an NPCs package stack and finds the first package (top down) that has conditions which mean it can run

So, if you have no conditions, the first package will always be the one running. And, the reverse; its possible that each package's conditions mean none are currently running
User avatar
JERMAINE VIDAURRI
 
Posts: 3382
Joined: Tue Dec 04, 2007 9:06 am

Post » Sat Nov 17, 2012 8:27 am

thanks, what will be a good CONDITION to get a hunter moving again? goto a point/cell?
User avatar
Katie Pollard
 
Posts: 3460
Joined: Thu Nov 09, 2006 11:23 pm

Post » Sat Nov 17, 2012 3:49 pm

You need to look at why the hunter stopped, if you did not intend him to stop.

If you have the hunting package at the top of the tree, then the game should use that package until the CONDITIONS on it are false.

So you should make sure that:

1. None of the conditions on all of your packages overlap (so they don't have the same start times, or whatever) AND/OR that each package has the conditions you want. The game will re-evalute an NPC's package-stack every now and again, this is when it will switch packages if the conditions are correct
2. The hunting package is presumably some sort of patrol? A looping patrol would mean the hunt will go on forever ... a non-loop will mean it stops when it gets to the end.

There's lots about packages and patrols here: http://www.creationkit.com/Bethesda_Tutorial_Packages


You can do what you want, it just means you need to go through your packages and their conditions carefully. :)
User avatar
J.P loves
 
Posts: 3487
Joined: Thu Jun 21, 2007 9:03 am


Return to V - Skyrim