enderalse/scripts/source/qf__00e_mq05_theordeal_0002eba3.psc

382 lines
9.0 KiB
Plaintext

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 61
Scriptname QF__00E_MQ05_TheOrdeal_0002EBA3 Extends Quest Hidden
;BEGIN ALIAS PROPERTY Calia
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Calia Auto
;END ALIAS PROPERTY
;BEGIN ALIAS PROPERTY VisionVoice
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_VisionVoice Auto
;END ALIAS PROPERTY
;BEGIN ALIAS PROPERTY Dunwar
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Dunwar Auto
;END ALIAS PROPERTY
;BEGIN ALIAS PROPERTY PosessedMerchant
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_PosessedMerchant Auto
;END ALIAS PROPERTY
;BEGIN ALIAS PROPERTY Jorrek
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Jorrek Auto
;END ALIAS PROPERTY
;BEGIN ALIAS PROPERTY Player
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Player Auto
;END ALIAS PROPERTY
;BEGIN ALIAS PROPERTY RitualAltar
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_RitualAltar Auto
;END ALIAS PROPERTY
;BEGIN ALIAS PROPERTY Ryon
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Ryon Auto
;END ALIAS PROPERTY
;BEGIN ALIAS PROPERTY PosessedMerchantDeadWoman
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_PosessedMerchantDeadWoman Auto
;END ALIAS PROPERTY
;BEGIN ALIAS PROPERTY RitualKey
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_RitualKey Auto
;END ALIAS PROPERTY
;BEGIN FRAGMENT Fragment_21
Function Fragment_21()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
kmyQuest.GivePlayerPotion()
Alias_Dunwar.GetActorReference().EvaluatePackage()
Alias_Calia.GetActorReference().EvaluatePackage()
Alias_Jorrek.GetActorReference().EvaluatePackage()
self.SetObjectiveDisplayed(20)
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_51
Function Fragment_51()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
kmyQuest.DisableGhostDoorFinal()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_26
Function Fragment_26()
;BEGIN CODE
Alias_Dunwar.GetActorReference().EvaluatePackage()
Alias_Calia.GetActorReference().EvaluatePackage()
Alias_Jorrek.GetActorReference().EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_8
Function Fragment_8()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
kmyQuest.KillMerchant()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_57
Function Fragment_57()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
Game.DisablePlayerControls()
Alias_Ryon.GetActorReference().SetGhost(True)
kmyQuest.StartAixonScene()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_3
Function Fragment_3()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
Game.SetPlayerAiDriven(True)
Game.DisablePlayerControls()
kmyQuest.PlayerDrinksPotion()
Alias_PosessedMerchant.GetReference().Disable()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_43
Function Fragment_43()
;BEGIN CODE
Alias_Ryon.GetActorReference().EvaluatePackage()
Game.EnablePlayerControls()
Game.ShowFirstPersonGeometry(True)
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_46
Function Fragment_46()
;BEGIN CODE
Alias_Ryon.GetActorReference().EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_18
Function Fragment_18()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
kmyQuest.StartIntroductionScene()
self.setObjectiveCompleted(17)
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_22
Function Fragment_22()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
kmyQuest.StartVision()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_17
Function Fragment_17()
;BEGIN CODE
Alias_Calia.GetReference().Enable()
Alias_Dunwar.GetReference().Enable()
Alias_Jorrek.GetReference().Enable()
SetObjectiveDisplayed(10)
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_25
Function Fragment_25()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
kmyQuest.GroupSpotsMerchantScene()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_23
Function Fragment_23()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
Alias_Jorrek.GetActorReference().EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_53
Function Fragment_53()
;BEGIN CODE
Game.EnablePlayerControls()
Game.SetPlayerAIDriven(false)
Game.ShowFirstPersonGeometry()
Alias_Ryon.GetActorReference().EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_60
Function Fragment_60()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
SetObjectiveCompleted(10)
SetObjectiveDisplayed(17)
kmyQuest.RemovePackage()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_27
Function Fragment_27()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
kmyQuest.GroupConfrontsMerchantScene()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_45
Function Fragment_45()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
kmyQuest.DisableGhostDoor()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_19
Function Fragment_19()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
Alias_Dunwar.GetActorReference().EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_47
Function Fragment_47()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
kmyQuest.StartFinalScene()
SetObjectiveDisplayed(25, true, true)
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_15
Function Fragment_15()
;BEGIN CODE
Alias_Jorrek.GetActorReference().EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_24
Function Fragment_24()
;BEGIN CODE
Alias_Dunwar.GetActorReference().EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_38
Function Fragment_38()
;BEGIN CODE
Alias_Dunwar.GetActorReference().EvaluatePackage()
Alias_Calia.GetActorReference().EvaluatePackage()
Alias_Jorrek.GetActorReference().EvaluatePackage()
self.SetObjectiveCompleted(20)
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_59
Function Fragment_59()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
kmyQuest.CompleteQuest()
CompleteAllObjectives()
;For EXP, see __Config_RewardEXP in MQ05_Functions properties!
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_48
Function Fragment_48()
;BEGIN CODE
Game.EnablePlayerControls()
Alias_Ryon.GetActorReference().EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_36
Function Fragment_36()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
Game.EnablePlayerControls()
Alias_Dunwar.GetActorReference().EvaluatePackage()
Alias_Calia.GetActorReference().EvaluatePackage()
Alias_Jorrek.GetActorReference().EvaluatePackage()
kmyQuest.StartApproachOnRitualSiteScene()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_6
Function Fragment_6()
;BEGIN CODE
Alias_Ryon.GetActorReference().EvaluatePackage()
self.SetObjectiveDisplayed(25)
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_55
Function Fragment_55()
;BEGIN CODE
Alias_Ryon.GetActorReference().EvaluatePackage()
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_40
Function Fragment_40()
;BEGIN AUTOCAST TYPE _00E_MQ05_Functions
Quest __temp = self as Quest
_00E_MQ05_Functions kmyQuest = __temp as _00E_MQ05_Functions
;END AUTOCAST
;BEGIN CODE
kmyQuest.StartRitualScene()
;END CODE
EndFunction
;END FRAGMENT
;END FRAGMENT CODE - Do not edit anything between this and the begin comment