61 posts In the small gas oven you have, ya you know the one I mean. joined
#1
Chanelling Mirror Image Ability
I would like to make a spell that creates mirror images of the caster, and is chanelling, and when the chaneller stop casting the images die. The current problem I'm having is that I don't know how to store mirror images as variables. Are they considered summoned units? Anyway, how do you store mirror images as variables if you can.
Make a unit group variable for them. They count as units, and when the unit stops channeling, do pick every unit in images_var and do remove picked unit from the game. --donut3.5--
61 posts In the small gas oven you have, ya you know the one I mean. joined
#3
Well what I'm asking is how you set a mirror immage to a variable so you're really just restating my question as an answer, so how do u set a mirror image to a variable, set MIRRORUNIT = (Summoned Unit) or what?
Allright, this solution assumes that Mirror Images are the same unit type as their caster
Assuming this is true, pick every unit withing 500 of Position of Triggering Unit (<-- clean up this leak) Matching Matching Unit not equal to Triggering Unit
If you ONLY will have your hero [plus images] (eg, for some AoS games) then you can just pick all non-triggering unit Units for Owner of Triggering Unit.
61 posts In the small gas oven you have, ya you know the one I mean. joined
#5
K thx, I didn't know that mirror images had a unit type so that was my problem , btw is it laggier in game if u put (units in playable map area mathcing condition) than (units within 500 range of POINT)?
Mirror images count as ILLUSIONS. Make a trigger with the event Unit enters Playable map area. Cond: Unit-type of TriggeringUnit == Hero Triggering Unit is an Illusion == true Action: Add TriggeringUnit to MI_Group_var
You could have an other trigger that registers spellcasts, store the caster to a variable, then turn on the first trigger. Wait 1 sec, then turn it off.