enderalse/source/scripts/_00e_mq11c_ryneusexitheadachesc.psc

23 lines
675 B
Plaintext

Scriptname _00E_MQ11c_RyneusExitHeadacheSC extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerREF
if _00E_MQ11c_Headache.GetValueInt() == 1
; Debug.Notification("Timescale reset to normal")
PlayerREF.RemoveSpell(_00E_NoTeleportSpell)
Timescale.SetValue(_00E_TimescaleDefault.GetValue())
_00E_MQ11c_Headache.SetValue(0)
Else
Return
EndIf
EndIf
EndEvent
GlobalVariable Property _00E_MQ11c_Headache Auto
GlobalVariable Property GameHour Auto
GlobalVariable Property Timescale Auto
GlobalVariable Property _00E_TimescaleDefault Auto
Actor Property PlayerREF Auto
Spell Property _00E_NoTeleportSpell Auto