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!
for my map, i have this one main hero, wehn i press the up arrow key he morphs into a dragon but when i press the down key, i want him to morph back to human, how do i do this? I alrady figured out how to morph into, but not out. PLZ HELP!
It starts out replacing a certain unit and when you want to replace the already morphed unit back into that certain unit, it replaces with just a knight and you can't morph again
I think to do what you want to do, you have to create 2 variables that have a unit-type variable type. Set it so that a variable called "knight"=UnitType of (Knight) and the same with the grunt. Then just substitute the specific knight unit with the variable and it should work.
won't it work too if you just create 1 unit variable called "thereplacedunit" and make the following triggers?
Trigger 1:
Events: player - player 1 presses the up arrow key
Actions: Unit - Replace <thereplacedunit> with a grunt using the new unit's max life and mana
Variable - set thereplacedunit = last replaced unit
Trigger 2:
Events: player - player 1 presses the down arrow key
Actions: Unit - Replace <thereplacedunit> with a knight using the new unit's max life and mana
Variable - set thereplacedunit = last replaced unit
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.