X
xvirus666
Guest
in my loap map i making, im making these things called "mimics". now, their ability is to mimic any unit (and color of player)they choose. how can i do this? or is it even possible?
Mimic
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to mimic
Actions
Set Mimiced = (Target unit of ability being cast)
Unit - Replace (Casting unit) with a (Unit-type of Mimiced) using The old unit's relative life and mana
Set Replaced = (Last replaced unit)
Unit - Change ownership of Replaced to Player 1 (Red) and Change color
Starlite said:something like this?
mimiced is a unit, and replaced is a unit. im not sure this works but it might...Code:Mimic Events Unit - A unit Begins casting an ability Conditions (Ability being cast) Equal to mimic Actions Set Mimiced = (Target unit of ability being cast) Unit - Replace (Casting unit) with a (Unit-type of Mimiced) using The old unit's relative life and mana Set Replaced = (Last replaced unit) Unit - Change ownership of Replaced to Player 1 (Red) and Change color
Jazradel said:Yes it should work fine except you change ownership thing at the end. You want it too retain color and change it too owned of casting unit.