Warcraft III resources & community, 2003–2006 · archived

spell help please

12 posts
#1

spell help please

hey there ive been using the editor for a while but i just recently starting making spells using triggers and all that fancy shmancy stuff hehe.

I started making my own spell. Basically around 4 corners of the targetted unit "square shape" i have 4 "point" variables which i named firepoint and one in the center. each of the 4 points have a special effect. then from those 4 points i have another special effect where they connect a line of fire from the four points to make the square then the center explodes with fire which i just used the other point in the center of the square. the problem i am having is that after the explosion, the 4 corner points with my special effect {fire trap} and the fire special effect that connects dont dissapear. i would just use the "special effect - destroy" trigger but when i try to i only get the option of the last created special effect.

So i am stuck after the explosion i have all these special effects around.

any help would be greatly appreciated as to how i could get rid of the old special effects. hope i explained my spell well enough. thanks in advance

EDIT - heres a screenshot of what it looks like now http://www.geocities.com/eaturpeasgrammy/index.html?1093132951310 In my boredomn i made it an ice spell lol...
#2
You could make a Variable Array called Fire_Effect
Then set each effect in the variable(using a diff number for each) then destroy them all when the spell is done.
#3
How do i set each effect in the variable? and also what variable with array do i use? special effect? sorry i am still new at this hehe
#4
1) Set the variable via the set variable action. Once you select the variable, a field [index] will appear. Click on that and put in the array number.
2) Yes, its a special effect array.

~The_Raven
#5
http://www.geocities.com/eaturpeasgrammy/dgdfgd.html?1093139609794

I set went to the Set Variablee action and set it to the special effect array and for the index i set it to 1, but what do i set it to on the other side..err i mean the "value"? the only thing i could set it to was itself (special effect variable) and last special effect...i couldnt set it to my "point" variable array
#6
Create the special effect, and in the next action, set the variable equal to (last created special effect.)

~The_Raven
#7
Got it. Thanks a lot both of you guys i really appreciate the help..that was a lot easier then i thought it would be hehe :D
#8
heh quick question if you dont mind....at the beginning of the spell i paused the "target unit of ability being cast" at the end of all my actions i unpaused it, but for some reason hes still staying paused in game. know what im doing wrong?
#9
(Target unit of ability being cast) is reset after a wait. Set it to a variable at the beginning of the trigger and unpause the variable.

~The_Raven
#10
sorry to ask :? but how do i do that? what type of variable do i make and make it equal to?
#11
Unit variable, set it equal to (target unit of ability being cast)

~The_Raven
#12
thanks raven, got it...your a big help thanks