enderalse/source/scripts/_00e_mq11c_entrymusicboxscript.psc

29 lines
792 B
Plaintext
Raw Normal View History

Scriptname _00E_MQ11c_EntryMusicBoxScript extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == PlayerREF
2024-01-10 14:08:24 +00:00
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