• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Replace Unit trouble

Status
Not open for further replies.

nnjnnj

N

nnjnnj

Heya,

I'm having some problems with "Replace Unit"

Trigger goes as follows:

Event:
A unit begins casting an ability

Condition:
Ability being cast equal to 'MyCustomAbility'

Action:
Replace Triggering Unit with 'MyCustomUnit' using the new unit's max life and mana


Now, there are 20 MyCustomUnit's with corresponding MyCustomAbility's. Each unit is able to change to any other unit at any time (given requirements are met), so I have 20 of the aforementioned triggers set up, but the unit, no matter which ability used, always gets replaced with the 'MyCustomUnit' from the last trigger on the list.

My custom abilities are using Roar, should I use channel? Seems to be pretty popular in the tutorials.

Let me know if i need to clear that up a bit.

Thanks.
 
Could you post your triggers in [ trigger ] [ /trigger ] code, and put a [ hidden ] [ /hidden ] tag around it? Would be easier to identify your problem.

(All tags are without spaces and can be found in advanced reply)
 
Status
Not open for further replies.
Back
Top