Difference between revisions of "Casting Spells From An Activator"

no edit summary
imported>Mrflippy
 
imported>Mrflippy
Line 4: Line 4:


By the end of this tutorial you should have a working point blank AoE lightning strike spell.
By the end of this tutorial you should have a working point blank AoE lightning strike spell.
[[Image:CallLightning03.jpg|thumb|250px|The spell you will be creating]]


==What you need==
==What you need==
Line 151: Line 153:


==Caveats==
==Caveats==
*This spell will hit the caster as well as everyone around him
*This spell will hit the player as well as everyone around him. This may or may not be what you want. A simple if check in the TutCallLightningAoeSpellScript will prevent the spell from hitting the player:
<pre>
...
set me to GetSelf
if me == player
    return
endif
...</pre>
 
Note that a more complicated script is required to achieve this if any actor is able to cast this spell.
 
*This version of the spell will not cause aggro when it hits people. This can be changed by forcing the target into combat using [[StartCombat]] in TutCallLightningAoeSpellScript, but there are still some problems with that as well.
*This version of the spell will not cause aggro when it hits people. This can be changed by forcing the target into combat using [[StartCombat]] in TutCallLightningAoeSpellScript, but there are still some problems with that as well.


[[Category: Tutorials]]
[[Category: Tutorials]]
[[Category: Activators]]
[[Category: Activators]]
Anonymous user