32 lines
688 B
Plaintext
32 lines
688 B
Plaintext
Scriptname _00E_CQJ06_EnableJesparSC extends ObjectReference
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
If akActionRef == PlayerREF && !bDone
|
|
If CQJ06.GetCurrentStageID() == 5
|
|
if ((GameHour.GetValue() < 19) && (GameHour.GetValue() > 4))
|
|
_00E_CQJ06_sComeBackLater.Show()
|
|
Else
|
|
CQJ06.SetCurrentStageID(10)
|
|
CQJ06.SetUp()
|
|
bDone = True
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
|
|
|
If bDone && !CQJ06.IsCompleted()
|
|
bDone = False
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
bool bDone
|
|
|
|
_00E_CQJ06_Functions Property CQJ06 Auto
|
|
Actor Property PlayerREF Auto
|
|
Message Property _00E_CQJ06_sComeBackLater Auto
|
|
GlobalVariable Property GameHour Auto |