HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

a little question about lightning effect spells...

07-07-2005, 05:43 PM#1
uberfoop
ok, im totally new to triggering spells, and so im not really all that great with variables yet, and im not really sure about this but...
ok, so i have a shockwave-based ability but i wanted to have a lightning effect on it so i was making a trigger to make the lightning effect and then destroy it so that it doesnt lag the game, but im not sure if i did it coorrectly (im just making sure)...

so would this work (btw the name of the ability is tree whip, as seen here obviously):

Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Tree Whip
Actions
Lightning - Create a lightning effect Mana Burn (Position of (Casting unit)) (Target point of ability being cast)
Set treewhiplightning = (Last created lightning effect)
Wait 0.25 seconds
Lightning - Destroy treewhiplightning

im just asking cuz im not sure if i destroyed it properly cuz im new to these triggers...
07-07-2005, 06:39 PM#2
Setreal
Yeah it's destroyed. If two people use that ability simultaniously though only one will be destroyed. Maybe change it into an array for each player.
07-07-2005, 07:54 PM#3
uberfoop
thx, but i dont need that. its only capable of having 1 instance in my map = )