Warcraft III resources & community, 2003–2006 · archived

Anti-Tk-er Trigger

14 posts
#1

Anti-Tk-er Trigger

I need help with a trigger that tornado's an allied unit if they attack you. Can anyone help?
#2
Unit is attacked
Conditions
Owner of attacked unit is an ally of owner of attacking unit equal to true
Actions
Create a spell dummy at position of attacking unit for neutral hostile
Order last created unit to Druid of the Talon- Cyclone attacking unit
Remove last created unit
#3
Untitled Trigger 001
Events
Unit - A unit Is attacked
Conditions
((Attacked unit) belongs to an ally of (Triggering player)) Equal to True
Actions
Unit - Create 1 Spell Dummy for Neutral Hostile at (Position of (Attacking unit)) facing Default building facing degrees
Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Cyclone (Attacking unit)
Unit - Remove (Last created unit) from the game


didnt work, did i do this right, or did i mess up ?
#4
Did you give the dummy cyclone, and you probably need a variable, or a generic dummy (one already in the map that will cyclone when needed without creation)
#5
yes the dummy has cyclone, variable being of what kind and what for? and do you mean generic as in a dummy for multiple spells ?
#6
Because the unit is being remove instantly right after being ordered to cyclone, thus not giving enough time. Any more time could cause the trigger to screw up with an unremoved dummy, and so need the variable the track it.
#7
My problem is the Spell dummies wont cyclone.
#8
alright, heres what i did, i made a dummy on a random point in the map, and whenevre a unit attacks an allied unit it is moved to them and its "Supposed" to cyclone them, which doesnt happen. Then the unit is moved back to the spot where it was.
#9

Untitled Trigger 001 
Events 
Unit - A unit Is attacked 
Conditions 
((Attacked unit) belongs to an ally of (Triggering player)) Equal to True 
Actions 
Unit - Create 1 Spell Dummy for Neutral Hostile at (Position of (Attacking unit)) facing Default building facing degrees 
[color=red]Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Cyclone (Attacking unit) 
Unit - Remove (Last created unit) from the game [/color]


the dummy unit will begin to cast the spell, but will be removed before it can cast the spell...

you must put a wait in there, but if you do, it will mess around with the "last created unit" thing. So you must store the unit in a variable

I DONT HAVE WE OPEN.


Untitled Trigger 001 
Events 
Unit - A unit Is attacked 
Conditions 
((Attacked unit) belongs to an ally of (Triggering player)) Equal to True 
Actions 
Unit - Create 1 Spell Dummy for Neutral Hostile at (Position of (Attacking unit)) facing Default building facing degrees 
set dummy = (Last created unit)
Unit - Order (dummy) to Night Elf Druid Of The Talon - Cyclone (Attacking unit) 
wait 0.5 seconds
Unit - Remove (dummy) from the game 


hopefully that works, it isnt multi-instance to an extent... i mean, it is usable by all players but there is a very remote chance that it might not effect a unit/units
#10
Won't be multinstance. BUT, you can create a second trigger, and remove the action about the removing in the first trigger

Unit starts the effect of an ability
Conditions
Ability being cast equal to cyclone
Actions
Remove (triggering unit)
#11
(havent WE open)CODE:
Event
a Unit is attacked

Condision

Unit is eaqoal to ally of attacking unit

Action
:Create 1 "unit" for neutral hostile at posision of attacked unit:
:order last created unit to attack attacking unit:
:wait 2 seconds:
:remove last created unit:


that should work. sry if im not speaking trigger laungchis and sry for my english
#12
crap. alright i got it so it makes units, has the time to cyclone them, getting the unit there and giving it enough time isnt a problem, it just wont cast the spell. well thanks for your help people but i guess ill have to try somethign else.
#13
Question:Did you make sure cyclone can be CAST on allied units?
#14
And that they have the mana and the techtree (master) to use the spell?