Help with "Double Team" ability

Foresector

Member
Reaction score
16
I'm making this Ability called "Double team"
What it is supposed to do is that the hero targets a point and moves to it.
The catch is that it creates images around it which accompany the hero while it is moving to the point to prevent the hero from being damaged along the way.
I tried using channel, and using a trigger to give the hero mirror image and ordering it to mirror image, move and move the images but it never works.
Anyone got a solution or an alternate approach?

Code:
Double Team
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Double Team
    Actions
        Unit - Pause (Triggering unit)
        Unit - Add Mirror Image to (Triggering unit)
        Unit - Set level of Mirror Image for (Triggering unit) to 3
        Unit - Unpause (Triggering unit)
        Unit - Order (Triggering unit) to Orc Blademaster - Mirror Image
        Unit - Remove Mirror Image from (Triggering unit)
        Unit - Order (Triggering unit) to Move To (Target point of ability being cast)
        Unit Group - Order (Units within 512.00 of (Position of (Triggering unit)) matching ((Picked player) Equal to (Owner of (Triggering unit)))) to Move To (Target point of ability being cast)
 

Nigerianrulz

suga suga how'd you get so fly?
Reaction score
198
Code:
Double Team
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Double Team
    Actions
        Unit - Pause (Triggering unit)
        Unit - Add Mirror Image to (Triggering unit)
        Unit - Set level of Mirror Image for (Triggering unit) to 3
        Unit - Unpause (Triggering unit)
        Unit - Order (Triggering unit) to Orc Blademaster - Mirror Image
        [COLOR="Red"]Unit - Remove Mirror Image from (Triggering unit)[/COLOR]
        Unit - Order (Triggering unit) to Move To (Target point of ability being cast)
        Unit Group - Order (Units within 512.00 of (Position of (Triggering unit)) matching ((Picked player) Equal to (Owner of (Triggering unit)))) to Move To (Target point of ability being cast)

if you use channeling spell if you remove the spell then it wont work because it is using the spell and you just remove the spell
so add maybe a wait - 30 second and it should work?
 

Foresector

Member
Reaction score
16
Ugh, but then you can see the mirror image while the hero is moving, and you are still free to use it again manually.
 

Quauhtli

I have the right to remain silent.
Reaction score
62
you can use the Item Image ability from the Wand of Illusion...
but that wont work if the unit who is casting Double Team has an item/spell that resists spells... since you dont cast it on yourself...
 

Foresector

Member
Reaction score
16
So how would you use a wand of illusion effect?
I tried making a dummy to cast it on the hero but there is no trigger to make it use the wand of illusion ability.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> there is no trigger to make it use the wand of illusion ability.

Other than ordering the use of an item, you can use:

Custom script: call IssueTargetOrderById(bj_lastCreatedUnit, 852274, GetTriggerUnit())

This should order the "last created unit" to "item illusion" the "triggering unit".
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top