enderalse/source/scripts/_00e_cqc04_functions.psc

83 lines
2.0 KiB
Plaintext

Scriptname _00E_CQC04_Functions extends Quest
;=====================================================================================
; FUNCTIONS
;=====================================================================================
Function SetUp()
_00E_MC_CaliaREF.UnequipItem(_01E_20Huetergrossschwert)
_00E_MC_CaliaREF.RemoveItem(_01E_20Huetergrossschwert)
_00E_MC_CaliaREF.SetOutfit(_00E_MC_Calia_Outfit)
_00E_MC_CaliaREF.MoveTo(CQC04_SC01_CaliaStartMarker)
_00E_MC_CaliaREF.BlockActivation(False)
If _00E_MC_CaliaREF.IsDisabled()
_00E_MC_CaliaREF.Enable()
EndIf
CQC04_SC01_CaliaCollapse.ForceStart()
EndFunction
Function StartSC01Failsave()
If !CQC04_SC01_CaliaCollapse.IsPlaying()
CQC04_SC01_CaliaCollapse.ForceStart()
EndIf
EndFunction
Function StartSC01()
CQC04_SC01_CaliaCollapse.ForceStart()
EndFunction
Function StopBoxingFailsave()
Debug.SendAnimationEvent(_00E_MC_CaliaREF, "IdleForceDefaultState")
EndFunction
Function CloseDoor()
CQC04_SC01_DoorREF.SetOpen(False)
EndFunction
Function CompleteCQC04()
_00E_PlayerFunctions.GetSoundControl().RemoveSilence()
AllowIdleChatter.SetValue(1)
_00E_EPHandler.GiveEP(__Config_iRewardEXP)
_00E_MC_CaliaREF.AddItem(_01E_20Huetergrossschwert)
EndFunction
Function AddMusic()
_00E_Music_Special_Character_Calia.Add()
EndFunction
;=====================================================================================
; PROPERTIES
;=====================================================================================
int Property __Config_iRewardEXP = 250 Auto
GlobalVariable Property AllowIdleChatter Auto
Actor Property _00E_MC_CaliaREF Auto
Weapon Property _01E_20Huetergrossschwert Auto
Outfit Property _00E_MC_Calia_Outfit Auto
Scene Property CQC04_SC01_CaliaCollapse Auto
ObjectReference Property CQC04_SC01_CaliaStartMarker Auto
ObjectReference Property CQC04_SC01_DoorREF Auto
MusicType Property _00E_Music_Special_Character_Calia Auto