enderalse/source/scripts/_00e_fs_nqr01_battle04_transformsc.psc

68 lines
2.0 KiB
Plaintext
Raw Normal View History

Scriptname _00E_FS_NQR01_Battle04_TransformSC extends Actor Conditional
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnUpdate()
If Self.GetRace() == WerewolfRace || Self.GetRace() == WerewolfBeastRace
Self.SetGhost(False)
Else
RegisterForSingleUpdate(2)
EndIf
EndEvent
Event OnEnterBleedout()
if !bTransformed
bTransformed = True
Utility.Wait(2)
Self.SetGhost(True)
2023-12-08 02:45:53 +00:00
Self.RestoreActorValue("Health", Self.GetBaseActorValue("Health"))
Self.KnockAreaEffect(1, 1024)
Self.PlaceAtMe(PowerRacialWoodElfCommandAnimalExplosion01)
Self.StopCombat()
Self.StopCombatAlarm()
Self.EvaluatePackage()
Self.PlayIdle(IdleDrinkPotion)
Utility.Wait(5)
Self.SetGhost(False)
AbWerewolf.Cast(Self, Self)
WerewolfChange.Cast(Self, Self)
2023-12-08 02:45:53 +00:00
Self.SetActorValue("Health", Self.GetBaseActorValue("Health")*fHealthMultiplicator)
Self.SetActorValue("UnarmedDamage", iUnarmedDamage)
Self.SetActorValue("DamageResist", iDamageResist)
Self.GetActorBase().SetEssential(False)
RegisterForSingleUpdate(5)
bTransformedFinished = True
2023-12-08 02:45:53 +00:00
Self.SetActorValue("Aggression", 3)
Self.StartCombat(Game.GetPlayer())
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
float fHealthMultiplicator = 2.0
int iUnarmedDamage = 40
int iDamageResist = 70
bool Property bTransformed Auto Hidden Conditional
bool Property bTransformedFinished Auto Hidden Conditional
Explosion Property PowerRacialWoodElfCommandAnimalExplosion01 Auto
Race Property WerewolfRace Auto
Race Property WerewolfBeastRace Auto
Spell Property AbWerewolf Auto
Spell Property WerewolfChange Auto
Idle Property IdleDrinkPotion Auto