Warcraft III resources & community, 2003–2006 · archived

Help with a critical spell

8 posts
#1

Help with a critical spell

i need to make a spell like windwalk but when the unit attacks it casts shadow strike instead of the damage bonus that normall happens. please tell me how to do this. ---AlphaChicken
#2
well there is a way but it involves another unit possibly invisible with locust abillity and no shadow and get the invisible unit to cast shadow strike on the unit thats been attacked by wind walk
#3
yeah but is there some trigger enhanced way or anything else other than that? if then how? and if not how do i do what you said with triggers? HELP!!!!!!!!!!!!!!!!!!
#4
AlphaChickenyeah but is there some trigger enhanced way or anything else other than that? if then how? and if not how do i do what you said with triggers? HELP!!!!!!!!!!!!!!!!!!


umm, off the top of my head i suppose u could catch whenever a unit casts ur spell and send it to a unit group (have to time as well to remove them once the spell has finished), and have a trigger that specifies if a unit attacks and it is in the unit group then do what the other guy says, and create and invisible 'caster' unit that shoots the shadow strike and disappears, and remove the unit from the group
#5
Alternatively, you could check if an attacking unit had the windwalk buff, and if it does, add the shadow strike ability to it. Order it to shadow strike the attacked unit, wait 0.01 seconds, remove the ability, and order the unit to continue attacking the unit it just used it on.
#6
ok i found how to do it ill explain later. but ineed to know what trigger do i use to say: when unit with windwalk attacks remove _____ ability?
#7
A unit is attacked

If
Attacking unit has buff of type: WindWalk = true
Then
Remove ___ from attacking unit

(or something pretty similar to that...)
#8
ok something isnt working this is how i did it:
-made an ability based off orb of slow.
-i made it do shadow strike 100% then i made a trigger that gives the ability whenever wind walk is cast.
-made a trigger that takes away orb ability after wind walk runs out.
-made the ability you gave me but when i attack it instantly takes ability and wont let you cast it.
-so i made a wait action. this worked (i used wind walk and attacked. it cast shadow strike and took ability in .5 secs). heres the problem:if i used wind walk again it waited two secs and took it even though i didnt attack anything!!

please help me! ive gotten everything to work but this!