enderalse/source/scripts/EddsLuckyCoinScript.psc

16 lines
409 B
Plaintext
Raw Normal View History

2022-09-01 16:33:54 +00:00
Scriptname EddsLuckyCoinScript extends ObjectReference
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
Actor PlayerRef = Game.GetForm(0x14) as Actor
if akNewContainer == PlayerRef
PlayerRef.AddPerk(EddsLuckyCoinPerk)
elseif PlayerRef.GetItemCount(self) == 0
PlayerRef.RemovePerk(EddsLuckyCoinPerk)
endif
endEvent
Perk Property EddsLuckyCoinPerk Auto