Ru-her Posted July 20, 2011 Author Share Posted July 20, 2011 Hey guys, I wanna know if anyone can tell me how edit Aoe Spell, to show the animation in every area that magic is set, like this example 5x5:>! ![](http://oi54.tinypic.com/2vhxf94.jpg)and create a new type of spell: Linear … like this:>! ![](http://oi55.tinypic.com/if8ox1.jpg)Thanks all. Link to comment Share on other sites More sharing options...
Octohunter Posted July 20, 2011 Share Posted July 20, 2011 For the AOE animation, I think you can use SendAnimation. Just toss an If statement in CastSpell where it sends the animation, then put a loop in the If statement. Something like this. (waits for Soul/some more experienced programmer to fix pseudo-code)```If IsAOE = True ThenCall SendAnimation mapNum,Spell(spellnum).SpellAnim,x,yFor i = 1 to Spell(spellnum).RangeCall SendAnimation mapNum,Spell(spellnum).SpellAnim,x+i,yCall SendAnimation mapNum,Spell(spellnum).SpellAnim,x,y+iCall SendAnimation mapNum,Spell(spellnum).SpellAnim,x-i,yCall SendAnimation mapNum,Spell(spellnum).SpellAnim,x,y-iCall SendAnimation mapNum,Spell(spellnum).SpellAnim,x+i,y+iCall SendAnimation mapNum,Spell(spellnum).SpellAnim,x+i,y-iCall SendAnimation mapNum,Spell(spellnum).SpellAnim,x-i,y+iCall SendAnimation mapNum,Spell(spellnum).SpellAnim,x-i,y-iNextEndIf```NOTE: This is pseudo-code and will not work. If you plug this directly in to the server files, you will get an error. This is just to show you the basic logic of it.For linear spells, I'll release a tutorial once I'm done coding it. :) Link to comment Share on other sites More sharing options...
Dzastin Posted July 20, 2011 Share Posted July 20, 2011 For linear spells, I'll release a tutorial once I'm done coding it.Wow. Good Luck! Link to comment Share on other sites More sharing options...
Octohunter Posted July 20, 2011 Share Posted July 20, 2011 Here you go.http://www.touchofdeathforums.com/smf/index.php/topic,73750.msg790925/boardseen.html#new Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now