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

;BEGIN ALIAS PROPERTY FoeRef03
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_FoeRef03 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY BaboFollowerRef02
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_BaboFollowerRef02 Auto
;END ALIAS PROPERTY

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

;BEGIN ALIAS PROPERTY FoeRef01
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_FoeRef01 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY BaboFollowerRef01
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_BaboFollowerRef01 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY FoeRef02
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_FoeRef02 Auto
;END ALIAS PROPERTY

;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
BaboFollowerCLQ01Scene01.stop()
kmyQuest.GoStateFirst()
kmyQuest.RegisterUpdate(24)
;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
kmyQuest.GetBasic((Alias_BaboFollowerRef01.getref() as actor), 1)
kmyQuest.GetBasic((Alias_BaboFollowerRef02.getref() as actor), 2)
;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
;This is Reset Quest Nothing more
BaboSceneTriggerCLQ01Ref.Enable()
(BaboSceneTriggerCLQ01Ref as BaboFollowerSceneTriggerScript).ResetTrigger()
BFollower01Switch.setvalue(0)
kmyQuest.SwitchXmarker(BaboFollowerCLQ01DMarker, BaboFollowerCLQ01EMarker)
kmyQuest.ResetFollowerFaction((Alias_BaboFollowerRef01.getref() as actor))
kmyQuest.ResetFollowerFaction((Alias_BaboFollowerRef02.getref() as actor))
(Alias_BaboFollowerRef01.getref() as actor).Disable()
(Alias_BaboFollowerRef02.getref() as actor).Disable()
Alias_BaboFollowerRef01.Clear()
Alias_BaboFollowerRef02.Clear()
Alias_FoeRef01.GetReference().DeleteWhenAble()
Alias_FoeRef02.GetReference().DeleteWhenAble()
Alias_FoeRef03.GetReference().DeleteWhenAble()
Alias_FoeRef01.Clear()
Alias_FoeRef02.Clear()
Alias_FoeRef03.Clear()
Utility.wait(1.0)
Debug.notification("Babo Follower Quest 01 Reset Complete")
Stop()
;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(BaboFollowerCLQ01EMarker, BaboFollowerCLQ01DMarker)
kmyQuest.DSlaveFaction((Alias_BaboFollowerRef01.getref() as actor))
kmyQuest.DSlaveFaction((Alias_BaboFollowerRef02.getref() as actor))
kmyQuest.MovetoSpot((Alias_BaboFollowerRef01.getref() as actor), BaboFollowerCLQ01XMarkerBilegulchMine)
kmyQuest.MovetoSpot((Alias_BaboFollowerRef02.getref() as actor), BaboFollowerCLQ01XMarkerBilegulchMine)
(Alias_BaboFollowerRef01.getref() as actor).EvaluatePackage()
(Alias_BaboFollowerRef02.getref() as actor).EvaluatePackage()
kmyQuest.Getnaked((Alias_BaboFollowerRef01.getref() as actor), 1)
kmyQuest.Getnaked((Alias_BaboFollowerRef02.getref() as actor), 1)
kmyQuest.SpawnEnemies(BaboBanditBossOrcM, BaboFollowerCLQ01XMarker02BilegulchMine, 4, Alias_FoeRef01)
kmyQuest.SpawnEnemies(BaboBanditOrcM, BaboFollowerCLQ01XMarker03BilegulchMine, 4, Alias_FoeRef02)
kmyQuest.SpawnEnemies(BaboBanditOrcM, BaboFollowerCLQ01XMarker04BilegulchMine, 4, Alias_FoeRef03)
(Alias_FoeRef01.getref() as actor).EvaluatePackage()
(Alias_FoeRef02.getref() as actor).EvaluatePackage()
(Alias_FoeRef03.getref() as actor).EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_3
Function Fragment_3()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.DReleasedFaction((Alias_BaboFollowerRef01.getref() as actor))
kmyQuest.DReleasedFaction((Alias_BaboFollowerRef02.getref() as actor))
(Alias_BaboFollowerRef01.getref() as actor).EvaluatePackage()
(Alias_BaboFollowerRef02.getref() as actor).EvaluatePackage()
;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
;Two Female Followers
;Debug.messagebox("BaboFollowerCLQ01 Started")
;Debug.Trace("BaboFollowerCLQ01 Started")
kmyQuest.SpawnFolloweratPlace(BaboFollowerCLQ01Marker01, 1)
kmyQuest.SpawnFolloweratPlace(BaboFollowerCLQ01Marker02, 2)
;Utility.Wait(1.0)
;(Alias_BaboFollowerRef01.getref() as actor).EvaluatePackage()
;(Alias_BaboFollowerRef02.getref() as actor).EvaluatePackage()
Utility.Wait(3.0)
kmyQuest.Scenetostart()
;BaboFollowerCLQ01Scene01.stop()
;BaboFollowerCLQ01Scene01.start()
;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.DRunawayFaction((Alias_BaboFollowerRef01.getref() as actor))
kmyQuest.DRunawayFaction((Alias_BaboFollowerRef02.getref() as actor))
(Alias_BaboFollowerRef01.getref() as actor).EvaluatePackage()
(Alias_BaboFollowerRef02.getref() as actor).EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT

;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.SwitchXmarker(BaboFollowerCLQ01DMarker, BaboFollowerCLQ01EMarker)
kmyQuest.DFollowerFaction((Alias_BaboFollowerRef01.getref() as actor))
kmyQuest.DFollowerFaction((Alias_BaboFollowerRef02.getref() as actor))
(Alias_BaboFollowerRef01.getref() as actor).EvaluatePackage()
(Alias_BaboFollowerRef02.getref() as actor).EvaluatePackage()
Alias_FoeRef01.GetReference().DeleteWhenAble()
Alias_FoeRef02.GetReference().DeleteWhenAble()
Alias_FoeRef03.GetReference().DeleteWhenAble()
;Alias_FoeRef01.Clear()
;Alias_FoeRef02.Clear()
;Alias_FoeRef03.Clear()
SendModEvent("OnPlusRescueCount")
Utility.wait(5.0)
SendModEvent("OnPlusRescueCount")
Utility.wait(5.0)
BFollower01Switch.setvalue(1)
;Stop()
;END CODE
EndFunction
;END FRAGMENT

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

ObjectReference Property BaboFollowerCLQ01Marker01  Auto  

ObjectReference Property BaboFollowerCLQ01Marker02  Auto  

ActorBase Property BaboBanditBossOrcM  Auto  

ActorBase Property BaboBanditOrcM  Auto  

ObjectReference Property BaboFollowerCLQ01EMarker  Auto  

ObjectReference Property BaboFollowerCLQ01DMarker  Auto  

ObjectReference Property BaboFollowerCLQ01XMarkerBilegulchMine  Auto  

ObjectReference Property BaboFollowerCLQ01XMarker02BilegulchMine  Auto  

ObjectReference Property BaboFollowerCLQ01XMarker03BilegulchMine  Auto  

ObjectReference Property BaboFollowerCLQ01XMarker04BilegulchMine  Auto  

Scene Property BaboFollowerCLQ01Scene01  Auto  

Scene Property BaboFollowerCLQ01Scene02  Auto  

GlobalVariable Property BFollower01Switch  Auto  

ObjectReference Property BaboSceneTriggerCLQ01Ref  Auto  
