• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

refering to images - need help

Status
Not open for further replies.
Level 1
Joined
Dec 28, 2004
Messages
5
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
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
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
 
Level 1
Joined
Dec 28, 2004
Messages
5
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?
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
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.
Top