Scriptname __LALLFriendshipBraceletToggleScript extends activemagiceffect  

Actor Property PlayerRef Auto
Perk Property FriendshipBraceletPerk Auto


Event OnEffectStart(actor akTarget, actor akCaster)
if PlayerRef.HasPerk(FriendshipBraceletPerk)
PlayerRef.RemovePerk(FriendshipBraceletPerk)
debug.notification("Friendship bracelet removed - you will deal damage to Feria")
elseif !PlayerRef.HasPerk(FriendshipBraceletPerk)
PlayerRef.AddPerk(FriendshipBraceletPerk)
debug.notification("Friendship bracelet equipped - your attacks, shouts, and destruction spells won't damage Feria.")
endif


EndEvent