1
Fork 0

Prevent dropping Nessah's heart before handing it in

development
Eddoursul 3 months ago
parent 1f4fa33920
commit 2e0fc2f45c
  1. BIN
      Enderal - Forgotten Stories.esm
  2. BIN
      scripts/_00e_fs_nqr03_heartsc.pex
  3. 19
      source/scripts/_00e_fs_nqr03_heartsc.psc
  4. BIN
      strings/enderal - forgotten stories_english.strings

Binary file not shown.

Binary file not shown.

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

Loading…
Cancel
Save