As you can probably guess, I don't exactly know what I'm doing, so any help or advice as to why this doesn't work would be great.
Also bonus points:
Pretty sure that this script (if it worked) would remove the perk from the player should an NPC happen to have a copy of the item added to their inventory. Any suggestions on how to fix that?
Latest Failure:
Scriptname ForgeTestScript extends ObjectReference Perk Property TestPerk autoEvent OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer) If (akSourceContainer == Game.GetPlayer()) Game.GetPlayer().AddPerk(TestPerk) endIfEndEventEvent OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer) If (akDestContainer != Game.GetPlayer()) Game.GetPlayer().RemovePerk(TestPerk) endIfEndEvent

