Mirror Image Trigger Not Working.

Mittsies

New Member
Reaction score
24
Basically it's for a tower-defense. When this unit is attacked it casts mirror image as a result. Once it casts mirror image it's supposed to move all the units by selecting all of them and adding them to a unit group that periodically moves creeps.

Trigger:
  • Deviate Owl Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Mirror Image (Deviate Owl)
    • Actions
      • Set mirrorimagepos = (Position of (Casting unit))
      • Set mirrorimagegroup = (Units within 600.00 of mirrorimagepos matching ((Level of FLAG_HasMirrorImage for (Matching unit)) Equal to 1))
      • Unit Group - Pick every unit in mirrorimagegroup and do (Actions)
        • Loop - Actions
          • Unit Group - Add (Picked unit) to CreepBlockedGroup
      • Custom script: call DestroyGroup (udg_mirrorimagegroup)
      • Custom script: call RemoveLocation (udg_mirrorimagepos)


I have a feeling it's a mirror-image-specific problem I'm having. Any ideas?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, you basically want to, when you cast "Mirror Image" to move the images, where ?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
No, mirror images can easily be added into groups ;)

But, the event "A unit Spawns a summoned unit" will also trigger when a Mirror Image is created ;)

So I suggest you try this:
Trigger:
  • Image Picking
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • ((Summoned unit) is an illusion) Equal to True
    • Actions
      • Unit Group - Add (Summoned unit) to Periodic_Group
 

Grymlax

Probably not around
Reaction score
138
you can also use the "a unit enters region" event, that one works with illusions.
 

BlueMirage

Trust, but doubt.
Reaction score
39
I think the problem here is that the illusions don't appear instantly when the ability goes into effect. You know, first the caster becomes blademasterish, then sends 2-4 blademaster models to the spawning points of the illusions. When they arrive, the illusions spawn.

You don't have a wait command included. Since the illusions doesn't exist yet, you can't order them.

Both Grymlax and Komaq provided possible solutions.
 
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