enderalse/scripts/source/_00e_nq34_failsavesc.psc

49 lines
794 B
Plaintext
Raw Normal View History

Scriptname _00E_NQ34_FailsaveSC extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerREF
NQ34_PlayerInQuestVolume.SetValueInt(1)
if NQ34.IsRunning() && NQ34.GetStage() == 20
NQ34.Stop()
EndIf
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
if akActionRef == PlayerREF
NQ34_PlayerInQuestVolume.SetValueInt(0)
if NQ34.IsRunning() && NQ34.GetStage() < 15 && !bDone
bDone = True
If NQ34_SC01_ExamineCorpse.IsPlaying()
NQ34_SC01_ExamineCorpse.Stop()
EndIf
NQ34.SetStage(15)
EndIf
EndIf
EndEvent
bool bDone
Actor Property PlayerREF Auto
Quest Property NQ34 Auto
Scene Property NQ34_SC01_ExamineCorpse Auto
GlobalVariable Property NQ34_PlayerInQuestVolume Auto