25 lines
854 B
Plaintext
25 lines
854 B
Plaintext
|
Scriptname _00E_FS_NQ05_SkeeverScript extends ObjectReference
|
||
|
|
||
|
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
|
||
|
|
||
|
If FS_NQ05.GetStage() == 35
|
||
|
|
||
|
If akNewContainer == PlayerREF
|
||
|
_00E_FS_NQ05_SkeeverTailCountGlobal.SetValue(PlayerREF.GetItemCount(SkeeverTail))
|
||
|
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_SkeeverTailCountGlobal)
|
||
|
FS_NQ05.SetObjectiveDisplayed(36, true, true)
|
||
|
|
||
|
ElseIf akOldContainer == PlayerREF
|
||
|
_00E_FS_NQ05_SkeeverTailCountGlobal.SetValue(PlayerREF.GetItemCount(SkeeverTail))
|
||
|
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_SkeeverTailCountGlobal)
|
||
|
FS_NQ05.SetObjectiveDisplayed(36, true, true)
|
||
|
EndIf
|
||
|
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Actor Property PlayerREF Auto
|
||
|
Quest Property FS_NQ05 Auto
|
||
|
GlobalVariable Property _00E_FS_NQ05_SkeeverTailCountGlobal Auto
|
||
|
Ingredient Property SkeeverTail Auto
|