enderalse/source/scripts/_00e_a3_mage_firespheresc.psc

56 lines
1.5 KiB
Plaintext

Scriptname _00E_A3_Mage_FireSphereSC extends ObjectReference
Import _00E_TalentLibrary
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnInit()
fFireExplosionDamage =
EndEvent
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
If (akAggressor as actor) && (Utility.RandomInt(1, 100) <= fThrowBackChance)
Debug.MessageBox("_00E_FS_A3_Mage_ThaumaturgicShieldSC Cool 2.")
akAttacker = akAggressor as Actor
If (akSource as Spell)
ReflectSpell(akSource as Spell)
Elseif (akSource.HasKeyword(WeapTypeBow))
ReflectArrow(akSource as Weapon)
EndIf
Endif
EndEvent
;=====================================================================================
; FUNCTIONS
;=====================================================================================
Function ReflectSpell(Spell spSpellToReflect)
EndFunction
Function ReflectArrow(Weapon wpBow)
EndFunction
;=====================================================================================
; PROPERTIES
;=====================================================================================
float fFireExplosionDamage
Spell Property _00E_FS_A3_Mage_FireSphereSP Auto