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

;BEGIN ALIAS PROPERTY BanditActorSex2
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_BanditActorSex2 Auto
;END ALIAS PROPERTY

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

;BEGIN ALIAS PROPERTY Feria
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Feria Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Lucia
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Lucia Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY WarehouseExitTriggerbox
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_WarehouseExitTriggerbox Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY FeriaNote
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_FeriaNote Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Sofie
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Sofie Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY BanditActorSex1
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_BanditActorSex1 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY BanditBystander2
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_BanditBystander2 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY BanditBystander1
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_BanditBystander1 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY WindhelmDocksTriggerbox
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_WindhelmDocksTriggerbox Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Autumnborn
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Autumnborn Auto
;END ALIAS PROPERTY

;BEGIN FRAGMENT Fragment_16
Function Fragment_16()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;Leave the warehouse
kmyQuest.LeaveWarehouse()
SetObjectiveCompleted(55)
ThisQuest.SetStage(60)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_13
Function Fragment_13()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;player can untie Feria
kmyQuest.RestoreControls()
SetObjectiveCompleted(31)
SetObjectiveCompleted(32)
Alias_BanditActorSex1.TryToDisable()
Alias_BanditActorSex2.TryToDisable()
Alias_BanditBystander1.TryToDisable()
Alias_BanditBystander2.TryToDisable()
BanditRA1.TryToDisable()
BanditRA2.TryToDisable()
SetObjectiveDisplayed(45)
kmyQuest.GivePerkReward()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_1
Function Fragment_1()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;Read Feria's note. Go to windhelm. Have option of seducing Bjorlam for a ride twice
SetObjectiveCompleted(10)
SetObjectiveCompleted(14)
SetObjectiveDisplayed(15)
SetObjectiveDisplayed(18)
kmyQuest.Stage15Thoughts()
kmyQuest.RegisterForUpdate(20)
;Update will ping to next quest stage when you are near windhelm carriage driver
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_12
Function Fragment_12()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;Talk to bandits again, they'll flee. Won't be called if you fought them
;BanditArgument.Start()
SetObjectiveDisplayed(40)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_4
Function Fragment_4()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;Arrived in Windhelm. Now ask around for clues. Progresses when talks to Sofie
SetObjectiveCompleted(15)
SetObjectiveDisplayed(19)
kmyQuest.Stage20Thoughts()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_7
Function Fragment_7()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;Player is either fighting or fucking bandits. Sex is called via dialogue now. 
SetObjectiveCompleted(31)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_9
Function Fragment_9()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;more sex with bandits
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_10
Function Fragment_10()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;The final stretch
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_11
Function Fragment_11()
;BEGIN CODE
;Talk once more
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_3
Function Fragment_3()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;Found autumnborn, add letter to inventory
PlayerRef.AddItem(FeriaNote,1)
SetObjectiveCompleted(10)
SetObjectiveDisplayed(14)
SetObjectiveCompleted(5)
kmyQuest.FeriaSwordMessage()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_2
Function Fragment_2()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;Can talk to whiterun townspeople, else find autumnborn
Alias_Autumnborn.TryToEnable()
Alias_Feria.TryToEnable()
Utility.Wait(2.0)
kmyQuest.SetUpFeria()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
Utility.Wait(2.0)
kmyQuest.Stage0Thoughts()
ThisQuest.SetStage(10)
SetObjectiveDisplayed(0)
kmyQuest.AddKidsToFaction()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_17
Function Fragment_17()
;BEGIN CODE
NextQuest.Start()
NextQuest.SetStage(0)
Stop()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_6
Function Fragment_6()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;player is in windhelm warehouse. Decide what to do with bandits
SetObjectiveCompleted(25)
kmyQuest.WarehouseMove()
SetObjectiveDisplayed(31)
SetObjectiveDisplayed(32)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_5
Function Fragment_5()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;Player must enter windhelm docks warehouse
kmyQuest.CreateBandits()
SetObjectiveCompleted(20)
SetObjectiveDisplayed(25)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_15
Function Fragment_15()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;Follow me Feria!
kmyQuest.AddFeriaToFollow()
SetObjectiveDisplayed(55)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_14
Function Fragment_14()
;BEGIN AUTOCAST TYPE __FeriaKidnapQuestScript
Quest __temp = self as Quest
__FeriaKidnapQuestScript kmyQuest = __temp as __FeriaKidnapQuestScript
;END AUTOCAST
;BEGIN CODE
;Player can talk to Feria
kmyQuest.SetFeriaDefaultOutfit()
SetObjectiveCompleted(45)
SetObjectiveDisplayed(50)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_8
Function Fragment_8()
;BEGIN CODE
;beg bandits to stop
;END CODE
EndFunction
;END FRAGMENT

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

Quest Property ThisQuest  Auto  

Scene Property BanditConvoScene  Auto  

Scene Property BanditArgument  Auto  

Book Property FeriaNote  Auto  

Actor Property PlayerRef  Auto  

Quest Property NextQuest  Auto  

ReferenceAlias Property BanditRA1  Auto  

ReferenceAlias Property BanditRA2  Auto  
