enderalse/source/scripts/_00e_cqc02_functions.psc

78 lines
2.1 KiB
Plaintext

Scriptname _00E_CQC02_Functions extends Quest
Import _00E_QuestFunctions
;=====================================================================================
; FUNCTIONS
;=====================================================================================
Function SetUp()
_00E_MC_CaliaREF.SetOutfit(_00E_MC_Calia_SimpleClothing)
EndFunction
Function MoveCaliaAndPlayer()
_00E_MC_CaliaREF.UnequipItem(_03E_20_KeeperGreatsword)
_00E_MC_CaliaREF.RemoveItem(_03E_20_KeeperGreatsword, 1)
CQC02_SC01_CaliaTowerScene01.ForceStart()
_00E_SilenceTransitionHighPriority.Add()
FadeToBlackIMOD.Apply()
Utility.Wait(2.7)
FadeToBlackHoldIMOD.ApplyCrossFade(afFadeDuration = 0.3)
_00E_MC_CaliaREF.SetOutfit(_00E_MC_Calia_SimpleClothing)
_00E_MC_CaliaREF.MoveTo(CQC02_MarkerREF)
PlayerREF.MoveTo(CQC02_SC01_PlayerMarkerREF)
SetStage(15)
EndFunction
Function FadeBack()
FadeToBlackBackIMOD.ApplyCrossFade()
EndFunction
Function AddMusic()
_00E_Music_Special_Character_Calia.Add()
EndFunction
Function FinishQuest()
_00E_MC_CaliaREF.AddItem(_03E_20_KeeperGreatsword, 1)
_00E_SilenceTransitionHighPriority.Remove()
Levelsystem.GiveEP(__Config_iRewardEXP)
EndFunction
;=====================================================================================
; PROPERTIES
;=====================================================================================
_00e_QuestFunctions Property Levelsystem Auto
int Property __Config_iRewardEXP = 350 Auto
Actor Property PlayerREF Auto
Actor Property _00E_MC_CaliaREF Auto
Outfit Property _00E_MC_Calia_SimpleClothing Auto
ObjectReference Property CQC02_MarkerREF Auto
ObjectReference Property CQC02_SC01_PlayerMarkerREF Auto
ImageSpaceModifier Property FadeToBlackIMOD Auto
ImageSpaceModifier Property FadeToBlackHoldIMOD Auto
ImageSpaceModifier Property FadeToBlackBackIMOD Auto
Weapon Property _03E_20_KeeperGreatsword Auto
Scene Property CQC02_SC01_CaliaTowerScene01 Auto
MusicType Property _00E_Music_Special_Character_Calia Auto
MusicType Property _00E_SilenceTransitionHighPriority Auto