enderalse/source/scripts/_00e_cqj02_getjesparsc.psc

41 lines
1.3 KiB
Plaintext

Scriptname _00E_CQJ02_GetJesparSC extends ObjectReference
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == PlayerREF && !bDone && CQJ02.GetCurrentStageID() == 10
If (GameHour.GetValue() < 18) && (GameHour.GetValue() > 5)
_00E_CQJ02_sComeBackLater.Show()
ElseIf (MQ07a.IsRunning() && (MQ07a.GetCurrentStageID() >= 30)) && !(MQ07a.IsCompleted())
_00E_CQJ02_sPlayerHasToFinishMQ07a.Show()
Else
CQJ02.EnableJesparAndStartSC02()
bDone = True
EndIf
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
if akActionRef == PlayerREF && bDone && !CQJ02.IsCompleted()
bDone = False
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
bool bDone
Quest Property MQ07a Auto
Actor Property PlayerREF Auto
GlobalVariable Property GameHour Auto
_00E_CQJ02_Functions Property CQJ02 Auto
Message Property _00E_CQJ02_sComeBackLater Auto
Message Property _00E_CQJ02_sPlayerHasToFinishMQ07a Auto