enderalse/source/scripts/_00e_mq12c_sc2_bedsc.psc

25 lines
651 B
Plaintext

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