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.
223 posts If it was the same as yours, would you still wanna ask it? joined
#7
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