enderalse/source/scripts/_00e_mq11a_sc20_sigilbox.psc

51 lines
1.2 KiB
Plaintext

Scriptname _00E_MQ11a_SC20_SigilBox extends ObjectReference
Event OnActivate(ObjectReference akActionRef)
if !Done && akActionRef == PlayerREF && MQ11a.GetCurrentStageID() >= 115
; int iButton = _00E_MQ11a_SC20_SigilBox01.Show()
if GlobalVariableToCheck.GetValueInt() >= 9
Done = True
if GlobalVariableToCheck == MQ11a_RightTower ; Taynisha
MQ11a.SetObjectiveCompleted(45)
MQ11a.SetObjectiveCompleted(47)
Else ; Maya
MQ11a.SetObjectiveCompleted(42)
MQ11a.SetObjectiveCompleted(40)
EndIf
MQ11a_DoorRiddle.SetValueInt(MQ11a_DoorRiddle.GetValueInt() + 1)
if MQ11a_DoorRiddle.GetValueInt() == 1
DRSStoneLabyrinthianKnockM.Play(Self)
EndIf
MQ11a.CheckForRiddleDoor()
Else
_00E_MQ11a_sSigilBoxMagic.Show()
EndIf
EndIf
EndEvent
bool Done
Actor Property PlayerREF Auto
Message Property _00E_MQ11a_SC20_SigilBox01 Auto
Message Property _00E_MQ11a_sSigilBoxMagic Auto
GlobalVariable Property MQ11a_DoorRiddle Auto
GlobalVariable Property GlobalVariableToCheck Auto
GlobalVariable Property MQ11a_LeftTower Auto
GlobalVariable Property MQ11a_RightTower Auto
_00E_MQ11a_Functions Property MQ11a Auto
Sound Property DRSStoneLabyrinthianKnockM Auto