enderalse/scripts/source/_00e_mq03ruinetriggerstartscene.psc

28 lines
778 B
Plaintext

Scriptname _00E_MQ03RuineTriggerStartScene extends ObjectReference
Actor Property MQ03Soeldner02Ref Auto
Actor Property MQ03Soeldner03Ref Auto
ObjectReference Property MQ03RuineDoor Auto
Scene Property _00E_MQ03_PathOfHopeSceneRuin01 Auto
Quest Property _00E_MQ03_PathOfHope Auto
Int DoOnce
Event OnTrigger(ObjectReference akActionRef)
if(_00E_MQ03_PathOfHope.GetStage() >= 40)
if(akActionRef == Game.GetPlayer())
if(DoOnce == 0)
if(MQ03Soeldner02Ref.IsDead() == true)&&(MQ03Soeldner03Ref.IsDead() == true)
MQ03RuineDoor.lock(false)
MQ03RuineDoor.activate(Game.GetPlayer())
_00E_MQ03_PathOfHopeSceneRuin01.Start()
if _00E_MQ03_PathOfHopeSceneRuin01.IsPlaying()
; Debug.Messagebox("scene is playing!")
DoOnce = 1
endIf
endif
endif
endif
endif
endevent