• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Some help with something

Status
Not open for further replies.
Level 5
Joined
Dec 29, 2004
Messages
78
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?
 
Level 10
Joined
Jul 2, 2004
Messages
690
use the "Unit - Create" function at your desired points, then use "Unit - Remove" to remove the original attacked and attacking unit.
 
Level 16
Joined
Oct 30, 2004
Messages
1,277
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 :) )
 
Level 5
Joined
Dec 29, 2004
Messages
78
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)

I didnt work tho
 
Level 16
Joined
Oct 30, 2004
Messages
1,277
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.
 
Status
Not open for further replies.
Top