Warcraft III resources & community, 2003–2006 · archived

Lightning Blast Spell

not rated
Submitted by <PMM>TerranUp16Trigger Enhanced293 downloads320 KB
Screenshot
Screenshot
The caster calls down purple lightning and then pushes the energy from the blast outward, damaging, pushing back and slowing enemy units caught in the blast.

Thanks to: abcdefghstuvwxy for the model and: Darkminnion for the icon
File Name
Lightning Blast Spell.w3x
Author
<span style="color:#00ff00">TerranUp16</span>
Download

Comments

11
Pritty basic, but i like it 4/5 :)
?? Lightning doesnt show up when I use it in my map, but the ground does go down a bit for 1 second Can anyone help?
OK guys. I did find one problem and have now corrected it. I realized that I forgot to clear the unit group containing the pushed units. You can either re-dl the spell or you can simply add an action that clears the pushed units' unit group.
Bounty is pretty easy actually. The reason why there was bounty in the screenshot is b/c the hero was killing neutral units. Neutral units always give bounty. You can disable the bounty via a slight variation of the following trigger I'm going to give you which will turn the bounty on for other players:

Event: Map Initialization
Condition: None
Actions:
Player- Turn Player Flag On/Off: Turn Gives Bounty On for Player X

Or, if you want for all players to give bounty:

Player Group- Pick Every Player in All Players and
Player- Turn Player Flag On/Off: Turn Gives Bounty On for Picked Player
hey, on that pic, when you kill the other enemy team unit nothing happens, sometimes in some maps when you kill an enemy unit you get gold like your killing a creep, i think it has something 2 do with bounty, can someone email me telling me how 2 do it plz? thx
That leak indicator doesn't work, it won't notice some leaks and it will think things that don't leak leak
Actually to destroy an effect it would be:
call DestroyEffect( udg_(someEffect with _ instead of spaces.))

I'm not sure if the regular trigger editor's action:
Special Effect- Destroy (last created)
Actually prevents memmory leaks.. I found a good site that tells you memory leak prevention:
http://www.wc3jass.com/viewtopic.php?t=2072

You can check if a spell leaks using this:

http://manithu.ma.funpic.de/leak_indicator.php

Although this usually only detects big leaks.

I post this, because you said before your gonna learn jass, will this is an easy thing to start and it helps in writing JASS more effectively(I mean without leaks..).

Edit i found a better leak indicator here: http://www.sw0bes.com/mlindicator/
O, sry, lol, I didn't really do a credits reel but I will put a comment here. Actually, I could control leaks, but I've tested it a lot and haven't found a leak yet, and don't want to add something that will take more processing power to accomplish (b/c I imagine it's already a demanding spell for some of the lower-end users). Even the special effect has yet to leak in any of my 1000 uses of it. The Special Effect is an easy leak to plug, just add a trigger after it that goes: Special Effect- Destroy (last created) Special Effect.

Anyways, thank you Switch33 for your comments and help to make this a better spell.
:arrow: im surprised you didn't put me in the credits after i helped the idea of the spell out, and told you somewhat how to do it... and fixed the corpse thing which was somewhat of a hassle, but i really don't care.. Goodluck making spells in the future. :wink:

For now i would give it a 5/5 although, it does probably leak, because i have no idea how to make sure if it leaks or not... Although you can do
Custom Script: set udg_(Variable) = null
This helps preventing leaks i think, i dunno but it works for me at least, but make sure you only do this at the end of the trigger, and it doesn't work for all variables.
(Location variables use something like Call RemoveLocation (udg_(Variable)) or something... i can't remember...)
Feel free to comment, rate, rave, etc...

I'll also take requests for modifications of the spell, or for other spells (not involving JASS; wait a few months for that).
I basically completely resubmitted this spell because it has literally changed a ton over the last two days, so much that for those who did dl it, they probably should download it again.

Features:

-Values and models easily changeable (great moddability)
-Cool models and overall presentation
-Knocks back enemies
-Two variations of the spell included: one sends the corpses flying as well (default), and one that ignores corpses
-Damages structures, but does not move them
-Easy-to-use spell map with plenty of chances to use the spell

Hope you guys like it. It's my first spell I thought good enough to submit here.