Jump to content

Need some help in follower AI


Kuzuba

Recommended Posts

Hello, I am new to this site, please forgive me if I have put this topic on wrong subforum, also as English is not my native language, so please forgive my grammar mistake and strange language use if that cause difficulties in understanding.

 

I am currently working on a follower mod, in which I have add a new type of spell to this follower for him use. I am wondering is there a way to control the follower's AI to make him cast the spell to a specific type of target during combat?

 

I am thinking using keywords for the actor (the follower in my case) to recognized the type target. For example, if the actor have a turn undead spell, and when the actor combat with target that has the keyword actortype undead, the actor will cast this spell. For now I have tried to use UseMagic AI package and add GetCombatTargetHasKeyword, which normally used in control combat music, as condition, but unfortunately this method does not work well. HasKeyWord function in Papyrus script may work in this case, but how should I make the function target to the combat target? I don't think line such as

If akTarget.HasKeyword(actortypeundead)

will work in this case.

 

Also is there ways for an actor to detect the type of actors around him? For example, if I have a thief actor, and want him cast a, like invisible spell to if there are guard around. I am not sure functions such as GetRefTypeAliveCount will work as I am still not quite understand how this function work and I am not sure it has a Papyrus version as well.

 

Another question is about compatibility. I am using Amazing Follower Tweak, but it seems this mod will not compatible with the mod I made if I tried to control over the follower's AI system. So the question will be how could I make it compatible. Add a new type of follower fraction to like what they did in Sofia maybe a good idea, but is there any other simpler ways to achieve it?

 

Thanks.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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