1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

55 lines
2.1 KiB

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