Warcraft III resources & community, 2003–2006 · archived

refering to images - need help

5 posts
#1

refering to images - need help

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
#2
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
#3
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?
#4
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
#5
OK, that was the thing needed. Thanks a lot!