;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 9
Scriptname QF_BaboFollowerReijaQuest_070127DC Extends Quest Hidden

;BEGIN ALIAS PROPERTY Location
;ALIAS PROPERTY TYPE LocationAlias
LocationAlias Property Alias_Location Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY NecromancerRef
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_NecromancerRef Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY BaboReija
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_BaboReija Auto
;END ALIAS PROPERTY

;BEGIN FRAGMENT Fragment_5
Function Fragment_5()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.DRunawayFaction((Alias_BaboReija.getref() as actor))
(Alias_BaboReija.getref() as actor).EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_7
Function Fragment_7()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.GetBasic((Alias_BaboReija.getref() as actor), 1)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_2
Function Fragment_2()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.SwitchXmarker(EMarker, DMarker)
kmyQuest.DSlaveFaction((Alias_BaboReija.getref() as actor))
kmyQuest.MovetoSpot((Alias_BaboReija.getref() as actor), BrittleshinXmarker)
(Alias_BaboReija.getref() as actor).EvaluatePackage()
kmyQuest.Getnaked((Alias_BaboReija.getref() as actor), 1)
kmyQuest.SpawnEnemies(BaboNecromancer, BaboNecroSpawnMarker, 4, Alias_NecromancerRef)
(Alias_NecromancerRef.getref() as actor).EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_1
Function Fragment_1()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
Scene01.Stop()
kmyQuest.GoStateFirst()
kmyQuest.RegisterUpdate(24)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_8
Function Fragment_8()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
;This is Reset Quest Nothing more
kmyQuest.SwitchXmarker(DMarker, EMarker)
kmyQuest.ResetFollowerFaction((Alias_BaboReija.getref() as actor))
(Alias_BaboReija.getref() as actor).disable()
Alias_BaboReija.Clear()
Alias_NecromancerRef.Clear()
BFollowerReijaSwitch.setvalue(0)
Utility.wait(2.0)
Debug.notification("Babo Follower Quest 00 Reset Complete")
Stop()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
Debug.Trace("ReijaQuest Started")
kmyQuest.SpawnFolloweratPlace(BaboReijaXmarkerheading01, 1)
Utility.Wait(3.0)
Scene01.start()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_6
Function Fragment_6()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
SendModEvent("OnPlusRescueCount")
kmyQuest.SwitchXmarker(DMarker, EMarker)
kmyQuest.DFollowerFaction((Alias_BaboReija.getref() as actor))
(Alias_BaboReija.getref() as actor).EvaluatePackage()
Alias_NecromancerRef.Clear()
BFollowerReijaSwitch.setvalue(1)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_4
Function Fragment_4()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.DReleasedFaction((Alias_BaboReija.getref() as actor))
(Alias_BaboReija.getref() as actor).EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

Scene Property Scene01  Auto  

ObjectReference Property BrittleshinXmarker  Auto  

ActorBase Property BaboNecromancer  Auto  

ObjectReference Property BaboNecroSpawnMarker  Auto  

ObjectReference Property EMarker  Auto  

ObjectReference Property DMarker  Auto  

ObjectReference Property BaboReijaXmarkerheading01  Auto  

GlobalVariable Property BFollowerReijaSwitch  Auto  
