Quest Property MyQuest Auto
Actor Property ActorCapt
Actor Property Actor1
Actor Property Actor2
Actor Property Actor3
Actor Property Actor4
Actor Property Actor5
Light Property LightCapt
Light Property Light1
Light Property Light2
Light Property Light3
Light Property Light4
Light Property Light5
Auto State Waiting
Event OnActivate(ObjectReference Whodid)
if Whodid == Game.GetPlayer()
if myQuest.GetStage()==100
LightCapt.Enable()
Light1.Enable()
Light2.Enable()
Light3.Enable()
Light4.Enable()
Light5.Enable()
ActorCapt.Enable()
Actor1.Enable()
Actor2.Enable()
Actor3.Enable()
Actor4.Enable()
Actor5.Enable()
Actor1.StartCombat(ActorCapt)
Actor2.StartCombat(ActorCapt)
Actor3.StartCombat(ActorCapt)
Actor4.StartCombat(ActorCapt)
Actor5.StartCombat(ActorCapt)
GoToState("Dormant")
endif
endif
EndEvent
EndState
State Dormant
;does nothing
EndState