2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_MQ12c_SC2_BedSC extends ObjectReference
|
|
|
|
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
|
|
|
|
|
|
|
; Start the third dream if MQ12c is at the appropriate stage;
|
|
|
|
; otherwise, act as a regular bed.
|
|
|
|
|
|
|
|
If akActionRef == Game.GetPlayer()
|
2024-01-10 14:08:24 +00:00
|
|
|
If (MQ12c.GetCurrentStageID() >= 5) && (MQ12c.GetCurrentStageID() <= 20)
|
|
|
|
If (MQ12c.GetCurrentStageID() <= 10)
|
2021-10-05 22:15:58 +00:00
|
|
|
MQ12c.ShowMessageBoxBeforeSleeping()
|
|
|
|
EndIf
|
|
|
|
Else
|
|
|
|
Game.SetInChargen(False, False, False)
|
|
|
|
Self.Activate(PlayerREF, True)
|
|
|
|
Game.SetInChargen(False, True, False)
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
_00E_MQ12c_Functions Property MQ12c Auto
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
Quest Property MQ14 Auto
|