enderalse/source/scripts/_00e_mq11a_sc20_sigilbox.psc

60 lines
1.3 KiB
Plaintext

Scriptname _00E_MQ11a_SC20_SigilBox extends ObjectReference
Event OnActivate(ObjectReference akActionRef)
if (MQ11a.GetStage() >= 115) && (akActionRef == PlayerREF) && !Done
; int iButton = _00E_MQ11a_SC20_SigilBox01.Show()
if GlobalVariableToCheck.GetValueInt() >= 9
if MQ11a.ShowTowerRiddleBox(sCodeword)
Done = True
if sCodeword == "Taniysha"
MQ11a.SetObjectiveCompleted(45)
MQ11a.SetObjectiveCompleted(47)
Else
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_MQ07_sNothingHappens.Show()
Return
EndIf
Else
_00E_MQ11a_sSigilBoxMagic.Show()
Return
EndIf
EndIf
EndEvent
bool Done
String Property sCodeword Auto
Actor Property PlayerREF Auto
Message Property _00E_MQ11a_SC20_SigilBox01 Auto
Message Property _00E_MQ11a_sSigilBoxMagic Auto
Message Property _00E_MQ07_sNothingHappens Auto
GlobalVariable Property MQ11a_DoorRiddle Auto
GlobalVariable Property GlobalVariableToCheck Auto
_00E_MQ11a_Functions Property MQ11a Auto
Sound Property DRSStoneLabyrinthianKnockM Auto
Topic Property MQ11a_D14_RemarksTopic Auto