enderalse/source/scripts/_00e_mq07a_doorbellsc.psc

26 lines
588 B
Plaintext

Scriptname _00E_MQ07a_DoorBellSC extends ObjectReference
Event OnActivate(ObjectReference akActionRef)
If (MQ07a.GetCurrentStageID() == 55)
If (GameHour.GetValue() > 20) || (GameHour.GetValue() < 6)
_00E_BellGong_02M.Play(Self)
MQ07a.SetCurrentStageID(60)
Else
_00E_MQ07_sWaitUntilNightfall.Show()
EndIf
Else
_00E_MQ07_sNothingHappens.Show()
EndIf
EndEvent
Quest Property MQ07a Auto
GlobalVariable Property GameHour Auto
Sound Property _00E_BellGong_02M Auto
Message Property _00E_MQ07_sWaitUntilNightfall Auto
Message Property _00E_MQ07_sNothingHappens Auto