• 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.

[Solved] Illusions

Status
Not open for further replies.
Level 37
Joined
Aug 14, 2006
Messages
7,602
Hey.

I heard that there's somekind of special command that can instantly create an illusion. I would like to use this way instead of needing to create all those dummy abilities, items and units.

I made a little test map and I'm here asking someone who knows is here to add the command to the test map. When player clicks a unit creates an illusion of it.


Rep for the helpers.
 

Attachments

  • ILLUSION.w3x
    17.3 KB · Views: 46

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Use the order ID Spinnaker has provided for the wand of illusion ability. Unlike most abilities, wand of illusion does not have an order string, and only an order ID.

You give a dummy unit (preferably a recycled dummy unit to avoid unit leaks) a modified version of the wand of illusion ability. Your then order the unit using the wand of illusion order ID to cast the ability at the unit you want to make an illusion of.

Spinnaker posted an example piece of script showing how to issue the order to the unit. Do remember to substitue the widget for the appropiate target and the source for the appropiate dummy unit.
 
Level 37
Joined
Aug 14, 2006
Messages
7,602
Here, check this example :)
Same code will work for selection units.

Okay, nice, I got this now!

Aeroblyctos, to be honest whenever you see random illusion creation in any war3 map you may be 98% sure it's dummy wand of illusion spell. ;S

So no one uses the original Mirror Image ability?


Well I guess this is it. I was searching a little simpler way to create illusions and now I have it! I don't need anymore items just the dummy unitt and the ability. Great job guys, really great job. Thanks to Spinnaker, Dr Super Good and -Kobas- for the help you've gave! Thanks again.

The problem is solved!
 
Status
Not open for further replies.
Top