- Specifying Illusions From Mirror Image[/b]
- I have some problems storing Mirror Image illusions as variables.
- Basically what I wanted to do, is to change the color vertex of those illusions into something different from the hero.
- [hidden="Skill Description"]The hero creates 2/3/4/5 shadows of himself that deals 30% damage and receives 300% damage.[/hidden]
- [hidden="Misc. Info"]Of course, as the owner of the hero, I could only (and always) see the illusions as blue-ish in color. So, the recoloring of the illusions can only be viewed by other players (and I meant it that way). (For example, watching replay through another player's vision)[/hidden]
- Here's the way I've made the trigger [i](simplified version)[/i] in order for it to work:
- [hidden="Trigger"]
-
[TRIGGER]Recoloring Illusions
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Mirror Image
-
Actions
- Wait 0.01 seconds
- Set MUI = MUI + 1
- Set User[MUI] = Triggering Unit
- Set TempLocation[MUI] = Position of User[MUI]
- Set TempGroup[MUI] = (Units within 200.00 of TempLocation[MUI] matching ((((Matching unit) is an illusion) Equal to True) and ((Owner of (Matching unit)) Equal to (Owner of User[MUI]))))
-
Unit Group - Pick every unit in TempGroup[MUI] and do (Actions)
-
Loop - Actions
- Animation - Change (Picked unit)'s vertex coloring to (0.00%, 0.00%, 0.00%) with 0.00% transparency
-
Loop - Actions
- Custom script: call RemoveLocation(udg_TempLocation[MUI])
- Custom script: call DestroyGroup(udg_TempGroup[MUI])
-
Events
I set the animation delay to 0.00 sec, and then I put the "Wait 0.01" so that I could ensure that the trigger selects the illusions AFTER they are created.
The problem is obvious: The existence of "Wait".
How can I make this trigger perfect without using "Wait"?
Can anyone help me please.
Last edited: