enderalse/scripts/source/_00e_mq11c_entrymusicboxscript.psc

29 lines
783 B
Plaintext

Scriptname _00E_MQ11c_EntryMusicBoxScript extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == PlayerREF
Int curStage = MQ11c.GetStage()
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