2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_FS_NQR03_HeartSC extends ObjectReference
|
|
|
|
|
|
|
|
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
|
|
|
|
|
2024-01-10 14:08:24 +00:00
|
|
|
If FS_NQR03.GetCurrentStageID() >= 90 && FS_NQR03.GetCurrentStageID() <= 95
|
2021-10-05 22:15:58 +00:00
|
|
|
If akNewContainer == PlayerREF && !bDone
|
|
|
|
bDone = True
|
2024-01-19 21:35:30 +00:00
|
|
|
FS_NQR03.SetObjectiveDisplayed(40, True, True)
|
|
|
|
ElseIf akOldContainer == PlayerREF
|
2024-01-19 21:40:03 +00:00
|
|
|
Ingredient rNessahsHeart = GetBaseObject() as Ingredient
|
|
|
|
|
2024-01-19 21:35:30 +00:00
|
|
|
if akNewContainer
|
2024-01-19 21:40:03 +00:00
|
|
|
akNewContainer.RemoveItem(rNessahsHeart, 1, true)
|
2024-01-19 21:35:30 +00:00
|
|
|
else
|
|
|
|
Disable()
|
|
|
|
Delete()
|
|
|
|
endif
|
|
|
|
|
2024-01-19 21:40:03 +00:00
|
|
|
PlayerREF.AddItem(rNessahsHeart, 1, true)
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_FS_CantDropItemMessage.Show()
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
bool bDone
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
_00E_FS_NQR03_Functions Property FS_NQR03 Auto
|
|
|
|
|
2024-01-19 21:35:30 +00:00
|
|
|
Message Property _00E_FS_CantDropItemMessage Auto
|