Prevent dropping Nessah's heart before handing it in

This commit is contained in:
Eddoursul 2024-01-28 06:30:27 +01:00
parent 1f4fa33920
commit 2e0fc2f45c
4 changed files with 9 additions and 10 deletions

Binary file not shown.

Binary file not shown.

View File

@ -2,31 +2,30 @@ Scriptname _00E_FS_NQR03_HeartSC extends ObjectReference
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
If FS_NQR03.GetCurrentStageID() >= 90 && FS_NQR03.GetCurrentStageID() <= 95
If akNewContainer == PlayerREF && !bDone
bDone = True
FS_NQR03.SetObjectiveDisplayed(40, True, True)
If FS_NQR03.GetCurrentStageID() >= 90 && FS_NQR03.GetCurrentStageID() <= 100
If akNewContainer == PlayerREF
if ! FS_NQR03.IsObjectiveDisplayed(40)
FS_NQR03.SetObjectiveDisplayed(40, True, True)
endif
ElseIf akOldContainer == PlayerREF
Ingredient rNessahsHeart = GetBaseObject() as Ingredient
if akNewContainer
akNewContainer.RemoveItem(rNessahsHeart, 1, true)
akNewContainer.RemoveItem(_00E_FS_NQR03_NessahsHeart, 1, true)
else
Disable()
Delete()
endif
PlayerREF.AddItem(rNessahsHeart, 1, true)
PlayerREF.AddItem(_00E_FS_NQR03_NessahsHeart, 1, true)
_00E_FS_CantDropItemMessage.Show()
EndIf
EndIf
EndEvent
bool bDone
Actor Property PlayerREF Auto
_00E_FS_NQR03_Functions Property FS_NQR03 Auto
Message Property _00E_FS_CantDropItemMessage Auto
Ingredient Property _00E_FS_NQR03_NessahsHeart Auto