4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
792 B

Scriptname _00E_MQ11c_EntryMusicBoxScript extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == PlayerREF
Int curStage = MQ11c.GetCurrentStageID()
If (curStage >= 60 && curStage < 70 && _00E_MQ11c_Headache.GetValue() != 0.0) || (curStage >= 70 && curStage < 295)
_00E_MQ11c_SilvergroveEntrySilence.SetValue(1)
ElseIf curStage >= 295
_00E_MQ11c_SilvergroveEntrySilence.SetValue(0)
Disable()
EndIf
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
If akActionRef == PlayerREF
_00E_MQ11c_SilvergroveEntrySilence.SetValue(0)
EndIf
EndEvent
Actor Property PlayerREF Auto
Quest Property MQ11c Auto
GlobalVariable Property _00E_MQ11c_Headache Auto
GlobalVariable Property _00E_MQ11c_SilvergroveEntrySilence Auto