enderalse/scripts/source/_00e_mq12c_sc2_bedsc.psc

25 lines
624 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.GetStage() >= 5) && (MQ12c.GetStage() <= 20)
If (MQ12c.GetStage() <= 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