• 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!

[General] Unit attack type question

Status
Not open for further replies.
Level 1
Joined
Mar 21, 2017
Messages
28
I was tinkering wit the editor and I was wondering if there was a way to change a unit's attack type, using triggers maybe? I was trying to make it so that when a particular hero picks up an item it changes his attack to choas, any way i could accomplish this?
 
In the actions section of the trigger there is an action "replace unit" ...essentially replace the unit with a clone of it that has the desired attack type... that should do this, there is another way but its more complicated than this.
 
Alter a metamorphosis ability, make the normal unit form the original unit, make the alternate unit form the cloned unit with the modified attack, set flags to uninterruptible, permanent , set alternate form hit points to 0 (otherwise it'll add watver hit point you put here to the new form), set mana cost to 0, set up a trigger - add ability, add this ability to the unit, then set up a new action, issue order with no target, order unit to Night Elf Demon hunter - Metamorphosis, and there you go
 
Last edited:
Status
Not open for further replies.
Back
Top