I'm working on a small mod that adds several amulets that temporarily "add" the player to a specific faction when equipped, and removes them from that faction when unequipped. They're intended for inclusion in a much bigger mod, but this is a place to start.
Examples: "Forsworn Amulet" needs to add the Player to the Forsworn Faction while equipped, "Draugr Amulet" needs to add the Player to the "DraugrAlly" faction. I know the commands to do this in the Creation Kit, but I don't know how to call it on equip.
I tried using something like the Knights of the Nine mod on Oblivion, that adds the powers of the boots (Kyne's Peace), but I can't get it to work.
Where do I start with it at this point? Any help would be appreciated.