Well, with the use of 2 triggers my intent was to have illusions die once they inflict damage on an enemy unit or whenever they receive any damage (I relize I can set the value of mirror image damage taken to like 99999999). Here are the triggers:
Well, this works seemingly perfect the first time. After that, the images will just randomly explode for no reason. Sometimes it only explodes the ones you currently have selected, while other times it just causes them all to explode at once immediantly after you split using mirror image.
-
Damage Trigger2
-
Events
- Unit - A unit enters (Playable map area)
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) is in DamageGroup) Equal to False
-
Then - Actions
- Trigger - Add to Damage Trigger3 <gen> the event (Unit - (Triggering unit) Takes damage)
- Unit Group - Add (Triggering unit) to DamageGroup
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Damage Trigger3
- Events
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (((Triggering unit) is an illusion) Equal to True) and (((Unit-type of (Triggering unit)) Equal to Aspect of Cunning) and (((Triggering unit) is alive) Equal to True))
-
Then - Actions
- Wait 0.30 seconds
- Unit - Kill (Triggering unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (((Damage source) is an illusion) Equal to True) and (((Unit-type of (Damage source)) Equal to Aspect of Cunning) and (((Damage source) is alive) Equal to True))
-
Then - Actions
- Wait 0.30 seconds
- Unit - Kill (Damage source)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Well, this works seemingly perfect the first time. After that, the images will just randomly explode for no reason. Sometimes it only explodes the ones you currently have selected, while other times it just causes them all to explode at once immediantly after you split using mirror image.
Last edited by a moderator: