54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
|
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
|
||
|
Levelsystem.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
|
||
|
|
||
|
_00E_QuestFunctions Property Levelsystem Auto
|