Warcraft III resources & community, 2003–2006 · archived

Keeping items for "hero evolve"

7 posts
#1

Keeping items for "hero evolve"

On the map im making, a much reworked angel arena, i have added evolving heroes, and remove the old hero for the new, how can i make the items from the first hero pass onto the new?
#2
When the event occurs that the hero must change to a new one, you must include six triggers that set an item variable for each item slot.

example
Set [Item1] = Item carried by (Hero) in slot 1
Set [Item2] = Item carried by (Hero) in slot 2
etc

Then, after the new hero has been created, do actions:

Hero - Give [Item1] to (NewHero)
Hero - Give [Item2] to (NewHero)
etc

Hope that helps
#3
Ah cool, thankyou very much
#4
hiho
#5
The Death_Stalkerhiho


uhhh....... Hello.
#6
Is it working? It shouldn't, when unit is replaced items are supposed to disapper. If this doesnt work try dropping all items first.
#7
i would also like to say, when you use: replace unit with unit, and they are both herooes, the new unit will keep the old hero's items and level/experience value. Unless you want a hero starting over at level 1, this way is easyer (I figured this out making a crappy remake on pokemon world (....it doesnt exist anymore XD)) U can also make a trigger to set last replaced unit's experince to 0 even!