Halp with AI Packages

Post » Fri Feb 18, 2011 7:13 pm

I've started working on a mod, and I have some troubles with AI Packages of my NPC. He wakes up at 6 AM (no problems here), he has breakfast from 6 AM to 7 AM (no problems here too) and then at 7 AM he leaves home to go to work. He reaches the place at 7.33 and then he waits until 8 AM to begin work while he should begin his job immediately. The full AI Packages chain is this:

Package type: Use item at
Day of Week: Monday
Time: 7
Duration: 5
Location: Cell arboretum, ref HusbMondayXMarker
Target: Any object, Object ID hoe_01

Package Type: Eat
Day of Week: Any
Time: 6
Duration 1

Package Type: Sleep
Day of Week: Any
Time: 23
Duration: 7

I hope to have been clear enough.
User avatar
Jah Allen
 
Posts: 3444
Joined: Wed Jan 24, 2007 2:09 am

Post » Sat Feb 19, 2011 1:38 am

Have you selected him in console between 7.33 and 8.00 and called EvaluatePackage (EVP) to see what the engine thinks?

Is there another package that accounts for the remaining 11 hours of the day? If you don't have a package for a time range the last one just gets repeated, but that should just mean he'll keep hoeing after that package ends, so I don't believe it affects this problem, but it may become the next one!
User avatar
Sunny Under
 
Posts: 3368
Joined: Wed Apr 11, 2007 5:31 pm

Post » Fri Feb 18, 2011 10:55 pm

Have you selected him in console between 7.33 and 8.00 and called EvaluatePackage (EVP) to see what the engine thinks?

Is there another package that accounts for the remaining 11 hours of the day? If you don't have a package for a time range the last one just gets repeated, but that should just mean he'll keep hoeing after that package ends, so I don't believe it affects this problem, but it may become the next one!

Ok, I've called EvaluatePackage between 7.33 and 8.00 and it says "ICGardenerHusb picked package travel ()", which is strange because my NPC doesn't have any travel package assigned to him :huh:
User avatar
Gavin boyce
 
Posts: 3436
Joined: Sat Jul 28, 2007 11:19 pm


Return to IV - Oblivion