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

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

;BEGIN ALIAS PROPERTY StartQuestTrigger
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_StartQuestTrigger Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Pillory
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Pillory Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Amren
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Amren Auto
;END ALIAS PROPERTY

;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN CODE
;Quest is dormant
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_5
Function Fragment_5()
;BEGIN AUTOCAST TYPE __LALLPunishBraithScript
Quest __temp = self as Quest
__LALLPunishBraithScript kmyQuest = __temp as __LALLPunishBraithScript
;END AUTOCAST
;BEGIN CODE
;Finished fucking Braith
SetObjectiveCompleted(40)
SetObjectiveDisplayed(45)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_7
Function Fragment_7()
;BEGIN AUTOCAST TYPE __LALLPunishBraithScript
Quest __temp = self as Quest
__LALLPunishBraithScript kmyQuest = __temp as __LALLPunishBraithScript
;END AUTOCAST
;BEGIN CODE
;Quest's end, reward and cleanup
SetObjectiveCompleted(50)
kmyQuest.ResetBraith()
kmyQuest.RemoveSpells()
kmyQuest.QuestReward()
Stop()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_3
Function Fragment_3()
;BEGIN AUTOCAST TYPE __LALLPunishBraithScript
Quest __temp = self as Quest
__LALLPunishBraithScript kmyQuest = __temp as __LALLPunishBraithScript
;END AUTOCAST
;BEGIN CODE
;Pelt Braith with tomatoes
SetObjectiveCompleted(12)
SetObjectiveDisplayed(20)
kmyQuest.AddSpells()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_2
Function Fragment_2()
;BEGIN AUTOCAST TYPE __LALLPunishBraithScript
Quest __temp = self as Quest
__LALLPunishBraithScript kmyQuest = __temp as __LALLPunishBraithScript
;END AUTOCAST
;BEGIN CODE
;Found Braith, now talk to Amren
SetObjectiveCompleted(10)
SetObjectiveDisplayed(12)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_6
Function Fragment_6()
;BEGIN AUTOCAST TYPE __LALLPunishBraithScript
Quest __temp = self as Quest
__LALLPunishBraithScript kmyQuest = __temp as __LALLPunishBraithScript
;END AUTOCAST
;BEGIN CODE
;Talk to Amren
SetObjectiveCompleted(45)
SetObjectiveDisplayed(50)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_1
Function Fragment_1()
;BEGIN AUTOCAST TYPE __LALLPunishBraithScript
Quest __temp = self as Quest
__LALLPunishBraithScript kmyQuest = __temp as __LALLPunishBraithScript
;END AUTOCAST
;BEGIN CODE
;Quest is activated by triggerbox. Set up the things
kmyQuest.SetupScene()
SetObjectiveDisplayed(10)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_4
Function Fragment_4()
;BEGIN AUTOCAST TYPE __LALLPunishBraithScript
Quest __temp = self as Quest
__LALLPunishBraithScript kmyQuest = __temp as __LALLPunishBraithScript
;END AUTOCAST
;BEGIN CODE
;Have sex with Braith in pillory. Quest stage is triggered by dialogue
kmyQuest.BraithPillorySex()
;END CODE
EndFunction
;END FRAGMENT

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