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

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

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

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

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

;BEGIN ALIAS PROPERTY BaboFollowerRef03
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_BaboFollowerRef03 Auto
;END ALIAS PROPERTY

;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 FRAGMENT Fragment_4
Function Fragment_4()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
(Alias_BaboFollowerRef01.getref() as actor).EvaluatePackage()
;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
BaboFollowerCLQ02XmarkerBed.disable(true)
kmyQuest.DRunawayFaction((Alias_BaboFollowerRef01.getref() as actor))
kmyQuest.SwitchXmarker(BaboFollowerCLQ02DMarker, BaboFollowerCLQ02EMarker)
kmyQuest.DFollowerFaction((Alias_BaboFollowerRef01.getref() as actor))
(Alias_BaboFollowerRef01.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)
BFollower03Switch.setvalue(1)
;Stop()
;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.GetBasic((Alias_BaboFollowerRef01.getref() as actor), 2)
Setstage(20)
;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
(CLQ02SceneTrigger01Ref as BaboFollowerSceneTriggerScript).ResetTrigger()
CLQ02SceneTrigger01Ref.disable()
BaboFollowerCLQ02XmarkerBed.disable()
kmyQuest.SwitchXmarker(BaboFollowerCLQ02DMarker, BaboFollowerCLQ02EMarker)
kmyQuest.ResetFollowerFaction((Alias_BaboFollowerRef01.getref() as actor))
(Alias_BaboFollowerRef01.getref() as actor).disable()
Alias_BaboFollowerRef01.Clear()
Alias_FoeRef01.GetReference().DeleteWhenAble()
Alias_FoeRef02.GetReference().DeleteWhenAble()
Alias_FoeRef03.GetReference().DeleteWhenAble()
Alias_FoeRef01.Clear()
Alias_FoeRef02.Clear()
Alias_FoeRef03.Clear()
BFollower03Switch.setvalue(0)
Utility.wait(1.0)
Debug.notification("Babo Follower Quest 02 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(BaboFollowerCLQ02EMarker, BaboFollowerCLQ02DMarker)
kmyQuest.DSlaveFaction((Alias_BaboFollowerRef01.getref() as actor))
BaboDummyCompanion01.setessential(false)
BaboDummyCompanion02.setessential(false)
kmyQuest.MovetoSpot((Alias_BaboFollowerRef01.getref() as actor), BaboFollowerCLQ02XMarker01GraywinterWatch)
kmyQuest.MovetoSpot((Alias_BaboFollowerRef02.getref() as actor), BaboFollowerCLQ02XMarker02GraywinterWatch)
kmyQuest.MovetoSpot((Alias_BaboFollowerRef03.getref() as actor), BaboFollowerCLQ02XMarker03GraywinterWatch)
Utility.wait(1.0)
(Alias_BaboFollowerRef01.getref() as actor).EvaluatePackage()
(Alias_BaboFollowerRef02.getref() as actor).kill()
(Alias_BaboFollowerRef03.getref() as actor).kill()
kmyQuest.Getnaked((Alias_BaboFollowerRef01.getref() as actor), 1)
kmyQuest.SpawnEnemies(BaboTroll01, BaboFollowerCLQ02XMarker04GraywinterWatch, 4, Alias_FoeRef01)
kmyQuest.SpawnEnemies(BaboTroll01, BaboFollowerCLQ02XMarker05GraywinterWatch, 4, Alias_FoeRef02)
kmyQuest.SpawnEnemies(BaboTroll01, BaboFollowerCLQ02XMarker06GraywinterWatch, 4, Alias_FoeRef03)
;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
;One Female Follower
;kmyQuest.GoStateFirst()
Debug.Trace("BaboFollowerCLQ01 Started")
kmyQuest.SpawnFolloweratPlace(BaboFollowerCLQ02Marker01, 1)
kmyQuest.SpawnFolloweratPlace(BaboFollowerCLQ02Marker02, 2)
kmyQuest.SpawnFolloweratPlace(BaboFollowerCLQ02Marker03, 3)
CLQ02SceneTrigger01Ref.enable()
;Utility.Wait(3.0)
;BaboFollowerCLQ02Scene01.start()
;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
BaboFollowerCLQ02Scene01.stop()
kmyQuest.GoStateFirst()
kmyQuest.RegisterUpdate(24)
;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
Utility.wait(1.0)
BaboFollowerCLQ02XmarkerBed.enable()
;WoundedSoldierRef.disable()
;kmyQuest.RegisterForSingleUpdateGameTime(24)
;kmyQuest.RegisterUpdate(48)
Utility.wait(1.0)
kmyQuest.MovetoSpot(Game.getplayer(), BaboFollowerCLQ02Marker04)
kmyQuest.MovetoSpot((Alias_BaboFollowerRef01.getref() as actor), BaboFollowerCLQ02Marker05)
Utility.wait(1.0)
kmyQuest.GetBasic((Alias_BaboFollowerRef01.getref() as actor), 1)
kmyQuest.DReleasedFaction((Alias_BaboFollowerRef01.getref() as actor))
(Alias_BaboFollowerRef01.getref() as actor).EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT

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

ObjectReference Property BaboFollowerCLQ02DMarker  Auto  

ObjectReference Property BaboFollowerCLQ02EMarker  Auto  

ObjectReference Property BaboFollowerCLQ02Marker01  Auto  

ObjectReference Property BaboFollowerCLQ02Marker02  Auto  

ObjectReference Property BaboFollowerCLQ02Marker03  Auto  

ObjectReference Property BaboFollowerCLQ02Marker04  Auto  

Scene Property BaboFollowerCLQ02Scene01  Auto  

Scene Property BaboFollowerCLQ02Scene02  Auto  

ActorBase Property BaboTroll01  Auto  

ObjectReference Property BaboFollowerCLQ02XMarker01GraywinterWatch  Auto  

ObjectReference Property BaboFollowerCLQ02XMarker02GraywinterWatch  Auto

ObjectReference Property BaboFollowerCLQ02XMarker03GraywinterWatch  Auto

ObjectReference Property BaboFollowerCLQ02XMarker04GraywinterWatch  Auto  

ObjectReference Property BaboFollowerCLQ02XMarker05GraywinterWatch  Auto  

ObjectReference Property BaboFollowerCLQ02XMarker06GraywinterWatch  Auto  


GlobalVariable Property BFollower03Switch  Auto  

ActorBase Property BaboDummyCompanion01  Auto  

ActorBase Property BaboDummyCompanion02  Auto  

ObjectReference Property WoundedSoldierRef  Auto  

ObjectReference Property BaboFollowerCLQ02Marker05  Auto  

ObjectReference Property CLQ02SceneTrigger01Ref  Auto  

ObjectReference Property BaboFollowerCLQ02XmarkerBed  Auto  
