refering to images - need help

Status
Not open for further replies.

Boy Named Goo

B

Boy Named Goo

Hello

I would like to make a spell that creates an illusion of the targeted hero, but the target can only be attacked by non-hero units. First spell that came in my mind was Illusion (Wand of illusion), but i cannot refer by trigger to the created image. Any ideas?
Thanks
 
Well... give the Wand of Illusions to a dummy unit which has hero inventory and order it to use it. And if you want the unit to be affected by non-hero units... You will have to heal the unit immediately after it is damaged by a hero unit with the damage received. Good luck!

~Daelin
 
OK, I get the point, but i cant refer to the created unit. Somehow the event response "summoned unit" doesnt work. So i cant heal it. If I could put the summoned unit into a variable then i could set his life/ order/ set classification, etc.
The question is still how can i refer?
 
Event - An Unit Spawns a Summoned Unit
Conditions - ((Summoned Unit) is an Illusion) equal to true
Actions - set spawn = (Summoned Unit)

That is the only way you can refer to summoned unit. If you want to check for a water elemental you will check if (Type of (Summoned Unit) == Water Elemental).

~Daelin
 
Status
Not open for further replies.
Back
Top