• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ HD Level Design Contest #1 POLL is now OPEN! Check out the stunning visuals of the final entries. 🔗Click here to cast your vote!

Lightning Spells by Roflcoptor v1.3d

Well I thought I'd make a spellpack containing lightning spells, because there are huge possibilities for this in wc3.

This spellpack functions properly and contains no leaks, but still I'd like to hear your opinion of what should I improve.

I also made this as an example, to show that hashtables in 1.24 aren't the all-solving universal ultra solution, because Thunderstorm can be active more than once on a unit, which can't be done easily with hashtables (I am NOT claiming it isn't possible but it would take a lot of work.....)


v1.0 : Released
v1.1 : Added Documentation
v1.2 : Added configurability and added Tooltip
v1.2b : Added configurability of Static Field, changed size and removed debug messages at Thunder Storm
v1.3 : Added more documentation and fixed a bug that sometimes lightnings wouldn't be destroyed
v1.3b : Improved preload trigger; The random unit in Thunderstorm now can't be affected by both DMG2 and DMG3 anymore, as to keep up balance
v1.3c : Improved the ThunderStorm Trigger, by using only one dummy unit and fixed the learning button
v1.3d : Fixed dummy expiration, due to forgotten variable changing


Keywords:
lightning, spell, pack, spellpack, electricity, electric, thunder, storm, field, static
Contents

Lightning Spellpack v1.00 (Map)

Reviews
11:46, 2nd Mar 2010 TriggerHappy: Not too much eye candy in the spells but they were decent and the coding looked fine.

Moderator

M

Moderator

11:46, 2nd Mar 2010
TriggerHappy:

Not too much eye candy in the spells but they were decent and the coding looked fine.
 
Hmmmmm Passive Chain Lightning

Or shall I make a better one? ;)


K when I get to overcome my laziness, I'll add condigurability, so you can easily change the field's size.

I thought about making it instant cast(like warstomp)

What do you think of thad?
It should have to be a 1:1 copy, I just thought you can make a chain of lightning combinied with Purge, and which will last the less as more units it will hit. Isn't that a cool idea? Additionally, if the purged unit attacks, the buff will disappear and deal damage to the target.
 
Level 10
Joined
Dec 11, 2006
Messages
359
I don't really like them because it seem one of them is a channeling thunderclap and the other is just some lightning strike with some ground effects. And I think adding ground effects which doesn't really do anything is bad. And the tooltip doesn't say what the spells does.
 
Level 9
Joined
Nov 25, 2008
Messages
194
I don't really like them because it seem one of them is a channeling thunderclap and the other is just some lightning strike with some ground effects. And I think adding ground effects which doesn't really do anything is bad. And the tooltip doesn't say what the spells does.

Uuuuhm did you look at the triggering?
And what youi mean with adding ground effects?

And yeah I forgot to add spell description
 
Level 9
Joined
Nov 25, 2008
Messages
194
Well @ Yeahright, you probably mean I could spwan a dummy unit every 2 sec with forked lightning.

This would cause several problems:
-The dummy unit deals the damage, not the caster, which could be relevant for other things, for example a damage reflect.
-The lightning color is adjustable.

And I still don't get, what you mean with lightning strike. I have never seen such a spell before....

@Anachron I only responded to yearight

EDIT:
@Yearight: An additional thing is that it
a) hits every unit in the AoE
b) hits a a configurable amount of random enemies in the AoE and
c) hits one random unit in the AoE
 
Last edited:
Level 24
Joined
Jun 16, 2008
Messages
1,939
well, yeahright, as far as i know your triggering is not evenly as superior as roflcoptors but much worse.
i would read the code before posting things like: 'i do not like it because i do not like it'
your opinion isnt very contructive, dont you think?
normally, i would not say anything, but this is kinda audacious...


ok, enough complaints, nice spells.
still, you should change the things i told you.
 
Level 10
Joined
Dec 11, 2006
Messages
359
Palaslayer jugde for yourself... and I stated my opinion and said that the I didn't like all the effects in the lightning thing. And how much worse, please give me a good example and do not say things because you like him better than me. We all have the freedom to state our opinion and I stated mine and didn't rate it btw. Something like 3.75/5 or 4/5.

And again does he need or ask for you to "protect" him all the time? You could reduce his chances of making his spells better if you offend all critique.
 
Level 9
Joined
Nov 25, 2008
Messages
194
No I don't

I can protect myself quite good, I think he's just upset by what you write.

And i still don't get, what you problem is, the spells are both unique.....

so you judge a spell just because of a certain SFX?

And you say it's a channeling Thunder Clap.... That's total nonsense.... Neither is it cahhneling nor has it anything in common except the sfx and that it is an AoE spell.....

So I think palaslayer just wants to stop you from talking, well let's say incorrect things....

Btw SFX'es are easily chagneable.....
 
Level 10
Joined
Dec 11, 2006
Messages
359
so you judge a spell just because of a certain SFX? Yes infact I do. And I'm sorry I didn't really know what the spells did :s no tooltip. And palaslayer try to mind your own business.

Edit:
And I think you underrestimate my triggering.
 
Last edited:
Level 17
Joined
Mar 17, 2009
Messages
1,349
Ok, I didn't fully read the triggers, but some obvious stuff:
You know how you damage 4 units with extra damage, and one with more extra, well, what if the random unit to do 100 damage is the same as that that already got 75? So unless it's intentional, you need yo use a Debug group (you know how to do it, add the 4 units damaged to that group, and then pick a random one which isn't in it).

Also, your preload leaks, and you're using one preload for two spell, separate one for each. And create the dummies as neutral in the preload, and also preload special effects.

As for my opinion on my spells, I don't see anything special in them... but I must say, good job!
 
Level 9
Joined
Nov 25, 2008
Messages
194
Well you're right with the preload actually I was just trying to fix a bug with it.
I don't actually need the dummies to cast the spell it is enough if I add it right?

Funny that Leak_Point leaks isn't it? ;P Simply forgot removing this one.

Yeah about the damage that was a thing I wanted to know, if I should change this, but I thought if ppl liked it leave it like this^^

EDIT: Fixing
 
Level 9
Joined
Nov 25, 2008
Messages
194
Changes made

EDIT:
It should have to be a 1:1 copy, I just thought you can make a chain of lightning combinied with Purge, and which will last the less as more units it will hit. Isn't that a cool idea? Additionally, if the purged unit attacks, the buff will disappear and deal damage to the target.

Hm should I make a custom purge aswell then?

And the problem with the custom purge would be, that it would most likely bug, if the unit's MS gets modified while it has custom purge on it. But w/o custom purge I probably couldn't make all the nice effects.
 
Last edited:
Level 3
Joined
Oct 27, 2009
Messages
36
Probably I just copied it wrong, but my dummy doesn't seem to move. I mean, it just sits where I casted it and shoots the lightning but the lightning on my hero also shoots lightning. So, I mean, my hero cssts the spell, the passive lightning (thunder storm) is on her and moves around where she goes, but another copy of the thunder storm just sits there and shoots lightning and doesn't move.
 
Top