Difference between revisions of "User talk:Lisselli"

279 bytes removed ,  20:35, 5 November 2016
no edit summary
imported>Lisselli
imported>Lisselli
Line 8: Line 8:
Spell SpellSource
Spell SpellSource


AUTO STATE CatchingSpell
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \
bool abBashAttack, bool abHitBlocked)
  bool abBashAttack, bool abHitBlocked)
If akSource as Spell
If akSource as Spell
          SpellSource = akSource as Spell
GoToState("Done")
if GetSpellSkill(SpellSource as Spell, DestructionSpells) == false
SpellSource = akSource as Spell
debug.notification("The spell was not a Destruction Spell")
if GetSpellSkill(SpellSource as Spell, DestructionSpells) == false
return
debug.notification("The spell was not a Destruction Spell")
                else
return
                    ; Things you want to do with SpellSource
                        else
                            ; Things you want to do with SpellSource
endif
endif
endif
EndEvent
endif
ENDSTATE
EndEvent
 
STATE Done
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \
bool abBashAttack, bool abHitBlocked)
;empty
EndEvent
ENDSTATE


Anonymous user