enderalse/source/scripts/_00e_fs_nqr03_heartsc.psc

33 lines
813 B
Plaintext

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)
ElseIf akOldContainer == PlayerREF
Ingredient rNessahsHeart = GetBaseObject() as Ingredient
if akNewContainer
akNewContainer.RemoveItem(rNessahsHeart, 1, true)
else
Disable()
Delete()
endif
PlayerREF.AddItem(rNessahsHeart, 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