enderalse/source/scripts/_00e_fs_nq05_vynrootscript.psc

25 lines
822 B
Plaintext
Raw Normal View History

Scriptname _00E_FS_NQ05_VynrootScript extends ObjectReference
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
If FS_NQ05.GetStage() == 35
If akNewContainer == PlayerREF
_00E_FS_NQ05_VynrootCountGlobal.SetValue(PlayerREF.GetItemCount(Vynroot))
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_VynrootCountGlobal)
FS_NQ05.SetObjectiveDisplayed(39, true, true)
ElseIf akOldContainer == PlayerREF
_00E_FS_NQ05_VynrootCountGlobal.SetValue(PlayerREF.GetItemCount(Vynroot))
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_VynrootCountGlobal)
FS_NQ05.SetObjectiveDisplayed(39, true, true)
EndIf
EndIf
EndEvent
Actor Property PlayerREF Auto
Quest Property FS_NQ05 Auto
GlobalVariable Property _00E_FS_NQ05_VynrootCountGlobal Auto
Ingredient Property Vynroot Auto