im making a brandy map where you throw a ball at an oppoinet. its an ability. but when the ability hits a unit i want it to replace attacked unit with a nother unit and replace the attacking unit with a unit. how do i do this?
I would use the "unit - replace" action instead. Trigger would go something like this:
event - unit finishes castin an ability condition - casting ability equal to "coctail" actions - Unit - Replace casting unit with footman Unit - Replace "the targeted unit" with footman (i forgat how its in the editor, but im sure u can find it)
Also you can add maybe a 0.5 sec wait at the beginning of the trigger just if u want the trigger to wait a bit for example to wait that the coctail is thrown, the time it flies in the air. (<--- that got bit messy, ignore it if u didnt understand )
i dont mean that i can do that easly i mean when a unit gets hit by the spell he changes into the person thats it. but the spell dosent always hit somebody cos it dosent having homing on. i tried Event -unit is attacked Condition -Attacking unit equal to (Im it) Actions Replace attacking unit with (Try and catch me) Replace Attacked unit with (Im it)
When u attack with a spell, i dont think it goes to the category "attacking unit", spells are always referred "casting unit".
Anyway, well, good that u clarify it, u didnt say in ur first post that it doesnt always hit. In that case qwertys idea about the buff check is good. U should make a trigger that has event like "every 0.5 sec of game time" and the trigger checks for buffs and turns the units with the wanted buff into a unit u want.
If u have a problem creating that trigger, post here, then i'll check the editor to see how it could be made.