55 lines
2.1 KiB
Plaintext
55 lines
2.1 KiB
Plaintext
|
Scriptname _00E_FS_NQ07_DinnerControlSC extends ReferenceAlias
|
||
|
|
||
|
Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)
|
||
|
|
||
|
if FS_NQ07.GetStage() == 370
|
||
|
|
||
|
if akBaseItem == _00E_DalSarkerHoneywine
|
||
|
FS_NQ07_HoneyWineBought.SetValue(PlayerREF.GetItemCount(_00E_DalSarkerHoneywine))
|
||
|
FS_NQ07.UpdateCurrentInstanceGlobal(FS_NQ07_HoneyWineBought)
|
||
|
FS_NQ07.SetObjectiveDisplayed(110, true, true)
|
||
|
elseif akBaseItem == FoodChickenCooked
|
||
|
FS_NQ07_ChickenCooked.SetValue(PlayerREF.GetItemCount(FoodChickenCooked))
|
||
|
FS_NQ07.UpdateCurrentInstanceGlobal(FS_NQ07_ChickenCooked)
|
||
|
FS_NQ07.SetObjectiveDisplayed(120, true, true)
|
||
|
elseif akBaseItem == FoodCabbagePotatoSoup
|
||
|
FS_NQ07_SoupBrewed.SetValue(PlayerREF.GetItemCount(FoodCabbagePotatoSoup))
|
||
|
FS_NQ07.UpdateCurrentInstanceGlobal(FS_NQ07_SoupBrewed)
|
||
|
FS_NQ07.SetObjectiveDisplayed(130, true, true)
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer)
|
||
|
|
||
|
if FS_NQ07.GetStage() == 370
|
||
|
|
||
|
if akBaseItem == _00E_DalSarkerHoneywine
|
||
|
FS_NQ07_HoneyWineBought.SetValue(PlayerREF.GetItemCount(_00E_DalSarkerHoneywine))
|
||
|
FS_NQ07.UpdateCurrentInstanceGlobal(FS_NQ07_HoneyWineBought)
|
||
|
FS_NQ07.SetObjectiveDisplayed(110, true, true)
|
||
|
elseif akBaseItem == FoodChickenCooked
|
||
|
FS_NQ07_ChickenCooked.SetValue(PlayerREF.GetItemCount(FoodChickenCooked))
|
||
|
FS_NQ07.UpdateCurrentInstanceGlobal(FS_NQ07_ChickenCooked)
|
||
|
FS_NQ07.SetObjectiveDisplayed(120, true, true)
|
||
|
elseif akBaseItem == FoodCabbagePotatoSoup
|
||
|
FS_NQ07_SoupBrewed.SetValue(PlayerREF.GetItemCount(FoodCabbagePotatoSoup))
|
||
|
FS_NQ07.UpdateCurrentInstanceGlobal(FS_NQ07_SoupBrewed)
|
||
|
FS_NQ07.SetObjectiveDisplayed(130, true, true)
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
_00E_FS_NQ07_Functions Property FS_NQ07 Auto
|
||
|
|
||
|
Actor Property PlayerREF Auto
|
||
|
|
||
|
Potion Property _00E_DalSarkerHoneywine Auto
|
||
|
Potion Property FoodChickenCooked Auto
|
||
|
Potion Property FoodCabbagePotatoSoup Auto
|
||
|
|
||
|
GlobalVariable Property FS_NQ07_HoneyWineBought Auto
|
||
|
GlobalVariable Property FS_NQ07_ChickenCooked Auto
|
||
|
GlobalVariable Property FS_NQ07_SoupBrewed Auto
|