44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
|
Scriptname _00E_MQ11c_GateFailsaveSC extends ObjectReference
|
||
|
|
||
|
;=====================================================================================
|
||
|
; EVENTS
|
||
|
;=====================================================================================
|
||
|
|
||
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
||
|
|
||
|
If akActionRef == PlayerREF && !bDone
|
||
|
int MQ11cStage = MQ11c.GetStage()
|
||
|
If MQ11cStage < 70
|
||
|
_00E_MQ11c_SilvergroveCheatMSG.Show()
|
||
|
PlayerREF.MoveTo(MQ11c_SilvergroveGateWardenREF)
|
||
|
return
|
||
|
EndIf
|
||
|
If MQ11cStage < 90
|
||
|
MQ11c.SilvergroveTimeFailsave()
|
||
|
EndIf
|
||
|
|
||
|
If MQ11c_PlayerInSilvergroveRadius.GetValueInt() == 0
|
||
|
|
||
|
MQ11c_PlayerInSilvergroveRadius.SetValueInt(1)
|
||
|
|
||
|
If MQ11cStage < 80
|
||
|
MQ11c.GateUltimateFailsave()
|
||
|
EndIf
|
||
|
|
||
|
EndIf
|
||
|
bDone = true
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
;=====================================================================================
|
||
|
; PROPERTIES
|
||
|
;=====================================================================================
|
||
|
|
||
|
bool bDone = false
|
||
|
|
||
|
Actor Property MQ11c_SilvergroveGateWardenREF Auto
|
||
|
Actor Property PlayerREF Auto
|
||
|
GlobalVariable Property MQ11c_PlayerInSilvergroveRadius Auto
|
||
|
Message Property _00E_MQ11c_SilvergroveCheatMSG Auto
|
||
|
_00E_MQ11c_Functions Property MQ11c Auto
|