Jump to content

Faction armor turn everyone foolhardy


YanL

Recommended Posts

Hello. This is a mod for Caesar Legion.

 

So, every npc that uses a armor with the caesar legion faction script, NEVER run from a fight, never flee.

 

So the script checks the armor, and turn the confidence of the actor in foolhardy

 

http://geck.bethsoft.com/index.php?title=AI_Data_Tab

 

This is possible? Does anyone knows a better solution? I do not wanna change everyone manually, I do not want conflicts with other mods that already change the actors

 

Thank you for your attention.

Edited by YanL
Link to comment
Share on other sites

If I understand your rather terse description, you want to create a script that will set the "confidence" of anyone wearing "Legion" faction armor (note there is more than one Legion faction) to "Foolhardy" automatically.

 

The JIP LN Plugin has the function "LNGetAggroRadius". It suggests to me the use of an EventHandler to trigger whenever any Neutral or Enemy (using function "GetFactionRelation" or "GetFactionCombatReaction") enters the "AggroRadius" of the Legion faction member, then checked for the Legion armor being worn. That script would then "RestoreActorValue" for a temporary boost, or "SetActorValue" to permanently reset the "base value" of "Confidence". That will limit the check to only when needed, but it will require checking against all the NPCs in the cell to determine if the "interlopers" are within the "AggroRadius" (which is used to limit how often the rest of the checks are made).

 

But that's just off the top of my head. So I would say it's "doable", but there is probably a more efficient way to structure the EventHandler tests.

 

-Dubious-

Link to comment
Share on other sites

  • Recently Browsing   0 members

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