I wasn't able to open your map, I'm guessing the reason would be that you're using reforged (which I don't have)
But now I've put together a map illustrating what I meant (maps from older versions should still be possible to open in Reforged I assume).
But in case it doesn't, here's the main trigger for choosing the player with the highest score:
-
duel time
-
Events
-
Time - timer_duel expires
-
Conditions
-
Actions
-
Trigger - Turn off give score <gen>
-
-------- =================== --------
-
-------- compare score between players of team 1 --------
-
Set tempInt = 0
-
For each (Integer A) from 1 to players_team[1], do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(player[(Integer A)] slot status) Equal to Is playing
-
score_player[(Integer A)] Greater than tempInt
-
Then - Actions
-
Set tempInt = score_player[(Integer A)]
-
Else - Actions
-
For each (Integer A) from 1 to players_team[1], do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(player[(Integer A)] slot status) Equal to Is playing
-
score_player[(Integer A)] Greater than or equal to tempInt
-
Then - Actions
-
Game - Display to (All players) for 30.00 seconds the text: ((Name of player[(Integer A)]) + had the highest score on team 1!)
-
Set duelist[1] = hero_player[(Integer A)]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(duelist[1] is dead) Equal to True
-
Then - Actions
-
Hero - Instantly revive duelist[1] at duelPoint_team1, Hide revival graphics
-
Else - Actions
-
Unit - Move duelist[1] instantly to duelPoint_team1, facing 90.00 degrees
-
Unit - Set life of duelist[1] to 100.00%
-
Unit - Set mana of duelist[1] to 100.00%
-
Custom script: exitwhen true
-
Else - Actions
-
-------- =================== --------
-
-------- compare score between players of team 2 --------
-
Set tempInt = 0
-
For each (Integer A) from (players_team[1] + 1) to maxPlayers, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(player[(Integer A)] slot status) Equal to Is playing
-
score_player[(Integer A)] Greater than tempInt
-
Then - Actions
-
Set tempInt = score_player[(Integer A)]
-
Else - Actions
-
For each (Integer A) from (players_team[1] + 1) to maxPlayers, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(player[(Integer A)] slot status) Equal to Is playing
-
score_player[(Integer A)] Greater than or equal to tempInt
-
Then - Actions
-
Game - Display to (All players) for 30.00 seconds the text: ((Name of player[(Integer A)]) + had the highest score on team 2!)
-
Set duelist[2] = hero_player[(Integer A)]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(duelist[2] is dead) Equal to True
-
Then - Actions
-
Hero - Instantly revive duelist[2] at duelPoint_team2, Hide revival graphics
-
Else - Actions
-
Unit - Move duelist[2] instantly to duelPoint_team2, facing 270.00 degrees
-
Unit - Set life of duelist[2] to 100.00%
-
Unit - Set mana of duelist[2] to 100.00%
-
Custom script: exitwhen true
-
Else - Actions
-
Unit - Order duelist[1] to Attack duelist[2]
-
Unit - Order duelist[2] to Attack duelist[1]
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Picked unit) Not equal to duelist[1]
-
(Picked unit) Not equal to duelist[2]
-
Then - Actions
-
Unit - Pause (Picked unit)
-
Else - Actions
-
Trigger - Turn on duel end <gen>
But basically, the idea is pretty simple.
First compare the scores and keep the highest score as a variable. Then loop through the team to see which player had that score—now you've got the player with the highest score
And then you just do the same thing again for the next team.