28 lines
816 B
Plaintext
28 lines
816 B
Plaintext
|
Scriptname _00E_FS_NQ05_GarlicScript extends ObjectReference
|
||
|
|
||
|
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
|
||
|
|
||
|
If FS_NQ05.GetStage() == 35
|
||
|
|
||
|
If akNewContainer == PlayerREF
|
||
|
_00E_FS_NQ05_GarlicCountGlobal.SetValue(PlayerREF.GetItemCount(Garlic))
|
||
|
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_GarlicCountGlobal)
|
||
|
FS_NQ05.SetObjectiveDisplayed(37, true, true)
|
||
|
|
||
|
ElseIf akOldContainer == PlayerREF
|
||
|
_00E_FS_NQ05_GarlicCountGlobal.SetValue(PlayerREF.GetItemCount(Garlic))
|
||
|
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_GarlicCountGlobal)
|
||
|
FS_NQ05.SetObjectiveDisplayed(37, true, true)
|
||
|
EndIf
|
||
|
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Actor Property PlayerREF Auto
|
||
|
Quest Property FS_NQ05 Auto
|
||
|
GlobalVariable Property _00E_FS_NQ05_GarlicCountGlobal Auto
|
||
|
Ingredient Property Garlic Auto
|
||
|
|
||
|
|