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

;BEGIN ALIAS PROPERTY aHHThenda
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHThenda Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHFaceless6
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHFaceless6 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHH0DinnerHallSpot
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHH0DinnerHallSpot Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHBed2
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHBed2 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHH0MusicSpot
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHH0MusicSpot Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHSari
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHSari Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHBed
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHBed Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHH0Elizabeth
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHH0Elizabeth Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHKederek
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHKederek Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHCooker
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHCooker Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHAela
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHAela Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHFaceless4
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHFaceless4 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHFaceless7
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHFaceless7 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHIntMark
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHIntMark Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Pullchains
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Pullchains Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHFaceless2
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHFaceless2 Auto
;END ALIAS PROPERTY

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

;BEGIN ALIAS PROPERTY NoteSari
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_NoteSari Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY MusicDrum
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_MusicDrum Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHFaceless5
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHFaceless5 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Note
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Note Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY ClosetDanceKey
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_ClosetDanceKey Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHFaceless1
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHFaceless1 Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY MusicFlute
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_MusicFlute Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY PlayerItemChest
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_PlayerItemChest Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHH0CellarFood
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHH0CellarFood Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHChaurusHunter
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHChaurusHunter Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY TempleWay
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_TempleWay Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY Exit
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Exit Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY aHHFaceless3
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_aHHFaceless3 Auto
;END ALIAS PROPERTY

;BEGIN FRAGMENT Fragment_44
Function Fragment_44()
;BEGIN CODE
Setobjectivecompleted(410)
aHH0ChaurusBedRoom2REF.disable()
Game.FadeOutGame(True, true, 1.0, 1.0)
setstage(430)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_31
Function Fragment_31()
;BEGIN CODE
setobjectivecompleted(280)
setobjectivedisplayed(290)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_30
Function Fragment_30()
;BEGIN CODE
Playerref.moveto(aHH0LabyPlayerSpot)
aHH0LabyrinthExitWallREF.disable()
Debug.MessageBox("Aela told me I need to sleep, wake up, and the way will be opened ? Wait... where I am ?")
setobjectivecompleted(270)
setobjectivedisplayed(280)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN CODE
;start the quest
Alias_Note.forcerefto(game.getplayer().placeatme(aHHLetter))
(WICourier as WICourierScript).addaliastocontainer(Alias_Note)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_12
Function Fragment_12()
;BEGIN CODE
SetObjectiveCompleted(100)
aHH0ChestMove1REF.disable()
aHH0ChestMove2REF.enable()
aHH0MovingChest2TriggerREF.enable()
Debug.MessageBox("The chest is running away !")
setobjectivedisplayed(110)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_11
Function Fragment_11()
;BEGIN CODE
Debug.MessageBox("Where is my gear ? I'm naked !")
setobjectivedisplayed(100)
aHH0Manor.setstage(10)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_39
Function Fragment_39()
;BEGIN CODE
setobjectivecompleted(360)
setobjectivedisplayed(370)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_5
Function Fragment_5()
;BEGIN CODE
Debug.MessageBox("I found the manor... The door seems unlocked.")
SetObjectiveCompleted(30)
setobjectivedisplayed(40)
aHHManorIntTriggerREF.enable()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_62
Function Fragment_62()
;BEGIN CODE
debug.messagebox("that's useless, this void is bring me back everytime I try to reach the closet. There should be a way to disable it")
setobjectivecompleted(215)
setobjectivedisplayed(216)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_1
Function Fragment_1()
;BEGIN CODE
SetObjectiveDisplayed(10)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_8
Function Fragment_8()
;BEGIN CODE
setobjectivecompleted(60)
Game.FadeOutGame(True, true, 5.0, 5.0)
Debug.MessageBox("Who is this person ?")
aHH0SariREF.enable()
setobjectivedisplayed(70)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_32
Function Fragment_32()
;BEGIN CODE
aHH0Manor.setstage(60)
Game.FadeOutGame(True, true, 1.0, 1.0)
aHH0SariREF.moveto(aHH0BedRoom2SariSpot)
aHH0SariREF.enable()
Debug.MessageBox("Sari is here, near me... very exited...")
StartSariMasturbate()
setobjectivecompleted(290)
setobjectivedisplayed(300)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_38
Function Fragment_38()
;BEGIN CODE
setobjectivecompleted(350)
StartSariAela()
setobjectivedisplayed(360)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_18
Function Fragment_18()
;BEGIN CODE
Debug.MessageBox("I found some sweetrolls in the Kitchen, but when I tried to catch them, they disappeared, and now there is an angry dremora talking to me...")
SetObjectivecompleted(155)
setobjectivedisplayed(160)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_65
Function Fragment_65()
;BEGIN CODE
SetObjectiveCompleted(110)
setobjectivedisplayed(115)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_7
Function Fragment_7()
;BEGIN CODE
Debug.MessageBox("I don't find the girls, and most of the Manor doors are locked. I should take a nap, this place looks sure")
setobjectivecompleted(50)
setobjectivedisplayed(60)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_10
Function Fragment_10()
;BEGIN CODE
setobjectivecompleted(80)
Game.FadeOutGame(True, true, 1.0, 1.0)
aHH0SariREF.disable()
TakePlayerItems()
Game.FadeOutGame(True, true, 1.0, 5.0)
setstage(100)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_66
Function Fragment_66()
;BEGIN CODE
Debug.MessageBox("I found the Kitchen...")
SetObjectivedisplayed(155)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_27
Function Fragment_27()
;BEGIN CODE
aHH0JeanneREF.disable()
setobjectivecompleted(240)
setobjectivedisplayed(250)
aHHBedRoomPlankREF.enable()
aHH0LabyrinthWall1REF.disable()
aHH0LabyrinthWall2REF.disable()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_2
Function Fragment_2()
;BEGIN CODE
SetObjectiveCompleted(10)
SetObjectiveDisplayed(20)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_59
Function Fragment_59()
;BEGIN CODE
Completequest()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_40
Function Fragment_40()
;BEGIN CODE
StartSariSex()
setobjectivecompleted(370)
setobjectivedisplayed(380)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_23
Function Fragment_23()
;BEGIN CODE
setobjectivecompleted(200)
setobjectivedisplayed(210)
aHH0Manor.setstage(30)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_37
Function Fragment_37()
;BEGIN CODE
Debug.MessageBox("Aela is in the BedRoom too...")
setobjectivecompleted(340)
setobjectivedisplayed(350)
aHH0BedRoomScene.start()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_25
Function Fragment_25()
;BEGIN CODE
setobjectivecompleted(220)
setobjectivedisplayed(230)
aHH0PlayTriggerREF.enable()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_47
Function Fragment_47()
;BEGIN CODE
Debug.MessageBox("I can't do nothing, and Sari and Aela will do something to Elizabeth !")
setobjectivedisplayed(450)
aHH0TempleKederek1Scene.start()
;StartRapeElizabeth()
;utility.wait(100)
;aHH0Temple2Scene.start()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_54
Function Fragment_54()
;BEGIN CODE
setobjectivecompleted(490)
setobjectivedisplayed(500)
aHH0Manor.setstage(90)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_24
Function Fragment_24()
;BEGIN CODE
setobjectivecompleted(218)
setobjectivedisplayed(220)
aHH0Manor.setstage(40)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_63
Function Fragment_63()
;BEGIN CODE
debug.messagebox("I found three pull chains... one should be the one")
setobjectivecompleted(216)
setobjectivedisplayed(217)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_22
Function Fragment_22()
;BEGIN CODE
setobjectivecompleted(190)
setobjectivedisplayed(200)
aHH0AelaREF.moveto(aHH0LabyrinthAelaSpot)
aHH0JeanneREF.enable()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_4
Function Fragment_4()
;BEGIN CODE
SetObjectiveCompleted(20)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_35
Function Fragment_35()
;BEGIN CODE
Debug.MessageBox("The horror is far now... and Elizabeth is here...")
aHH0JeanneREF.moveto(aHH0ElizabethCaveSpot)
aHH0JeanneREF.enable()
setobjectivecompleted(320)
setobjectivedisplayed(330)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_34
Function Fragment_34()
;BEGIN CODE
Debug.MessageBox("There is an horror here ! I must run !")
setobjectivecompleted(310)
setobjectivedisplayed(320)
aHH0JeanneREF.moveto(aHH0ElizabethCaveSpot)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_14
Function Fragment_14()
;BEGIN CODE
SetObjectiveCompleted(120)
Debug.MessageBox("I found Aela. She's look mad and absent...")
setobjectivedisplayed(130)
aHH0Manor.setstage(20)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_29
Function Fragment_29()
;BEGIN CODE
StartAelaAnal()
setobjectivecompleted(260)
setobjectivedisplayed(270)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_60
Function Fragment_60()
;BEGIN CODE
Debug.MessageBox("I can see the exit!")
aHHEndOutTriggerREF.enable()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_9
Function Fragment_9()
;BEGIN CODE
setobjectivecompleted(70)
StartSariOral()
setobjectivedisplayed(80)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_46
Function Fragment_46()
;BEGIN CODE
setobjectivecompleted(430)
aHH0Temple1Scene.start()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_64
Function Fragment_64()
;BEGIN CODE
debug.messagebox("I found three pull chains... one should be the one")
setobjectivecompleted(217)
setobjectivedisplayed(218)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_6
Function Fragment_6()
;BEGIN CODE
Debug.MessageBox("The manor is more bigger inside than outside...")
aHH0Manor.start()
setobjectivecompleted(40)
setobjectivedisplayed(50)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_55
Function Fragment_55()
;BEGIN CODE
setobjectivecompleted(500)
setobjectivedisplayed(510)
aHHWallEndREF.disable()
aHHEndTriggerREF.enable()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_28
Function Fragment_28()
;BEGIN CODE
aHH0AelaREF.moveto(aHH0LabyrinthAelaSpot)
aHH0AelaREF.enable()
Debug.MessageBox("I found Aela in the library...")
setobjectivecompleted(250)
setobjectivedisplayed(260)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_45
Function Fragment_45()
;BEGIN CODE
Playerref.moveto(aHHPlayerTempleSpot)
TakePlayerItems()
Debug.MessageBox("Where I am ? I can heard a strange song...")
aHH0Manor.setstage(80)
Setobjectivedisplayed(430)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_61
Function Fragment_61()
;BEGIN CODE
debug.messagebox("There is a closet at the end of this corridor. I'm sure something I need is stored inside")
setobjectivecompleted(210)
setobjectivedisplayed(215)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_50
Function Fragment_50()
;BEGIN CODE
setobjectivecompleted(450)
(aHH0 as aHH0KederekScript).ShowKederekChoice()
Setobjectivedisplayed(460)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_52
Function Fragment_52()
;BEGIN CODE
Debug.MessageBox("Elizabeth is doing something... she called the Cthonian !")
aHH0Temple3Scene.start()
setstage(490)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_21
Function Fragment_21()
;BEGIN CODE
StartAelaMasturbate()
aHH0CookerREF.disable()
setobjectivecompleted(180)
setobjectivedisplayed(190)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_19
Function Fragment_19()
;BEGIN CODE
setobjectivecompleted(160)
StartCookerSex()
Playerref.additem(FoodSweetroll, 1)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_58
Function Fragment_58()
;BEGIN CODE
setobjectivecompleted(540)
Playerref.additem(gold001, 1500)
aHH0Manor.setstage(110)
setstage(600)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_3
Function Fragment_3()
;BEGIN CODE
SetObjectiveCompleted(20)
Playerref.additem(gold001, 500)
setobjectivedisplayed(30)
aHHManorEntryTriggerREF.enable()
aHHEntryDoorREF.enable()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_36
Function Fragment_36()
;BEGIN CODE
setobjectivecompleted(330)
setobjectivedisplayed(340)
aHH0BedRoom2MeetTriggerREF.enable()
aHH0AelaREF.moveto(aHH0BedRoom2SariSpot)
aHH0AelaREF.enable()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_43
Function Fragment_43()
;BEGIN CODE
aHH0ChaurusBedRoom2REF.enable()
aHHPlayTriggerSpotREF.placeatme(aHHChaurus)
aHHChaurusSpot2REF.placeatme(aHHChaurus)
aHHChaurusSpot3REF.placeatme(aHHChaurus)
aHHReturnSpotREF.placeatme(aHHChaurus)
Setobjectivedisplayed(410)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_56
Function Fragment_56()
;BEGIN CODE
setobjectivecompleted(510)
ReturnPlayerItems()
aHH0JeanneREF.moveto(aHH0ElizabethEndSpotREF)
Debug.MessageBox("We are outside... and the manor disappeared!")
aHH0Manor.setstage(100)
setobjectivedisplayed(530)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_51
Function Fragment_51()
;BEGIN CODE
Debug.MessageBox("Elizabeth is dying...")
aHH0JeanneREF.getactorbase().setessential(false)
aHH0JeanneREF.kill()
aHH0TempleKederekEscapeScene.start()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_13
Function Fragment_13()
;BEGIN CODE
SetObjectiveCompleted(115)
aHH0AelaREF.enable()
setobjectivedisplayed(120)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_48
Function Fragment_48()
;BEGIN CODE
Debug.MessageBox("I refused to submit to Kederek and the sussering voices in my head... He ordered to Aela and Sari to sacrifice me!")
Setobjectivecompleted(460)
StartRapePlayerElizabeth()
;utility.wait(70)
;setstage(480)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_49
Function Fragment_49()
;BEGIN CODE
Debug.MessageBox("I accepted Kederek's proposal... I will fuck the three girls at the same time!")
Setobjectivecompleted(460)
StartPleasure()
utility.wait(50)
setstage(472)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_33
Function Fragment_33()
;BEGIN CODE
StartSariAnal()
setobjectivecompleted(300)
setobjectivedisplayed(310)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_53
Function Fragment_53()
;BEGIN CODE
Debug.MessageBox("Elizabeth resisted, it's broken the spell which restrained me ! She also given my a dagger! It's time for a stricke back !")
playerref.addtofaction(aHHElizabethFaction)
aHH0AelaREF.SetActorValue("Confidence",0)
aHH0SariREF.SetActorValue("Confidence",0)
(aHH0 as aHH0KederekScript).CthonianArrival()
aHHKederek.setessential(false)
aHHCthonianTegothREF.moveto(aHHKederekREF)
Setobjectivedisplayed(490)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_41
Function Fragment_41()
;BEGIN CODE
aHH0SariREF.disable()
aHH0AelaREF.disable()
setobjectivecompleted(380)
setobjectivedisplayed(390)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_20
Function Fragment_20()
;BEGIN CODE
StartAelaSex()
setobjectivecompleted(130)
setobjectivedisplayed(180)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_16
Function Fragment_16()
;BEGIN CODE
Debug.MessageBox("There is a Chaurus in this room... and behind it, a key...")
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_68
Function Fragment_68()
;BEGIN CODE
(aHH0 as aHH0KederekScript).Killgirls()
utility.wait(2)
(aHH0 as aHH0KederekScript).CthonianArrival()
utility.wait(30)
playerref.kill()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_57
Function Fragment_57()
;BEGIN CODE
setobjectivecompleted(530)
setobjectivedisplayed(540)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_17
Function Fragment_17()
;BEGIN CODE
Debug.MessageBox("The Chaurus smells the Pet food... It will occupy it for a moment...")
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_26
Function Fragment_26()
;BEGIN CODE
Game.FadeOutGame(True, true, 1.0, 1.0)
Debug.MessageBox("Once I started to play drums, the Azathoth servants disappeared. I can talk to Elizabeth now.")
aHH0Manor.setstage(50)
setobjectivecompleted(230)
setobjectivedisplayed(240)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_42
Function Fragment_42()
;BEGIN CODE
aHH0Manor.setstage(70)
setobjectivecompleted(390)
Game.FadeOutGame(True, true, 1.0, 1.0)
Debug.MessageBox("I heard a powerful howl...")
utility.wait(2)
setstage(410)
;END CODE
EndFunction
;END FRAGMENT

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

Function TakePlayerItems()
	playerref.RemoveAllItems(alias_playeritemchest.getreference(), true, true)
Endfunction

Function ReturnPlayerItems()
	alias_playeritemchest.getreference().RemoveAllItems(playerref, true, true)
Endfunction

Function StartSariOral()
	actor[] sexActors = new actor[2]   ;its an 2 actor anim
	sexActors[0] = aHH0SariREF   ;actor in female role. Its an alias thats why  that .GetActorRef() is needed. If it would be property it would be just Vess (or whatever else that property would be named)
	sexActors[1] = Playerref    ; actor in male role. For player you can use Game.GetPlayer()
	sslBaseAnimation[] anims = SL.GetAnimationsByTags(2, "oral")   ;here you choose animation to be played. This one is by tags. It means it will pick random animation made for 2 actors which has both of those tags. You can also add tags to suppress for example SL.GetAnimationsByTags(2, "Aggressive,vaginal", "missionary") would still play random animation of vaginal aggressive sex but rough missionary animation would not be allowed.
	RegisterForModEvent("AnimationEnd_HH", "HH")   ;this is for hooks.
	SL.StartSex(sexActors, anims, allowbed=false, hook="HH")   ; and this starts the action. victim = Vess.GetActorRef() means this actor is considered as victim and other one as aggressor. allowbed=false means sexlab wont allow use of beds. hook="AQSS" and this is a hook, it allows you to do something on "AnimationEnd" in this example
EndFunction

Function StartCookerSex()
	actor[] sexActors = new actor[2]   ;its an 2 actor anim
	sexActors[0] = Playerref   ;actor in female role. Its an alias thats why  that .GetActorRef() is needed. If it would be property it would be just Vess (or whatever else that property would be named)
	sexActors[1] = aHH0CookerREF
	sslBaseAnimation[] anims = SL.GetAnimationsByTags(2, "oral")   ;here you choose animation to be played. This one is by tags. It means it will pick random animation made for 2 actors which has both of those tags. You can also add tags to suppress for example SL.GetAnimationsByTags(2, "Aggressive,vaginal", "missionary") would still play random animation of vaginal aggressive sex but rough missionary animation would not be allowed.
	RegisterForModEvent("AnimationEnd_HH", "HH")   ;this is for hooks.
	SL.StartSex(sexActors, anims, allowbed=false, hook="HH")   ; and this starts the action. victim = Vess.GetActorRef() means this actor is considered as victim and other one as aggressor. allowbed=false means sexlab wont allow use of beds. hook="AQSS" and this is a hook, it allows you to do something on "AnimationEnd" in this example
EndFunction

Function StartAelaSex()
	actor[] sexActors = new actor[2]   ;its an 2 actor anim
	sexActors[0] = aHH0AelaREF
	sexActors[1] = Playerref
	sslBaseAnimation[] anims = SL.GetAnimationsByTags(2, "vag")   ;here you choose animation to be played. This one is by tags. It means it will pick random animation made for 2 actors which has both of those tags. You can also add tags to suppress for example SL.GetAnimationsByTags(2, "Aggressive,vaginal", "missionary") would still play random animation of vaginal aggressive sex but rough missionary animation would not be allowed.
	RegisterForModEvent("AnimationEnd_HH", "HH")   ;this is for hooks.
	SL.StartSex(sexActors, anims, allowbed=false, hook="HH")   ; and this starts the action. victim = Vess.GetActorRef() means this actor is considered as victim and other one as aggressor. allowbed=false means sexlab wont allow use of beds. hook="AQSS" and this is a hook, it allows you to do something on "AnimationEnd" in this example
EndFunction

Function StartAelaMasturbate()
	actor[] sexActors = new actor[1]   ;its an 2 actor anim
	sexActors[0] = aHH0AelaREF
	sslBaseAnimation[] anims = SL.GetAnimationsByTags(2, "double")   ;here you choose animation to be played. This one is by tags. It means it will pick random animation made for 2 actors which has both of those tags. You can also add tags to suppress for example SL.GetAnimationsByTags(2, "Aggressive,vaginal", "missionary") would still play random animation of vaginal aggressive sex but rough missionary animation would not be allowed.
	RegisterForModEvent("AnimationEnd_HH", "HH")   ;this is for hooks.
	SL.StartSex(sexActors, anims, allowbed=false, hook="HH")   ; and this starts the action. victim = Vess.GetActorRef() means this actor is considered as victim and other one as aggressor. allowbed=false means sexlab wont allow use of beds. hook="AQSS" and this is a hook, it allows you to do something on "AnimationEnd" in this example
EndFunction

Function StartAelaAnal()
	actor[] sexActors = new actor[2]   ;its an 2 actor anim
	sexActors[0] = aHH0AelaREF
	sexActors[1] = Playerref
	sslBaseAnimation[] anims = SL.GetAnimationsByTags(2, "anal")   ;here you choose animation to be played. This one is by tags. It means it will pick random animation made for 2 actors which has both of those tags. You can also add tags to suppress for example SL.GetAnimationsByTags(2, "Aggressive,vaginal", "missionary") would still play random animation of vaginal aggressive sex but rough missionary animation would not be allowed.
	RegisterForModEvent("AnimationEnd_HH", "HH")   ;this is for hooks.
	SL.StartSex(sexActors, anims, allowbed=false, hook="HH")   ; and this starts the action. victim = Vess.GetActorRef() means this actor is considered as victim and other one as aggressor. allowbed=false means sexlab wont allow use of beds. hook="AQSS" and this is a hook, it allows you to do something on "AnimationEnd" in this example
EndFunction

Function StartSariMasturbate()
	actor[] sexActors = new actor[1]   ;its an 2 actor anim
	sexActors[0] = aHH0SariREF
	sslBaseAnimation[] anims = SL.GetAnimationsByTags(2, "double")   ;here you choose animation to be played. This one is by tags. It means it will pick random animation made for 2 actors which has both of those tags. You can also add tags to suppress for example SL.GetAnimationsByTags(2, "Aggressive,vaginal", "missionary") would still play random animation of vaginal aggressive sex but rough missionary animation would not be allowed.
	RegisterForModEvent("AnimationEnd_HH", "HH")   ;this is for hooks.
	SL.StartSex(sexActors, anims, allowbed=false, hook="HH")   ; and this starts the action. victim = Vess.GetActorRef() means this actor is considered as victim and other one as aggressor. allowbed=false means sexlab wont allow use of beds. hook="AQSS" and this is a hook, it allows you to do something on "AnimationEnd" in this example
EndFunction

Function StartSariAnal()
	actor[] sexActors = new actor[2]   ;its an 2 actor anim
	sexActors[0] = aHH0SariREF
	sexActors[1] = Playerref
	sslBaseAnimation[] anims = SL.GetAnimationsByTags(2, "anal")   ;here you choose animation to be played. This one is by tags. It means it will pick random animation made for 2 actors which has both of those tags. You can also add tags to suppress for example SL.GetAnimationsByTags(2, "Aggressive,vaginal", "missionary") would still play random animation of vaginal aggressive sex but rough missionary animation would not be allowed.
	RegisterForModEvent("AnimationEnd_HH", "HH")   ;this is for hooks.
	SL.StartSex(sexActors, anims, allowbed=false, hook="HH")   ; and this starts the action. victim = Vess.GetActorRef() means this actor is considered as victim and other one as aggressor. allowbed=false means sexlab wont allow use of beds. hook="AQSS" and this is a hook, it allows you to do something on "AnimationEnd" in this example
EndFunction

Function StartSariAela()
	actor[] sexActors = new actor[3]   ;its an 2 actor anim
	sexActors[0] = aHH0SariREF
	sexActors[1] = Playerref
	sexActors[2] = aHH0AelaREF
	sslBaseAnimation[] anims = SL.GetAnimationsByTags(3, "anal")   ;here you choose animation to be played. This one is by tags. It means it will pick random animation made for 2 actors which has both of those tags. You can also add tags to suppress for example SL.GetAnimationsByTags(2, "Aggressive,vaginal", "missionary") would still play random animation of vaginal aggressive sex but rough missionary animation would not be allowed.
	RegisterForModEvent("AnimationEnd_HH", "HH")   ;this is for hooks.
	SL.StartSex(sexActors, anims, allowbed=false, hook="HH")   ; and this starts the action. victim = Vess.GetActorRef() means this actor is considered as victim and other one as aggressor. allowbed=false means sexlab wont allow use of beds. hook="AQSS" and this is a hook, it allows you to do something on "AnimationEnd" in this example
EndFunction

Function StartSariSex()
	actor[] sexActors = new actor[2]   ;its an 2 actor anim
	sexActors[0] = aHH0SariREF
	sexActors[1] = Playerref
	sslBaseAnimation[] anims = SL.GetAnimationsByTags(2, "vag")   ;here you choose animation to be played. This one is by tags. It means it will pick random animation made for 2 actors which has both of those tags. You can also add tags to suppress for example SL.GetAnimationsByTags(2, "Aggressive,vaginal", "missionary") would still play random animation of vaginal aggressive sex but rough missionary animation would not be allowed.
	RegisterForModEvent("AnimationEnd_HH", "HH")   ;this is for hooks.
	SL.StartSex(sexActors, anims, allowbed=false, hook="HH")   ; and this starts the action. victim = Vess.GetActorRef() means this actor is considered as victim and other one as aggressor. allowbed=false means sexlab wont allow use of beds. hook="AQSS" and this is a hook, it allows you to do something on "AnimationEnd" in this example
EndFunction

Function StartRapePlayerElizabeth()
    actor[] sexActors = new actor[3]
    int sslid = 0
    sexActors[0] = Playerref
    sexActors[1] = aHH0SariREF
    sexActors[2] = aHH0AelaREF
    sslBaseAnimation[] anims = SL.GetAnimationsByTags(3, "vag", "Aggressive")
    RegisterForModEvent("AnimationEnd_HHAfterPlayerRaped", "AfterPlayerRapedHandler")
    sslid = SL.StartSex(sexActors, anims, victim = Playerref, centeron = aHH0ElizabethRapeSpotREF, allowbed=false, hook="HHAfterPlayerRaped")
    if sslid < 0
        sslid = SL.StartSex(sexActors, anims, centeron = aHH0ElizabethRapeSpotREF, allowbed=false, hook="HHAfterPlayerRaped")
    endif
    if sslid < 0
        Debug.notification("Animation failed; Skip Sex Animation")
        UnregisterForModEvent("AnimationEnd_HHAfterPlayerRaped")
        setstage(480)
    endif
EndFunction

event AfterPlayerRapedHandler(string eventName, string argString, float argNum, form sender)
    UnregisterForModEvent("AnimationEnd_HHAfterPlayerRaped")
    setstage(480)
endEvent

Function StartPleasure()
	actor[] sexActors = new actor[3]   ;its an 2 actor anim
	sexActors[0] = aHH0JeanneREF
	sexActors[1] = aHH0SariREF
	sexActors[2] = playerref
	sslBaseAnimation[] anims = SL.GetAnimationsByTags(3, "anal")   ;here you choose animation to be played. This one is by tags. It means it will pick random animation made for 2 actors which has both of those tags. You can also add tags to suppress for example SL.GetAnimationsByTags(2, "Aggressive,vaginal", "missionary") would still play random animation of vaginal aggressive sex but rough missionary animation would not be allowed.
	RegisterForModEvent("AnimationEnd_HH", "HH")   ;this is for hooks.
	SL.StartSex(sexActors, anims, allowbed=false, victim = aHH0JeanneREF, hook="HH")   ; and this starts the action. victim = Vess.GetActorRef() means this actor is considered as victim and other one as aggressor. allowbed=false means sexlab wont allow use of beds. hook="AQSS" and this is a hook, it allows you to do something on "AnimationEnd" in this example
EndFunction


Quest Property WICourier  Auto  
Book Property aHHLetter  Auto  
Actor Property PlayerRef  Auto  
MiscObject Property Gold001  Auto  
ObjectReference Property aHHManorEntryTriggerREF  Auto  
ObjectReference Property aHHManorIntTriggerREF  Auto  
Actor Property aHH0SariREF  Auto  
SexLabFramework Property SL  Auto 
Quest Property aHH0Manor  Auto  
ObjectReference Property aHH0ChestMove2REF  Auto  
ObjectReference Property aHH0ChestMove1REF  Auto  
ObjectReference Property aHH0ChestMove3REF  Auto  
ObjectReference Property aHH0MovingChest2TriggerREF  Auto  
Actor Property aHH0AelaREF  Auto  
Actor Property aHH0CookerREF  Auto  
Potion Property FoodSweetroll  Auto  
Actor Property aHH0JeanneREF  Auto  
ObjectReference Property aHHEntryDoorREF  Auto  
ObjectReference Property aHH0PlayTriggerREF  Auto  
ObjectReference Property aHHBedRoomPlankREF  Auto  
ObjectReference Property aHH0LabyrinthWall2REF  Auto  
ObjectReference Property aHH0LabyrinthWall1REF  Auto  
ObjectReference Property aHH0LabyrinthAelaSpot  Auto  
ObjectReference Property aHH0LabyPlayerSpot  Auto  
ObjectReference Property aHH0LabyrinthExitWallREF  Auto  
ObjectReference Property aHH0BedRoom2SariSpot  Auto  
ObjectReference Property aHH0ElizabethCaveSpot  Auto  
Scene Property aHH0BedRoomScene  Auto  
Actor Property aHH0ChaurusBedRoom2REF  Auto  
ObjectReference Property aHH0TemplePlayerSpot  Auto  
ObjectReference Property aHHPlayerTempleSpot  Auto  
Scene Property aHH0Temple1Scene  Auto  
Scene Property aHH0Temple2Scene  Auto  
ObjectReference Property aHH0BedRoom2MeetTriggerREF  Auto  
Scene Property aHH0Temple3Scene  Auto  
ActorBase Property aHHKederek  Auto  
ObjectReference Property aHHWallEndREF  Auto  
ObjectReference Property aHHEndTriggerREF  Auto  
ObjectReference Property aHH0ElizabethEndSpotREF  Auto  
Objectreference property aHH0ElizabethRapeSpotREF auto
ActorBase Property aHHChaurus  Auto  
ObjectReference Property aHHPlayTriggerSpotREF  Auto  
ObjectReference Property aHHEndOutTriggerREF  Auto  

WEAPON Property DaedricSword  Auto  

WEAPON Property aHHElvenDagger  Auto  

Objectreference property aHHChaurusSpot2REF auto
Objectreference property aHHChaurusSpot3REF auto
Objectreference property aHHReturnSpotREF auto

Message Property aHHKederekChoiceMessage  Auto  

Quest Property aHH0  Auto  

Scene Property aHH0TempleKederekEscapeScene  Auto  

Faction Property aHHElizabethFaction  Auto  

Scene Property aHH0TempleKederek1Scene  Auto  

Actor Property aHHCthonianTegothREF  Auto  

Actor Property aHHKederekREF  Auto  

Faction Property aHHAzathothServantFaction  Auto  
