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