enderalse/source/scripts/_00e_nq_g_07_letterpickup.psc

27 lines
786 B
Plaintext
Raw Normal View History

ScriptName _00E_NQ_G_07_LetterPickUp extends ObjectReference
Quest Property NQ_G_07Dijaam Auto
Bool bDone
Bool bReadingDone
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
2024-01-10 14:08:24 +00:00
If !bDone && akNewContainer == Game.GetPlayer() && NQ_G_07Dijaam.GetCurrentStageID() == 60
bDone = true
(NQ_G_07Dijaam as _00E_NQ_G_07_Functions).CheckForBagLooted()
NQ_G_07Dijaam.SetObjectiveDisplayed(64)
(NQ_G_07Dijaam as _00E_NQ_G_07_Functions).CheckIfNoteIsRead() ; need to make a check again, because the objective might not have been displayed yet!
EndIf
EndEvent
Event OnRead()
If bReadingDone == false
bReadingDone = true
NQ_G_07Dijaam.SetObjectiveCompleted(64)
(NQ_G_07Dijaam as _00E_NQ_G_07_Functions).CheckForBagLooted()
EndIf
EndEvent