Help with Modding the Faction Armor Script

Post » Tue May 17, 2011 1:25 am

Allright, gonna need some help here.

I'm trying to create a mod that modifies how faction armor works. It seems that most all of the faction armor mods out there do one of two things: remove the script entirely or disable the script, both of which cause faction armor to act like normal armor.

I don't want to do that. What I want to do is modify how the armor treats positive faction; specifically, I want it to track faction with the associated armor, and not overwrite the faction setting if it's positive. In other words, If I'm wearing NCR armor, I want to retain positive faction with the NCR while wearing the armor, but if NCR faction is negative, it will be set to "neutral" as normal so long as I wear the armor.

Simply removing the specific part of the code for the armor won't do- it'll keep it from overwriting the positive faction, but it won't reset negative faction.

Unfortuantly, I have no idea how to make this happen. When I tried it with the NCR version of the script, I enclosed the section that dealt with the NCR faction in

if RepNVNCR >= 2 0.0   [Portion of the code that deals with resetting the NCR faction]endif


All that did was to keep the script from resetting the faction for ALL factions, but left aggro settings intact. Further fiddling effectively disabled the script completely, at which point I gave up. Any idea on what I'm doing wrong?
User avatar
Da Missz
 
Posts: 3438
Joined: Fri Mar 30, 2007 4:42 pm

Return to Fallout: New Vegas