Mirror Images Bug

Status
Not open for further replies.
Level 2
Joined
Apr 17, 2023
Messages
3
hey guys, havent been on the editor in a really long time, came back and found that my custom map mirror images for any hero now gives gold upon kill and xp, tried to find the option to disable that everywhere but couldnt find it. anyone has any idea where i could revert the mirror images back to normal ? (not giving Gold or XP anymore)
thanks
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
Unfortunately it looks like the devs hardcoded this behavior and it cannot be turned off unless you use an older data set. In the Editor open:

Scenario/Map Options

Then change Game Data Set to Default or Custom.

If neither of those work then you may have to rely on something like Wand of Illusion to create your images.
 
Last edited:
Level 2
Joined
Apr 17, 2023
Messages
3
Unfortunately it looks like the devs hardcoded this behavior and it cannot be turned off unless you use an older data set. In the Editor open:

Scenario/Map Options

Then change Game Data Set to Default or Custom.

If neither of those work then you may have to rely on something like Wand of Illusion to create your images.
Neither worked sadly. Cant use the item because they are abilities in the hero like blademaster :( Is there no way to make a trigger behind it?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
I meant use a trigger which casts Wand of Illusion on the Hero.

So I created what should very closely resemble Mirror Image. Basically, I'm detecting when Mirror Image spawns it's illusions and I'm ordering a Dummy unit to replace those illusions with Wand of Illusion illusions. Also, I track these new illusions in a Unit Group so I can later remove them since Mirror Image gets rid of all of it's old illusions when you cast it again. Note that this spell is currently setup to be MPI, meaning it will work on one Blademaster per player. It can easily be modified to work for any number of units if you want.

Here are the triggers and I attached the map below (requires latest version to open):
  • Mirror Image Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Mirror Image
    • Actions
      • Set VariableSet MIC_Player = (Owner of MIC_Illusion)
      • Set VariableSet MIC_PN = (Player number of MIC_Player)
      • -------- --------
      • Unit Group - Pick every unit in MIC_IllusionGroup[MIC_PN] and do (Actions)
        • Loop - Actions
          • Set VariableSet MIC_Illusion = (Picked unit)
          • Unit Group - Remove MIC_Illusion from MIC_IllusionGroup[MIC_PN].
          • Unit - Remove MIC_Illusion from the game
  • Mirror Image Create Illusion
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • ((Summoned unit) is an illusion) Equal to True
      • (Unit-type of (Summoned unit)) Equal to Blademaster
      • (Unit-type of (Summoning unit)) Equal to Blademaster
    • Actions
      • Set VariableSet MIC_Caster = (Summoning unit)
      • Set VariableSet MIC_Illusion = (Summoned unit)
      • Set VariableSet MIC_Player = (Owner of MIC_Caster)
      • Set VariableSet MIC_Point = (Position of MIC_Illusion)
      • -------- --------
      • Unit - Turn collision for MIC_Illusion Off.
      • Unit Group - Add MIC_Illusion to MIC_IllusionGroup[(Player number of MIC_Player)]
      • -------- --------
      • Unit - Create 1 Dummy for MIC_Player at MIC_Point facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_MIC_Point)
      • -------- --------
      • Set VariableSet MIC_Dummy = (Last created unit)
      • Unit - Add Mirror Image (Wand of Illusion) to MIC_Dummy
      • Custom script: call IssueTargetOrderById(udg_MIC_Dummy, 852274, udg_MIC_Illusion)
  • Mirror Image Remove Illusion
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Mirror Image (Wand of Illusion)
    • Actions
      • Unit - Remove (Target unit of ability being cast) from the game
  • Mirror Image Add Illusion To Group
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • ((Summoned unit) is an illusion) Equal to True
      • (Unit-type of (Summoned unit)) Equal to Blademaster
      • (Unit-type of (Summoning unit)) Equal to Dummy
    • Actions
      • Set VariableSet MIC_Illusion = (Summoned unit)
      • Set VariableSet MIC_Player = (Owner of MIC_Illusion)
      • Set VariableSet MIC_PN = (Player number of MIC_Player)
      • -------- --------
      • Unit Group - Add MIC_Illusion to MIC_IllusionGroup[MIC_PN]
Variables:
MIC_Point = Point
MIC_Caster = Unit
MIC_Illusion = Unit
MIC_Dummy = Unit
MIC_Player = Player
MIC_PN = Integer
MIC_IllusionGroup = Unit Group ARRAY with an Initial Value of 28

You'll need to create a custom Wand of Illusion ability with an Area of Effect of 0 and the desired Damage Dealt/Received. It's called Item Illusions in the Object Editor.

You'll also need a Dummy unit to cast this Wand of Illusion ability. This unit should be based on the Locust with the following changes:
Model = None, Shadow = None, Attacks Enabled = None, Movement Type = None, Speed Base = 0.
 

Attachments

  • Mirror Image Custom.w3m
    19.2 KB · Views: 10
Last edited:
Status
Not open for further replies.
Top