• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Replacing a Hero with another Hero?

Status
Not open for further replies.
Level 1
Joined
Jun 27, 2007
Messages
3
I got a question about Hero replacing. In my map, I want to make it so that when a player types in a certain message, their hero will be replaced by another one. I've tried multiple ways, but none of them seem to work.
 
Level 1
Joined
Jun 27, 2007
Messages
3
I didn't think of that! Thanks.
EDIT: It didnt seem to work right.......what is the unit array?
 
Last edited:
Level 1
Joined
Jun 27, 2007
Messages
3
I tried that one. Whats really busting me is that since the heroes are chosen from an altar, I don't have a concrete unit to use the unit triggers with, since they aren't placed on the map until they have been chosen. I tried to use the hide/unhide and move instantly action triggers, but I can't properly target the original hero because he hasn't been placed. The hidden heroes have been placed, but when I type the message, nothing happens.:sad:
 
Level 35
Joined
Oct 9, 2006
Messages
6,393
Okay didnt bother writting the triggers here. So I am just going to post this map I made with hero swiching.
Hope it helps you out, it works.
http://www.epicwar.com/maps/23502/
Just download test it, and look in triggers to see what I done.

that would destroy his items + experience +....all of the replaced unit ^

and he is just switching between heroes, not morphing, so you don't need to keep the relative health and mana
This isnt correct: He will keep his items, and his exp. His original unit would be removed yes, but then he could just use same trigger to replace the new one with a unit of the old type....
My maps shows it, just made it more useful
 
Status
Not open for further replies.
Top