
I'm trying to build what should be a very simple mod. If you're wearing imperial armor, Stormcloaks will attack you on sight and v.v. It seems absurd to walk past a Stormcloak patrol wearing legion armor and for them just to walk on by. Conversely, if you're not wearing faction armor, there should be little or no response.
I'd assumed the logic behind this would be simple:
initialize: get currently equiped player armor -- call faction modifier function
Listener function: armor onChange get equiped armor -- call faction modifier function
Faction modifier function {
if armor == imperial, add stormcloaks to player enemy list
else if armor == stormcloak, add Imperials to player enemy list
else clear stormcloak & imperial from player enemy list
}
To start off, I thought I'd just try getting any stormcloak to attack me as I'm on the imperial side of the CW quests so should be a member of an imperial faction. I did achieve this by adding a whole bunch of imperial factions to the stormcloak faction as enemies, but this seems overly complicated. Surely there's one parent faction that distinguishes active stormcloak soldiers and active imperial soldiers which would make them fight if set to enemies?
... but there are SO many factions --all named similarly -- and I can't find a reference that spells out the differences.
For example, what's the difference between CWSonsFaction and CWSonsFactionNPC?
And to be honest, although I can code for web (php, javascript etc) I have no idea where to start with this.
Any and all help would be greatly appreciated.
THANKS!

