enderalse/scripts/source/_00e_nq29_boss_werewolf_sc.psc

70 lines
1.9 KiB
Plaintext

Scriptname _00E_NQ29_Boss_Werewolf_SC extends Actor
Event OnEnterBleedout()
if !bTransformed
Utility.Wait(2)
Self.KnockAreaEffect(1, 5000)
Self.PlaceAtMe(PowerRacialWoodElfCommandAnimalExplosion01)
AbWerewolf.Cast(Self, Self)
WerewolfChange.Cast(Self, Self)
Self.StopCombat()
Utility.Wait(3.0)
_00E_FS_Theriantrophist_TransformIMOD.Apply()
Self.GetActorBase().SetSkin(_00E_FS_Theriantrophist_Skin_Ravager)
Self.SetScale(1.3)
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)
bTransformed = True
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
Armor Property _00E_FS_Theriantrophist_Skin_Ravager 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 Auto
Explosion Property PowerRacialWoodElfCommandAnimalExplosion01 Auto