Im gonna try doing a mass hex. I know how to use dummies and allrdeady have 1 ficed and rdy to go.
So, can some1 help me with a simple trigger that either:
creates 1 dummy for each affected unit, and then orders all dummys to do a hex on their specific unit or
creates 1 dummy, and orders it do a hex on all affected units (this seems like a bad idea, refering to that the hex wont affect all units at the same time...
Im looking for a smooth trigger that does a hex on all enemy units targeted by an aoe (say silence). Any ideas anyone?[/b]
u have to use the function: pick every unit in rect and do multiple actions
just pick all units withing XXX range of the target point of ability being cast and then for thje multiple actions: create a dummy and order it to cast a custom made hex on picked unit
LingonberryjamIm gonna try doing a mass hex. I know how to use dummies and allrdeady have 1 ficed and rdy to go.
So, can some1 help me with a simple trigger that either:
creates 1 dummy for each affected unit, and then orders all dummys to do a hex on their specific unit or
creates 1 dummy, and orders it do a hex on all affected units (this seems like a bad idea, refering to that the hex wont affect all units at the same time...
Im looking for a smooth trigger that does a hex on all enemy units targeted by an aoe (say silence). Any ideas anyone?[/b]
You seem to understand the basics, what you need now is to first
Set variable = all units within range of the caster with the condition of own of unit equals enemy of caster owner
the variable here is Unit Group type
next use Unit Group trigger to pick every unit in Variable to do mutiple actions -to create a dummy unit on postion of unit to do cast hex on it. -set expiry for each last created unit to 1 seconds -hide last created unit
You donnot need a variable for this... if you do create a dummy for each unit you might get some laggs in game, so I suggest you create a dummy with the hex ability that has no cooldown and you pick every unit in range and order the dummy to cast hex on the picked unit. After that you remove the dummy.
raulYou donnot need a variable for this... if you do create a dummy for each unit you might get some laggs in game, so I suggest you create a dummy with the hex ability that has no cooldown and you pick every unit in range and order the dummy to cast hex on the picked unit. After that you remove the dummy.
actually, this wont work
abilities in wc3 that default to have >0 cooldown will not work with <1 cooldown. You would have to order the dummy to move to fix this bug.