Ability like Doppelwalk help needed

Quauhtli

I have the right to remain silent.
Reaction score
62
Alright for those of you who do not know Doppelwalk (from DotA) it acts like following: It creates a image on itself, and makes self invisible (its kinda wind walk + mirror image in one).
I have everything done, exept for now that I need a dummy caster to cast illusion on the hero when he uses the ability. I based this ability on Wand of Illusion's "Item Illusion" ability.
Now my Question:
In my trigger I can't find what issue order I must give the dummy unit to cast "Item Illusion" on the hero who uses the ability...
Where can I find it?
 

SFilip

Gone but not forgotten
Reaction score
634
This was asked several times in the past, please search next time.
Anyway you need a custom script line to order a unit to cast item illusion.
call IssueTargetOrderById(bj_lastCreatedUnit, 852274, GetTriggerUnit())
This orders last created unit to cast it on triggering unit.
 
G

Glade

Guest
Actually...there's another way to do it, if you don't want to use custom script. It looks something like this:

Code:
Image trigger
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Dopplewalk
        (Level of (Ability being cast) for (Triggering unit)) Equal to 1
    Actions
        Set temppoint1 = (Position of (Triggering unit))
        Unit - Create 1 dummy for (Owner of (Triggering unit)) at temppoint1 facing Default building facing degrees
        Set Tempunit1 = (Last created unit)
        Hero - Create Imagine sword item and give it to Tempunit1
        Hero - Order Tempunit1 to use (Item carried by Tempunit1 of type Imagine sword item) on (Triggering unit)
        Unit - Add a 2.00 second Generic expiration timer to Tempunit1

In this case, the dummy caster has the inventory (hero) ability so it can use items, and imagine sword item is an item that basicially has the effects of the image.
 

SFilip

Gone but not forgotten
Reaction score
634
Well in general casting should be more efficient than using items.
Its your choice though.
 

Chocobo

White-Flower
Reaction score
409
Well in general casting should be more efficient than using items.
Its your choice though.

It seems using an item ignores the animation required (Animation - Cast Point, Animation - Backswing Point), and takes less time to cast (you do not need to face the unit to fire the ability with an item). But SFilip's way is less leaker than Glade's one because it doesn't create a handle.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top