enderalse/source/scripts/_00e_fs_nq07_dinneractivatorscript.psc

23 lines
912 B
Plaintext
Raw Normal View History

Scriptname _00E_FS_NQ07_DinnerActivatorScript extends ObjectReference
Event OnActivate(ObjectReference akActionRef)
2024-01-10 14:08:24 +00:00
if(FS_NQ07.GetCurrentStageID() == 370 && akActionRef == PlayerREF && PlayerREF.GetItemCount(DalSarkerHoneywine) >= 2 && PlayerREF.GetItemCount(FoodChickenCooked) >= 2 && PlayerREF.GetItemCount(FoodCabbagePotatoSoup) >= 2 && FS_NQ07.IsObjectiveCompleted(140) == 1 && FS_NQ07.IsObjectiveCompleted(150) == 1)
FS_NQ07.SetCurrentStageID(380)
PlayerREF.RemoveItem(DalSarkerHoneywine, 2)
PlayerREF.RemoveItem(FoodChickenCooked, 2)
PlayerREF.RemoveItem(FoodCabbagePotatoSoup, 2)
self.disable()
else
_00E_FS_NQ07_DinnerMessagebox.Show()
Endif
EndEvent
Actor Property PlayerREF Auto
Message Property _00E_FS_NQ07_DinnerMessagebox Auto
Potion Property DalSarkerHoneywine Auto
Potion Property FoodChickenCooked Auto
Potion Property FoodCabbagePotatoSoup Auto
Quest Property FS_NQ07 Auto