enderalse/source/scripts/_00e_cq_d_01_functions.psc

73 lines
1.6 KiB
Plaintext
Raw Normal View History

Scriptname _00E_CQ_D_01_Functions extends Quest
Import Utility
;=====================================================================================
; FUNCTIONS
;=====================================================================================
Function EnableDancers()
CQD01_DancerREF.Enable()
EndFunction
Function ReturnMoney()
PlayerREF.AddItem(Gold001, 50)
EndFunction
Function FadeOutIn()
FadeToBlackIMOD.Apply()
Wait(2)
FadeToBlackHoldIMOD.ApplyCrossFade(1)
FadeToBlackBackIMOD.ApplyCrossFade(1)
EndFunction
Function MoveDijaamToDump()
_00E_SC_DijaamOnelys.MoveTo(_00E_NPCDumpMarker)
EndFunction
Function StartSC01()
CQ_D_01_SC01_DijaamGoToBar.ForceStart()
EndFunction
Function FinishQuest(bool bSuccess)
If bSuccess == true
_00E_EPHandler.GiveEP(__Config_RewardEXP)
Self.CompleteQuest()
EndIf
CQD01_DancerREF.Disable()
EndFunction
;=====================================================================================
; PROPERTIES
;=====================================================================================
;scenes
Scene Property CQ_D_01_SC01_DijaamGoToBar Auto
;rewards
MiscObject Property Gold001 Auto
int Property __Config_RewardEXP Auto
;actors
Actor Property PlayerREF Auto
Actor Property _00E_SC_DijaamOnelys Auto
;marker
ObjectReference Property _00E_NPCDumpMarker Auto
ObjectReference Property CQD01_DancerREF Auto
;fadeout
ImagespaceModifier Property FadeToBlackIMOD Auto
ImagespaceModifier Property FadeToBlackHoldIMOD Auto
ImagespaceModifier Property FadeToBlackBackIMOD Auto