So, with help a few months ago, I managed to make my mod that has amulets that add a player to a faction.
However, I wanted to make an Amulet called "Amulet of World Peace", that has the combined effect of all Amulets.
My original script looks like this:
Scriptname acpEquipfaction extends ObjectReference Faction Property acpFaction AutoEvent OnEquipped(Actor akActor) akActor.AddToFaction(acpFaction)EndEventEvent OnUnequipped(Actor akActor) akActor.RemoveFromFaction(acpFaction)EndEvent
So, if I wanted to add more do it, would I have lines like follows?
Scriptname acpEquipfaction extends ObjectReference Faction Property acpFaction1 AutoFaction Property acpFaction2 AutoFaction Property acpFaction3 AutoFaction Property acpFaction4 AutoFaction Property acpFaction5 AutoEvent OnEquipped(Actor akActor) akActor.AddToFaction(acpFaction1) akActor.AddToFaction(acpFaction2) ... akActor.AddToFaction(acpFaction5)EndEventEvent OnUnequipped(Actor akActor) akActor.RemoveFromFaction(acpFaction)EndEvent
Am I on the right path, or am I off base? I didn't bother to duplicate the "RemoteFromFaction" lines in the code example, but I would naturally add those. I have the mod working as is, so I don't want to just blindly throw the script in there.