Jump to content

AI Packages?


LtMattmoo

Recommended Posts

Besides all conditions being true, what causes an AI Package on an Actor to run? Can you force it with a script function, is it supposed to be instantaneous once all conditions are met, or is there a specific time at which Package conditions are checked and the correct Package is put into action?

 

I have a FollowPlayer Package on my horse. It is the topmost Package in my horse's AI Package List and its only condition is that the horse has a specified Spell (Ability). I have a script which adds this spell to my horse (debugged and working perfectly) but, once my horse attains this spell, it continues to stand around idle. What more should I be doing to force the change of Package?

 

Thanks so much in advance. Knowing this would make so many more things possible for me.

Link to comment
Share on other sites

I'm looking for a way to force it with a script aswell. However, I do know that when the conditions are met, the package doesn't run instantly. The game runs a checker every once in a while. If you'd wait one hour he would probably follow you. You can force him to recheck his current packages with the horsename.evaluatepackage() script.

 

However I do really want to know how to force a package through scripts, so if you found out how, please let us know =)

Edited by Yeojj
Link to comment
Share on other sites

Thanks Yeojj, although when I managed to get back into the Creation Kit Wiki that one became apparent enough.

 

Actually using AddSpell and EvaluatePackage, where the Spell is the Condition for the Package we want to force and the Package is at the top of the Actor's AI Package list, works. My problem now is that when you buy a horse something happens to invalidate that method. While the horse is pre-bought (whether that be belonging to its original owner or having been SetOwnership'ed) all is fine, but once the very same horse is purchased, things stop working.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...