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

;BEGIN ALIAS PROPERTY Bjorn
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Bjorn Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Barrel
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Barrel Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY DagnyJournal
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_DagnyJournal Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY DagnyCloset
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_DagnyCloset Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY LookupTrigger
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_LookupTrigger Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY NoteOfSale
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_NoteOfSale Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY CryBox
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_CryBox Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Buttplug2
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Buttplug2 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Mila
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Mila Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Buttplug1
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Buttplug1 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Belethor
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Belethor Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Buttplug3
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Buttplug3 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY KidsRoomChest
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_KidsRoomChest Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Buttplug4
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Buttplug4 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY QuestioningGuard
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_QuestioningGuard Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Nicolette
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Nicolette Auto
;END ALIAS PROPERTY

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

;BEGIN ALIAS PROPERTY Braith
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Braith Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Dagny
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Dagny Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY DagnyRoomTrigger
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_DagnyRoomTrigger Auto
;END ALIAS PROPERTY

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

;BEGIN ALIAS PROPERTY GuardSpawn
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_GuardSpawn Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY DagnyWaitMarker
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_DagnyWaitMarker Auto
;END ALIAS PROPERTY

;BEGIN FRAGMENT Fragment_6
Function Fragment_6()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Have to find stuff in dragonsreach
kmyQuest.Stage40Thoughts()
Alias_NoteOfSale.TryToEnable()
Alias_DagnyJournal.TryToEnable()
Alias_Buttplug1.TryToEnable()
SetObjectiveDisplayed(37)
SetObjectiveCompleted(39)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_2
Function Fragment_2()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Player cry, Mila to approach player
kmyQuest.PlayerCry()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_1
Function Fragment_1()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Was mugged by Braith, go cry
PlayerRef.RemoveItem(Satchel,1)
SetObjectiveCompleted(5)
SetObjectiveCompleted(7)
kmyQuest.PlayerPrepareCry()
SetObjectiveDisplayed(10)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_5
Function Fragment_5()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Have to talk to Dagny about package
SetObjectiveCompleted(30)
SetObjectiveDisplayed(35)
kmyQuest.MakeFriend(BraithRef)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_12
Function Fragment_12()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
SetObjectiveDisplayed(0)
kmyQuest.GetBjornNicolette()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_16
Function Fragment_16()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Mila dialogue stage
SetObjectiveDisplayed(15)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Talked to Belethor and has package
SetObjectiveCompleted(0)
SetObjectiveDisplayed(5)
BraithRef.MoveTo(XMarkerBraith)
kmyQuest.JustGotSatchel()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_14
Function Fragment_14()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;ff
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_3
Function Fragment_3()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Mila will approach player
Actor Mila = Alias_Mila.GetActorRef()
Mila.MoveTo(XMarkerMila)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_9
Function Fragment_9()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Found first buttplug
kmyQuest.Stage47Thoughts()
SetObjectiveCompleted(40)
SetObjectiveDisplayed(45)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_17
Function Fragment_17()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Dagny walks to her room
SetObjectiveDisplayed(38)
SetObjectiveCompleted(35)
kmyQuest.Stage37Thoughts()
PlayerRef.AddToFaction(NoTresspassFaction)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_11
Function Fragment_11()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Just talked to guard
kmyQuest.Stage50Thoughts()
SetObjectiveCompleted(46)
SetObjectiveDisplayed(50)
Alias_Buttplug2.TryToEnable()
Alias_Buttplug3.TryToEnable()
Alias_Buttplug4.TryToEnable()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_10
Function Fragment_10()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Just equipped buttplug, guard talks to you
SetObjectiveCompleted(45)
kmyQuest.Stage49Thoughts()
utility.Wait(1.0)
Alias_QuestioningGuard.TryToEnable()
SetObjectiveDisplayed(46)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_13
Function Fragment_13()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Must leave dragonsreach
SetObjectiveCompleted(50)
SetObjectiveDisplayed(55)
kmyQuest.Stage55Thoughts()
Alias_Feria.TryToDisable()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_15
Function Fragment_15()
;BEGIN CODE
PlayerRef.RemoveItem(Alias_Buttplug1.GetReference(),1)
PlayerRef.RemoveItem(Alias_Buttplug2.GetReference(),1)
PlayerRef.RemoveItem(Alias_Buttplug3.GetReference(),1)
PlayerRef.RemoveItem(Alias_Buttplug4.GetReference(),1)
PlayerRef.AddItem(AmethystPlug,1)
SetObjectiveCompleted(55)
FeriaKidnapQuest.Start()
FeriaKidnapQuest.SetStage(0)
BraithPilloryQuest.Start()
CompleteAllObjectives()
Stop()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_8
Function Fragment_8()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Found Dagny's journal
SetObjectiveCompleted(37)
SetObjectiveDisplayed(40)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_18
Function Fragment_18()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
;Dagny after sex dialogue
SetObjectiveCompleted(38)
SetObjectiveDisplayed(39)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_4
Function Fragment_4()
;BEGIN AUTOCAST TYPE __BeginningQuest02Script
Quest __temp = self as Quest
__BeginningQuest02Script kmyQuest = __temp as __BeginningQuest02Script
;END AUTOCAST
;BEGIN CODE
SetObjectiveCompleted(10)
SetObjectiveCompleted(15)
SetObjectiveDisplayed(30)
kmyQuest.MakeFriend(MilaRef)
;END CODE
EndFunction
;END FRAGMENT

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

ObjectReference Property XMarkerBraith  Auto  

ObjectReference Property xMarkerMila  Auto  

Actor Property BraithREF  Auto  

Actor Property MilaRef  Auto  

Quest Property FeriaKidnapQuest  Auto  

MiscObject Property Satchel  Auto  

Actor Property PlayerRef  Auto  

Armor Property AmethystPlug  Auto  

Faction Property NoTresspassFaction  Auto  

Quest Property BraithPilloryQuest  Auto  
