enderalse/scripts/source/_00e_nq29_boss_werewolf_sc.psc
2021-10-06 00:59:59 +02:00

66 lines
1.8 KiB
Plaintext

Scriptname _00E_NQ29_Boss_Werewolf_SC extends Actor
Event OnEnterBleedout()
If bTransformed == False
bTransformed = True
Utility.Wait(2)
Self.KnockAreaEffect(1, 5000)
Self.PlaceAtMe(PowerRacialWoodElfCommandAnimalExplosion01)
AbWerewolf.Cast(Self, Self)
WerewolfChange_Arveldhiin.Cast(Self, Self)
Self.StopCombat()
Utility.Wait(3.0)
_00E_FS_Theriantrophist_TransformIMOD.Apply()
Self.PlaceAtMe(_00E_FS_Theriantrophist_TransEXP)
Self.PlaceAtMe(_00E_MAGEldritchShockExplosionTeleport)
Self.RestoreAV("Health", Self.GetBaseAV("Health"))
Self.ModAV("Health", (Self.GetBaseAV("Health")/2))
Self.GetActorBase().SetEssential(False)
EndIf
EndEvent
Event OnDeath(Actor akKiller)
if !NQ29.IsRunning()
NQ29.SetStage(5)
EndIf
NQ29.SetObjectiveDisplayed(__Config_iObjectiveIndex)
NQ29.SetObjectiveCompleted(__Config_iObjectiveIndex)
NQ29_MythicalCreaturesSlain.SetValue(NQ29_MythicalCreaturesSlain.GetValue() + 1)
NQ29.UpdateCurrentInstanceGlobal(NQ29_MythicalCreaturesSlain)
int CurrentCount = NQ29_MythicalCreaturesSlain.GetValueInt()
if CurrentCount >= NQ29_MythicalCreaturesMax.GetValueInt()
NQ29.SetObjectiveCompleted(0, 1)
NQ29.SetStage(10)
Else
NQ29.SetObjectiveCompleted(0,0)
NQ29.SetObjectiveDisplayed(0, True, True)
EndIf
EndEvent
int Property __Config_iObjectiveIndex Auto
GlobalVariable Property NQ29_MythicalCreaturesSlain Auto
GlobalVariable Property NQ29_MythicalCreaturesMax Auto
ImageSpaceModifier Property _00E_FS_Theriantrophist_TransformIMOD Auto
Quest Property NQ29 Auto
Explosion Property _00E_FS_Theriantrophist_TransEXP Auto
Explosion Property _00E_MAGEldritchShockExplosionTeleport Auto
bool bTransformed
Spell Property AbWerewolf Auto
Spell Property WerewolfChange_Arveldhiin Auto
Explosion Property PowerRacialWoodElfCommandAnimalExplosion01 Auto