enderalse/scripts/source/_00e_nq_g_07_letterpickup.psc

27 lines
777 B
Plaintext

ScriptName _00E_NQ_G_07_LetterPickUp extends ObjectReference
Quest Property NQ_G_07Dijaam Auto
Bool bDone
Bool bReadingDone
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
If !bDone && akNewContainer == Game.GetPlayer() && NQ_G_07Dijaam.GetStage() == 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