2021-10-26 02:19:18 +00:00
|
|
|
Scriptname _00E_FS_NQ05_PlayerAlias extends ReferenceAlias
|
|
|
|
|
|
|
|
Event OnInit()
|
2021-12-19 22:10:53 +00:00
|
|
|
AddInventoryEventFilter(_00E_EmptyFormlist)
|
|
|
|
|
2021-10-26 05:29:56 +00:00
|
|
|
_00E_FS_NQ05_GarlicCountGlobal.Value = PlayerREF.GetItemCount(Garlic)
|
|
|
|
_00E_FS_NQ05_MothWingMonarchCountGlobal.Value = PlayerREF.GetItemCount(MothWingMonarch)
|
|
|
|
_00E_FS_NQ05_SkeeverTailCountGlobal.Value = PlayerREF.GetItemCount(SkeeverTail)
|
|
|
|
_00E_FS_NQ05_VynrootCountGlobal.Value = PlayerREF.GetItemCount(Vynroot)
|
|
|
|
|
|
|
|
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_GarlicCountGlobal)
|
|
|
|
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_MothWingMonarchCountGlobal)
|
|
|
|
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_SkeeverTailCountGlobal)
|
|
|
|
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_VynrootCountGlobal)
|
2021-10-26 02:19:18 +00:00
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)
|
|
|
|
|
2022-07-29 22:05:32 +00:00
|
|
|
If FS_NQ05.GetCurrentStageID() != 35
|
2022-08-11 17:28:57 +00:00
|
|
|
AddInventoryEventFilter(_00E_EmptyFormlist)
|
2021-12-19 22:10:53 +00:00
|
|
|
RemoveInventoryEventFilter(Garlic)
|
|
|
|
RemoveInventoryEventFilter(MothWingMonarch)
|
|
|
|
RemoveInventoryEventFilter(Vynroot)
|
|
|
|
RemoveInventoryEventFilter(SkeeverTail)
|
2021-10-26 02:19:18 +00:00
|
|
|
return
|
|
|
|
endif
|
|
|
|
|
|
|
|
if akBaseItem == Garlic
|
|
|
|
FS_NQ05.ModObjectiveGlobal(aiItemCount, _00E_FS_NQ05_GarlicCountGlobal, 37, 1, true, true, true)
|
|
|
|
return
|
|
|
|
endif
|
|
|
|
|
|
|
|
if akBaseItem == MothWingMonarch
|
|
|
|
FS_NQ05.ModObjectiveGlobal(aiItemCount, _00E_FS_NQ05_MothWingMonarchCountGlobal, 38, 1, true, true, true)
|
|
|
|
return
|
|
|
|
endif
|
|
|
|
|
|
|
|
if akBaseItem == SkeeverTail
|
|
|
|
FS_NQ05.ModObjectiveGlobal(aiItemCount, _00E_FS_NQ05_SkeeverTailCountGlobal, 36, 1, true, true, true)
|
|
|
|
return
|
|
|
|
endif
|
|
|
|
|
|
|
|
if akBaseItem == Vynroot
|
|
|
|
FS_NQ05.ModObjectiveGlobal(aiItemCount, _00E_FS_NQ05_VynrootCountGlobal, 39, 1, true, true, true)
|
|
|
|
return
|
|
|
|
endif
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer)
|
|
|
|
|
2022-08-11 17:28:57 +00:00
|
|
|
If FS_NQ05.GetCurrentStageID() != 35
|
|
|
|
AddInventoryEventFilter(_00E_EmptyFormlist)
|
2021-12-19 22:10:53 +00:00
|
|
|
RemoveInventoryEventFilter(Garlic)
|
|
|
|
RemoveInventoryEventFilter(MothWingMonarch)
|
|
|
|
RemoveInventoryEventFilter(Vynroot)
|
|
|
|
RemoveInventoryEventFilter(SkeeverTail)
|
2021-10-26 02:19:18 +00:00
|
|
|
return
|
|
|
|
endif
|
|
|
|
|
|
|
|
if akBaseItem == Garlic
|
2021-10-26 05:29:56 +00:00
|
|
|
bool bNotify = (_00E_FS_NQ05_GarlicCountGlobal.Value > 0)
|
|
|
|
_00E_FS_NQ05_GarlicCountGlobal.Value = PlayerREF.GetItemCount(Garlic)
|
|
|
|
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_GarlicCountGlobal)
|
|
|
|
if bNotify && (_00E_FS_NQ05_GarlicCountGlobal.Value == 0) && FS_NQ05.IsObjectiveCompleted(37)
|
|
|
|
FS_NQ05.SetObjectiveCompleted(37, false)
|
|
|
|
FS_NQ05.SetObjectiveDisplayed(37, true, true)
|
|
|
|
elseif (_00E_FS_NQ05_GarlicCountGlobal.Value > 0) && ! FS_NQ05.IsObjectiveCompleted(37)
|
|
|
|
FS_NQ05.SetObjectiveCompleted(37, true)
|
|
|
|
endif
|
2021-10-26 02:19:18 +00:00
|
|
|
return
|
|
|
|
endif
|
|
|
|
|
|
|
|
if akBaseItem == MothWingMonarch
|
2021-10-26 05:29:56 +00:00
|
|
|
bool bNotify = (_00E_FS_NQ05_MothWingMonarchCountGlobal.Value > 0)
|
|
|
|
_00E_FS_NQ05_MothWingMonarchCountGlobal.Value = PlayerREF.GetItemCount(MothWingMonarch)
|
|
|
|
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_MothWingMonarchCountGlobal)
|
|
|
|
if bNotify && (_00E_FS_NQ05_MothWingMonarchCountGlobal.Value == 0) && FS_NQ05.IsObjectiveCompleted(38)
|
|
|
|
FS_NQ05.SetObjectiveCompleted(38, false)
|
|
|
|
FS_NQ05.SetObjectiveDisplayed(38, true, true)
|
|
|
|
elseif (_00E_FS_NQ05_MothWingMonarchCountGlobal.Value > 0) && ! FS_NQ05.IsObjectiveCompleted(38)
|
|
|
|
FS_NQ05.SetObjectiveCompleted(38, true)
|
|
|
|
endif
|
2021-10-26 02:19:18 +00:00
|
|
|
return
|
|
|
|
endif
|
|
|
|
|
|
|
|
if akBaseItem == SkeeverTail
|
2021-10-26 05:29:56 +00:00
|
|
|
bool bNotify = (_00E_FS_NQ05_SkeeverTailCountGlobal.Value > 0)
|
|
|
|
_00E_FS_NQ05_SkeeverTailCountGlobal.Value = PlayerREF.GetItemCount(SkeeverTail)
|
|
|
|
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_SkeeverTailCountGlobal)
|
|
|
|
if bNotify && (_00E_FS_NQ05_SkeeverTailCountGlobal.Value == 0) && FS_NQ05.IsObjectiveCompleted(36)
|
|
|
|
FS_NQ05.SetObjectiveCompleted(36, false)
|
|
|
|
FS_NQ05.SetObjectiveDisplayed(36, true, true)
|
|
|
|
elseif (_00E_FS_NQ05_SkeeverTailCountGlobal.Value > 0) && ! FS_NQ05.IsObjectiveCompleted(36)
|
|
|
|
FS_NQ05.SetObjectiveCompleted(36, true)
|
|
|
|
endif
|
2021-10-26 02:19:18 +00:00
|
|
|
return
|
|
|
|
endif
|
|
|
|
|
|
|
|
if akBaseItem == Vynroot
|
2021-10-26 05:29:56 +00:00
|
|
|
bool bNotify = (_00E_FS_NQ05_VynrootCountGlobal.Value > 0)
|
|
|
|
_00E_FS_NQ05_VynrootCountGlobal.Value = PlayerREF.GetItemCount(Vynroot)
|
|
|
|
FS_NQ05.UpdateCurrentInstanceGlobal(_00E_FS_NQ05_VynrootCountGlobal)
|
|
|
|
if bNotify && (_00E_FS_NQ05_VynrootCountGlobal.Value == 0) && FS_NQ05.IsObjectiveCompleted(39)
|
|
|
|
FS_NQ05.SetObjectiveCompleted(39, false)
|
|
|
|
FS_NQ05.SetObjectiveDisplayed(39, true, true)
|
|
|
|
elseif (_00E_FS_NQ05_VynrootCountGlobal.Value > 0) && ! FS_NQ05.IsObjectiveCompleted(39)
|
|
|
|
FS_NQ05.SetObjectiveCompleted(39, true)
|
|
|
|
endif
|
2021-10-26 02:19:18 +00:00
|
|
|
return
|
|
|
|
endif
|
|
|
|
|
|
|
|
endEvent
|
|
|
|
|
|
|
|
Quest Property FS_NQ05 Auto
|
|
|
|
|
|
|
|
Ingredient Property Garlic Auto
|
|
|
|
Ingredient Property MothWingMonarch Auto
|
|
|
|
Ingredient Property Vynroot Auto
|
|
|
|
Ingredient Property SkeeverTail Auto
|
|
|
|
|
|
|
|
GlobalVariable Property _00E_FS_NQ05_GarlicCountGlobal Auto
|
|
|
|
GlobalVariable Property _00E_FS_NQ05_MothWingMonarchCountGlobal Auto
|
|
|
|
GlobalVariable Property _00E_FS_NQ05_SkeeverTailCountGlobal Auto
|
|
|
|
GlobalVariable Property _00E_FS_NQ05_VynrootCountGlobal Auto
|
2021-10-26 05:29:56 +00:00
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
2021-12-19 22:10:53 +00:00
|
|
|
|
|
|
|
FormList Property _00E_EmptyFormlist Auto
|