First up, create 2 global variables, with the type "unit" (i'll refer to them with "p1 special" and "p2 special", but u can name them whatever you want). Leave their initial values to "no unit.
On the trigger your using to create the special units, add a set variable right after the "create ... for player 1" action. Make it read "set "p1 special" = Last created unit". Do the same after "create ... for player 2" only with "p2 special"
Make a new trigger, with the event "Unit Dies". Leave it on "Any Unit". Create an "If Then Else" action, and add a comparison to the "If". Change it to "triggering unit = p1 special". Then, add "end game in victory for player 2" and "end game in defeat for player 1" to the "Then"
Finally, just copy paste the "If Then" in the same trigger, change it to "p2 special", inverse the victory and defeat, and you should be good to go.
Lemme know if you ahve any problems, or need me to elaborate something:)
@softshell1984: Go
First up, create 2 global variables, with the type "unit" (i'll refer to them with "p1 special" and "p2 special", but u can name them whatever you want). Leave their initial values to "no unit.
On the trigger your using to create the special units, add a set variable right after the "create ... for player 1" action. Make it read "set "p1 special" = Last created unit". Do the same after "create ... for player 2" only with "p2 special"
Make a new trigger, with the event "Unit Dies". Leave it on "Any Unit". Create an "If Then Else" action, and add a comparison to the "If". Change it to "triggering unit = p1 special". Then, add "end game in victory for player 2" and "end game in defeat for player 1" to the "Then"
Finally, just copy paste the "If Then" in the same trigger, change it to "p2 special", inverse the victory and defeat, and you should be good to go.
Lemme know if you ahve any problems, or need me to elaborate something:)