Part of my mod requires the player to pick up a skull and get a power from it, but for some reason it isn't working, Can anyone help? Here's the script:
MiscObject Property Skull Auto
Spell Property LesserSkull auto
Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)
if (akBaseItem == Skull)
if (Game.GetPlayer().GetItemCount(Skull) == 1)
game.getplayer().addspell(LesserSkull)
endIf
endif
endevent