Actions
Set Dead_pU = (Dying unit)
Set y = (Player number of (Owner of Dead_pU))
Custom script: local group udg_TempGroup_Defeate_check
Custom script: set bj_wantDestroyGroup = false
Set TempGroup_Defeate_check = (Units in Whole_Map owned by Players[y])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(All units of TempGroup_Defeate_check are dead) Equal to True
Then - Actions
Game - Display to (All players) the text: (player defeated + (String(y)))
Else - Actions
Do nothing
Custom script: call DestroyGroup(udg_TempGroup_Defeate_check)