enderalse/source/scripts/_00e_nq09_functions.psc

48 lines
1.2 KiB
Plaintext
Raw Normal View History

Scriptname _00E_NQ09_Functions extends Quest
;=====================================================================================
; FUNCTIONS
;=====================================================================================
Function GiveNote()
If PlayerREF.GetItemCount(_00E_NQ09_OldNote) == 0
PlayerREF.AddItem(_00E_NQ09_OldNote, 1)
EndIf
EndFunction
Function EnableSecondTreasure()
NQ09Treasure.Enable()
EndFunction
Function StartCasketScene()
_00E_NQ09_Casket01Ref.Enable()
NQ09_SC0_SillasWalksToCasket.ForceStart()
EndFunction
Function GiveGoldToSillas(int iAmount, int iRewardEXP = 300)
PlayerREF.RemoveItem(Gold001, iAmount)
_00E_EPHandler.GiveEP(iRewardEXP)
EndFunction
;=====================================================================================
; PROPERTIES
;=====================================================================================
MiscObject Property Gold001 Auto
ObjectReference Property NQ09Treasure Auto
ObjectReference Property _00E_NQ09_Casket01Ref Auto
Actor Property PlayerREF Auto
Scene Property NQ09_SC0_SillasWalksToCasket Auto
Book Property _00E_NQ09_OldNote auto