enderalse/source/scripts/_00e_nq22_functions.psc

53 lines
1.5 KiB
Plaintext
Raw Normal View History

Scriptname _00E_NQ22_Functions extends Quest
;=====================================================================================
; FUNCTIONS
;=====================================================================================
Function SpawnEnemy()
NQ22_IshyianSpiritSpawnMarker.PlaceAtMe(FXDragonPriestLargeExplosion)
Actor IshyianSpiritRef = NQ22_IshyianSpiritSpawnMarker.PlaceActorAtMe(_00E_NQ22_IshyianSpirit, 1)
IshyianSpirit.ForceRefTo(IshyianSpiritRef)
NQ22_S1_IshyianBattle.ForceStart()
IshyianSpiritRef.StartCombat(PlayerREF)
EndFunction
Function EnableDeadApothecarius()
NQ22_DeadApothecariusREF.Enable()
EndFunction
Function FinishQuest()
int iAliases = Self.GetNumAliases()
while iAliases
iAliases -= 1
ReferenceAlias aAlias = Self.GetNthAlias(iAliases) as ReferenceAlias
aAlias.TryToClear()
endwhile
_00E_EPHandler.GiveEP(__Config_RewardEXP)
Self.CompleteQuest()
EndFunction
;=====================================================================================
; PROPERTIES
;=====================================================================================
Actor Property PlayerREF Auto
Scene Property NQ22_S1_IshyianBattle Auto
ReferenceAlias Property IshyianSpirit Auto
ActorBase Property _00E_NQ22_IshyianSpirit Auto
Explosion Property FXDragonPriestLargeExplosion Auto
ObjectReference Property NQ22_IshyianSpiritSpawnMarker Auto
ObjectReference Property NQ22_DeadApothecariusREF Auto
int Property __Config_RewardEXP Auto