17 lines
457 B
Plaintext
17 lines
457 B
Plaintext
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(EddsLuckyCoin) == 0
|
|
PlayerRef.RemovePerk(EddsLuckyCoinPerk)
|
|
endif
|
|
|
|
endEvent
|
|
|
|
Perk Property EddsLuckyCoinPerk Auto
|
|
MiscObject Property EddsLuckyCoin Auto
|