posted 10-04- 04:16 AM CT (US)
Check out the original scripts for spells as I have mentioned earlier. Spells consist of two scripts. One to make them a spellitem and one which controls their damage. For fireball they are item-fb.c and dam-fb.c or somethoing like that. Read them and learn from them.
For exampole if you change the part which creates the making of the fireball sprite and change it to a sprite of a lightning flash, you would have a lightning bolt.
Explosion spells are tricky. Because you need the coordinates of the enemy sprite. Using the spell on Dink is easier, because Dink´s coordinates are game variables. But the current coordinates of the target sprite are harder to come by. So it would be a lot of work to make the explosion sprite appear over the enemy sprite. I guess you could make a very fast invisible sprite which targets the enemy like a creature. Then you could make it explode after a second or so. Or make it explode when it coes into contact with the enemy. But it will take a bit of work. work.