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

Illusions

Status
Not open for further replies.
Level 6
Joined
Jun 20, 2012
Messages
195
Can somebody tell me how this is done ??

In DotA, there are heroes that has the ability to conjure illusions and I'm wondering why whenever the original casts a spell, the illusions mimic's them ..

What is the trick for this ?
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
As I understood :
  • Attack mimic
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Ordered unit) Equal to Mimic'ed Unit
    • Actions
      • Unit - Order Mimic'er to Attack (Target unit of issued order)
  • Movement Mimic
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Ordered unit) Equal to Mimic'ed Unit
    • Actions
      • Unit - Order Mimic'er to Move To Your Point ( And remove leaks )
  • Stop mimic
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Ordered unit) Equal to Mimic'ed Unit
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (String((Issued order))) Equal to stop
        • Then - Actions
          • Unit - Order Mimic'er to Stop
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (String((Issued order))) Equal to hold position
            • Then - Actions
              • Unit - Order Mimic'er to Hold Position
            • Else - Actions
  • Ability mimic
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Triggering unit) Equal to Mimic'ed Hero
    • Actions
      • -------- This depends of the type of Ability --------
      • -------- If it is No target ( Instant ) = Unit - Issue unit with no target - And Choose the base ability --------
      • -------- If it is targeting a unit = Use Issue Order to target a unit - And choose base ability --------
      • -------- If it is targeting a point - Use Issue Order to target a point And Choose base ability (Remember to remove Leaks) --------
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
When the hero casts a spell the illusions play the same animation and look to the same target. The rest of the spell (The projectile moving) are just movement triggers.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
An Illusion is Created
Add Illusion to "Illusions" Group

A unit starts the effect of an ability
Ability being cast is equal to someability
Pick every unit in "Illusions Group" matching (matching unit) belongs to (Triggering Player) and do - Actions
- Make Picked Unit face Target unit of Ability Being Cast
- Play Picked Unit cast animation

(This is how Phantom Lancer works)

The other one is Nessaj, which just blinks all the illusions to the target, that's too easy.

Tauren Chieftain used to have a Mimic thing but it was removed later. It jus used some math to move the unit to the opposite point while playing the walking animation

As you see, the mechanics in each case are different. If you want an specific "mimic" behavior from Dota, please detail it.
 
Status
Not open for further replies.
Top