Jump to content

Follower AI Interruption


blacklionisd

Recommended Posts

Hi,

 

Yesterday I worked with AI Packages on Followers. Result: Followers do use AI Packages, but only if not following (I did not tested what they do while "wait" command is active).

Since Dawnguard an Serana we know that Followers are able to do something while waiting for the player.

 

Of course I could copy Serana, but I want to know how to script that myself.

My target is e.g. to let Followers to loot corpses in the vicinity for loot (gold, potions), while waiting for the player. Eventually even constructive things like recharging staves with soul gems and so on...

 

Does anyone has experience how to get a follower doing things while waiting for a player?

From my first lecture of the Creator Kit Wiki, I could use a timer event and check for the Actor Value "WaitingForPlayer" (I hope this does not show if "wait command" is just active).

 

I fear that AI might overwrite every "idle" or other command while the follower is still following. Any suggestions?

Link to comment
Share on other sites

If you want something like what Serana does, then I would suggest looking at Serana as a starting point. You want to understand how she works, and not just copy her script/packages? Then study the script and figure out how her AI packages are working. Figure out how the game does it, and then you can build from there. It will probably be more instructive for you to deconstruct Serana's AI first before attempting to replicate it from scratch (or add additional complexities to it).

 

AI packages are strictly prioritized by the game. So if you want your new AI to have priority over following, you'll need to place your idle packages above the follow package, put it in a quest with greater priority, or else condition them to be mutually exclusive.

I believe that the "WaitingForPlayer" value does indeed refer to when the follower is commanded to wait, and not when they are simply inactive.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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