4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
651 B

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()
If (MQ12c.GetCurrentStageID() >= 5) && (MQ12c.GetCurrentStageID() <= 20)
If (MQ12c.GetCurrentStageID() <= 10)
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