Warcraft III resources & community, 2003–2006 · archived

modify heroes armor type

4 posts
#1

modify heroes armor type

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
#2
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...
#3
Have a idea.....
If you want to change the armor type wait for the new version of WE Unlimited . This editor have more triggers and funktions of the normal world editor . You will easily change the armor type then. Don't know if the new version is out know. But i hope this help you
#4
Okey thanks for your posts i will figure it out as soon as i have the time to do so
Currently I'm thinking of setting this feature on ice