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

;BEGIN ALIAS PROPERTY Bandit08
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Bandit08 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY BanditBoss
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_BanditBoss Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY PlayerRef
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_PlayerRef Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Bandit01
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Bandit01 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Bandit02
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Bandit02 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Bandit05
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Bandit05 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY BaboFollowerAfterRef00
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_BaboFollowerAfterRef00 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Bandit04
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Bandit04 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Bandit09
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Bandit09 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Bandit06
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Bandit06 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Bandit07
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Bandit07 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Bandit03
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Bandit03 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY MovingPoint
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_MovingPoint Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Bandit10
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Bandit10 Auto
;END ALIAS PROPERTY

;BEGIN FRAGMENT Fragment_25
Function Fragment_25()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
BFollowerCLQ00After.setvalue(3);Phase 3
kmyQuest.RegisterUpdate(24)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_17
Function Fragment_17()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.PlayerControl(False)
Alias_PlayerRef.getactorreference().evaluatepackage()
kmyQuest.UnRegisterUpdate()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_22
Function Fragment_22()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.PlayerTurntoEssential(True)
kmyQuest.PlayerControl(True)
kmyQuest.SwitchXmarker(BaboFollowerCLQ00AfterEmarker02, BaboFollowerCLQ00AfterDmarker02)
Utility.wait(2.0)
Debug.messagebox("The fight has begun...")
BDQuest.ChallengeStart(Alias_Bandit01)
BDQuest.ChallengeStart(Alias_Bandit02)
BDQuest.ChallengeStart(Alias_Bandit03)
BDQuest.ChallengeStart(Alias_Bandit04)
BDQuest.ChallengeStart(Alias_Bandit05)
BDQuest.ChallengeStart(Alias_Bandit06)
BDQuest.NPCChallengeStart(Alias_BaboFollowerAfterRef00, Alias_Bandit01)
BDQuest.NPCChallengeStart(Alias_BaboFollowerAfterRef00, Alias_Bandit02)
BDQuest.NPCChallengeStart(Alias_BaboFollowerAfterRef00, Alias_Bandit03)
BDQuest.NPCChallengeStart(Alias_BaboFollowerAfterRef00, Alias_Bandit04)
BDQuest.NPCChallengeStart(Alias_BaboFollowerAfterRef00, Alias_Bandit05)
BDQuest.NPCChallengeStart(Alias_BaboFollowerAfterRef00, Alias_Bandit06)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_23
Function Fragment_23()
;BEGIN CODE
BaboFollowerCLQ00After01SceneStage20.start()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_13
Function Fragment_13()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.GoAfterStory()
kmyQuest.RegisterUpdate(24)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_26
Function Fragment_26()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
Alias_Bandit01.getactorreference().kill()
Alias_Bandit02.getactorreference().kill()
Alias_Bandit03.getactorreference().kill()
Alias_Bandit04.getactorreference().kill()
Alias_Bandit05.getactorreference().kill()
Alias_Bandit06.getactorreference().kill()
(Alias_BaboFollowerAfterRef00.getref() as actor).EvaluatePackage()
kmyQuest.PlayerTurntoEssential(False)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_15
Function Fragment_15()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
(Alias_BaboFollowerAfterRef00.getref() as actor).EvaluatePackage()
kmyQuest.SwitchXmarker(BaboFollowerCLQ00AfterEmarker01, BaboFollowerCLQ00AfterDmarker01)
kmyQuest.SpawnEnemies(BaboBanditBossNordMAS00, BaboFollowerCLQ00AfterFoeXmarkerBoss, 4, Alias_BanditBoss)
Alias_BanditBoss.getactorreference().evaluatepackage()
BFollowerCLQ00After.setvalue(1);Phase 1
kmyQuest.RegisterUpdate(24)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_28
Function Fragment_28()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.SpawnEnemies(BaboBandit1HNeutral, BaboFollowerCLQ00AfterFoeXmarker01, 4, Alias_Bandit07)
kmyQuest.SpawnEnemies(BaboBandit1HNeutral, BaboFollowerCLQ00AfterFoeXmarker02, 4, Alias_Bandit08)
kmyQuest.SpawnEnemies(BaboBandit1HNeutral, BaboFollowerCLQ00AfterFoeXmarker03, 4, Alias_Bandit09)
kmyQuest.SpawnEnemies(BaboBandit1HNeutral, BaboFollowerCLQ00AfterFoeXmarker04, 4, Alias_Bandit10)
Alias_Bandit01.getactorreference().delete()
Alias_Bandit02.getactorreference().delete()
Alias_Bandit03.getactorreference().delete()
Alias_Bandit04.getactorreference().delete()
Alias_Bandit05.getactorreference().delete()
Alias_Bandit06.getactorreference().delete()

Alias_Bandit01.clear()
Alias_Bandit02.clear()
Alias_Bandit03.clear()
Alias_Bandit04.clear()
Alias_Bandit05.clear()
Alias_Bandit06.clear()

BDQuest.FadeinMove(Alias_PlayerRef, Alias_MovingPoint, 32, True)
kmyQuest.MovetoSpot((Alias_BaboFollowerAfterRef00.getref() as actor), BaboFollowerCLQ00AfterXmarker06)
kmyQuest.MovetoSpot((Alias_BanditBoss.getref() as actor), BaboFollowerCLQ00AfterXmarker05)
(Alias_BaboFollowerAfterRef00.getref() as actor).EvaluatePackage()
(Alias_BanditBoss.getref() as actor).EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_21
Function Fragment_21()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.PlayerControl(False)
BaboFollowerCLQ00After01SceneStage15.stop()
BaboFollowerCLQ00After01SceneStage17.forcestart()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_24
Function Fragment_24()
;BEGIN CODE
(Alias_BaboFollowerAfterRef00.getref() as actor).EvaluatePackage()
if Alias_BaboFollowerAfterRef00.getactorreference().isinfaction(BaboBattlePlayer)
BDQuest.NPCChallengeStart(Alias_BaboFollowerAfterRef00, Alias_BanditBoss)
endif
if Alias_PlayerRef.getactorreference().isinfaction(BaboBattlePlayer)
BDQuest.NPCChallengeStart(Alias_PlayerRef, Alias_BanditBoss)
endif
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_30
Function Fragment_30()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.PlayerTurntoEssential(False)
Utility.wait(5.0)
kmyquest.PlayerControl(false)
(Alias_BaboFollowerAfterRef00.getref() as actor).EvaluatePackage()
(Alias_PlayerRef.getref() as actor).EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_29
Function Fragment_29()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
Alias_PlayerRef.getactorreference().additem(zbfCollarIronBrown, 1)
Alias_BaboFollowerAfterRef00.getactorreference().additem(zbfCollarIronBrown, 1)
Alias_PlayerRef.getactorreference().equipitem(zbfCollarIronBrown)
Alias_BaboFollowerAfterRef00.getactorreference().equipitem(zbfCollarIronBrown)
kmyQuest.Getnaked(Alias_PlayerRef.getactorreference(), 1)
kmyQuest.Getnaked(Alias_BaboFollowerAfterRef00.getactorreference(), 1)

Utility.wait(5.0)

BDQuest.RapeCustom(Alias_PlayerRef, Alias_Bandit09, Alias_Bandit10, None, None, Aggressive, Rape, MMF, False, AfterSexS, AfterSexScene, true)
Utility.wait(5.0)
BDQuest.RapeCustom(Alias_BaboFollowerAfterRef00, Alias_Bandit07, Alias_Bandit08, None, None, Aggressive, Rape, MMF, False, None, None, true)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_14
Function Fragment_14()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
(Alias_BaboFollowerAfterRef00.getref() as actor).moveto(BaboFollowerCLQ00AfterXmarker01)
(Alias_BaboFollowerAfterRef00.getref() as actor).EvaluatePackage()
kmyQuest.SwitchXmarker(BaboFollowerCLQ00AfterEmarker01, BaboFollowerCLQ00AfterDmarker01)
BFollowerCLQ00After.setvalue(1);Phase 1
kmyQuest.RegisterUpdate(24)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_19
Function Fragment_19()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.PlayerControl(True)
(Alias_BaboFollowerAfterRef00.getref() as actor).EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_12
Function Fragment_12()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
(BaboFollowerCLQ00AfterSceneTrigger01 as BaboFollowerSceneTriggerScript).ResetTrigger()
(BaboFollowerCLQ00AfterSceneTrigger02 as BaboFollowerSceneTriggerScript).ResetTrigger()
(BaboFollowerCLQ00AfterSceneTrigger03 as BaboFollowerSceneTriggerScript).ResetTrigger()
kmyQuest.SwitchXmarker(BaboFollowerCLQ00AfterDmarker01, BaboFollowerCLQ00AfterEmarker01)
kmyQuest.SwitchXmarker(BaboFollowerCLQ00AfterDmarker02, BaboFollowerCLQ00AfterEmarker02)
BFollowerCLQ00After.setvalue(0);Phase 0
Alias_Bandit01.getactorreference().delete()
Alias_Bandit02.getactorreference().delete()
Alias_Bandit03.getactorreference().delete()
Alias_Bandit04.getactorreference().delete()
Alias_Bandit05.getactorreference().delete()
Alias_Bandit06.getactorreference().delete()
Alias_Bandit01.clear()
Alias_Bandit02.clear()
Alias_Bandit03.clear()
Alias_Bandit04.clear()
Alias_Bandit05.clear()
Alias_Bandit06.clear()


kmyQuest.PlayerTurntoEssential(False)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_27
Function Fragment_27()
;BEGIN CODE
BDQuest.pacifyAlias(Alias_Bandit01)
BDQuest.pacifyAlias(Alias_Bandit02)
BDQuest.pacifyAlias(Alias_Bandit03)
BDQuest.pacifyAlias(Alias_Bandit04)
BDQuest.pacifyAlias(Alias_Bandit05)
BDQuest.pacifyAlias(Alias_Bandit06)
BDQuest.pacifyAlias(Alias_BanditBoss)
BaboFollowerCLQ00After01SceneStage26.start()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_20
Function Fragment_20()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.PlayerControl(False)
BaboFollowerCLQ00After01SceneStage15.stop()
BaboFollowerCLQ00After01SceneStage17.forcestart()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_16
Function Fragment_16()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
BFollowerCLQ00After.setvalue(2);Phase 2
kmyQuest.UnRegisterUpdate()
kmyQuest.RegisterUpdate(24)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_11
Function Fragment_11()
;BEGIN CODE
(Alias_BaboFollowerAfterRef00.getref() as actor).EvaluatePackage()
BDQuest.RegisterSexlabHooks()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_18
Function Fragment_18()
;BEGIN AUTOCAST TYPE BaboFollowerMasterScript
Quest __temp = self as Quest
BaboFollowerMasterScript kmyQuest = __temp as BaboFollowerMasterScript
;END AUTOCAST
;BEGIN CODE
kmyQuest.SpawnEnemies(BaboBandit1HNeutral, BaboFollowerCLQ00AfterXmarker08, 4, Alias_Bandit01)
kmyQuest.SpawnEnemies(BaboBandit1HNeutral, BaboFollowerCLQ00AfterXmarker08, 4, Alias_Bandit02)
kmyQuest.SpawnEnemies(BaboBandit2HNeutral, BaboFollowerCLQ00AfterXmarker08, 4, Alias_Bandit03)
kmyQuest.SpawnEnemies(BaboBandit1HNeutral, BaboFollowerCLQ00AfterXmarker07, 4, Alias_Bandit04)
kmyQuest.SpawnEnemies(BaboBandit1HNeutral, BaboFollowerCLQ00AfterXmarker07, 4, Alias_Bandit05)
kmyQuest.SpawnEnemies(BaboBandit2HNeutral, BaboFollowerCLQ00AfterXmarker07, 4, Alias_Bandit06)

BaboFollowerCLQ00After01SceneStage15.start()
;END CODE
EndFunction
;END FRAGMENT

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


ObjectReference Property BaboFollowerCLQ00AfterEmarker01  Auto  

ObjectReference Property BaboFollowerCLQ00AfterDmarker01  Auto  

ObjectReference Property BaboFollowerCLQ00AfterXmarker01  Auto

ObjectReference Property BaboFollowerCLQ00AfterXmarker07  Auto

ObjectReference Property BaboFollowerCLQ00AfterXmarker08  Auto

ObjectReference Property BaboFollowerCLQ00AfterSceneTrigger01  Auto  

GlobalVariable Property BFollowerCLQ00After  Auto  

ObjectReference Property BaboFollowerCLQ00AfterSceneTrigger02  Auto  

ObjectReference Property BaboFollowerCLQ00AfterSceneTrigger03  Auto  

ObjectReference Property BaboFollowerCLQ00AfterEmarker02  Auto  

ObjectReference Property BaboFollowerCLQ00AfterDmarker02  Auto  

ActorBase Property BaboBanditBossNordMAS00  Auto  

ObjectReference Property BaboFollowerCLQ00AfterFoeXmarkerBoss  Auto  

ActorBase Property BaboBandit1H  Auto  

ActorBase Property BaboBandit2H  Auto  

BaboDiaQuest Property BDQuest Auto
Scene Property BaboFollowerCLQ00After01SceneStage15  Auto  

Scene Property BaboFollowerCLQ00After01SceneStage17  Auto  

ActorBase Property BaboBandit1HNeutral  Auto  

ActorBase Property BaboBandit2HNeutral  Auto  

Scene Property BaboFollowerCLQ00After01SceneStage20  Auto  

Faction Property BaboBattlePlayer  Auto  

Scene Property BaboFollowerCLQ00After01SceneStage26  Auto  

ObjectReference Property BaboFollowerCLQ00AfterXmarker06  Auto  

Armor Property zbfCollarIronBrown  Auto  

ObjectReference Property BaboFollowerCLQ00AfterFoeXmarker05  Auto  

ObjectReference Property BaboFollowerCLQ00AfterXmarker05  Auto  

ObjectReference Property BaboFollowerCLQ00AfterFoeXmarker01  Auto  

ObjectReference Property BaboFollowerCLQ00AfterFoeXmarker02  Auto  

ObjectReference Property BaboFollowerCLQ00AfterFoeXmarker03  Auto  

ObjectReference Property BaboFollowerCLQ00AfterFoeXmarker04  Auto  

Idle Property BaboEmbarrassment02  Auto  

String Property Aggressive  Auto  

String Property rape  Auto  

String Property MMF  Auto  

String Property AfterSexScene  Auto  

String Property AfterSexS  Auto  
