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

modify heroes armor type

Status
Not open for further replies.
Level 7
Joined
Mar 12, 2006
Messages
407
Hi!
I used forum's search function but didn't find anything useful so i ask here...

My problem is that I'm not able to change my heroes hero type.
I want that the heroe picks up a certain item and then he should get his armor type modified ... for example from hero to heavy.

I tried to trigger a tech which changes units armor type but it didnt work on heroes. Further its impossible to unlearn techs which would be necessary on item drop.
I also tried to create an item ability that changes the armor but i found none capable of this
I've been tryin for a while now and getting frustrated :(

I hope someone has an idea
 
Level 6
Joined
Feb 18, 2005
Messages
263
take a look at this

here the name of the hero is changed.
Go to the Object Editor, press strg+d and get
how 'armor type' is named there - use that instead of 'name' in the code
how the different armortypes are called - use that instead of 'new name'

but be carefull:
the code replaces the hero - i dunno what happens to it's customvalues, inventory or to variables that refer to the hero...

hope this helps you...
 
Status
Not open for further replies.
Top