26 lines
570 B
Plaintext
26 lines
570 B
Plaintext
|
Scriptname _00E_MQ07a_DoorBellSC extends ObjectReference
|
||
|
|
||
|
Event OnActivate(ObjectReference akActionRef)
|
||
|
|
||
|
If (MQ07a.GetStage() == 55)
|
||
|
If (GameHour.GetValue() > 20) || (GameHour.GetValue() < 6)
|
||
|
_00E_BellGong_02M.Play(Self)
|
||
|
MQ07a.SetStage(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
|