; Créateur : HORHGH
;  16.07.2015
10
; ----------------------------------------------------------------------
; Pool
; ----------------------------------------------------------------------
%INDEX%COPA_AMERICA1
DB_POOL
{ 255, COPA_AMERICA, 0 }
1
16
POOL_SORT_COPA_AMERICA	; Sortierung
; wieviele und in welchen Wettbewerben darf der Club nicht stehen,
; um in diesen Pool aufgenommen zu werden?
0
; Bonuses
0
0
0
0
; Subst
0
0
; welche Vorgänger, Nachfolger
0
{ 255, COPA_AMERICA, 1 }, { 255, COPA_AMERICA, 2 }, { 255, COPA_AMERICA, 3 }, { 255, COPA_AMERICA, 4 }
; wie setzt sich der Pool zusammen
25
GET_HOST
GET_NAT_SOUTH_AMERICA, 54 	;BRAZIL
GET_NAT_SOUTH_AMERICA, 52 	;ARGENTINA
GET_NAT_SOUTH_AMERICA, 55 	;CHILE
GET_NAT_SOUTH_AMERICA, 60 	;URUGUAY
GET_NAT_SOUTH_AMERICA, 58 	;PARAGUAY
GET_NAT_SOUTH_AMERICA, 53 	;BOLIVIA
GET_NAT_SOUTH_AMERICA, 59 	;PERU 
GET_NAT_SOUTH_AMERICA, 57 	;ECUADOR
GET_NAT_SOUTH_AMERICA, 56 	;COLOMBIA
GET_NAT_SOUTH_AMERICA, 61 	;VENEZUELA
;and randomly two countries from here
GET_NAT_SOUTH_AMERICA, 83 	;MEXICO
GET_NAT_SOUTH_AMERICA, 82 	;Jamaïque
GET_NAT_SOUTH_AMERICA, 95 	;UNITED_STATES
GET_NAT_SOUTH_AMERICA, 80 	;Haïti
GET_NAT_SOUTH_AMERICA, 72 	;COSTA_RICA
GET_NAT_SOUTH_AMERICA, 87 	;Haïti
GET_NAT_SOUTH_AMERICA, 18 	;France
GET_NAT_SOUTH_AMERICA, 27 	;Italie
GET_NAT_SOUTH_AMERICA, 45 	;Espagne
GET_NAT_SOUTH_AMERICA, 38 	;Portugal
GET_NAT_SOUTH_AMERICA, 78 	;GUATEMALA
GET_NAT_SOUTH_AMERICA, 81 	;HONDURAS
GET_NAT_SOUTH_AMERICA, 70 	;CANADA
GET_NAT_SOUTH_AMERICA, 163 	;JAPAN
%INDEXEND%COPA_AMERICA1
; ----------------------------------------------------------------------
; 4 Gruppen a 4 Mannschaften
; ---------------------------------------------------------------------- 
; ----------------------------------------
; Gruppe 1
; ----------------------------------------
%INDEX%COPA_AMERICA2
DB_LEAGUE
{ 255, COPA_AMERICA, 1 }
_ID_GROUP_A
4
0
0
0
1
ROUND_GROUP1
100
100
;
%INDEX%TEAMS
1,2,3,4
%INDEXEND%TEAMS
;
%INDEX%MATCHDAYS
333,337,341
%INDEXEND%MATCHDAYS
;
%INDEX%FIXTURE
1,2,3,4
2,3,4,1
1,3,2,4
%INDEXEND%FIXTURE
; Bonuses
0
0
0
0
;Transfer
7
1459569736
756
3
0
;
{ 255, COPA_AMERICA, 0 }
{ 255, COPA_AMERICA, 4 }
4
GET_POOL, { 255, COPA_AMERICA, 0 }
0
1
GET_POOL, { 255, COPA_AMERICA, 0 }
4
1
GET_POOL, { 255, COPA_AMERICA, 0 }
8
1
GET_POOL, { 255, COPA_AMERICA, 0 }
12
1
%INDEXEND%COPA_AMERICA2
; ----------------------------------------
; Gruppe 2
; ----------------------------------------
%INDEX%COPA_AMERICA3
DB_LEAGUE
{ 255, COPA_AMERICA, 2 }
_ID_GROUP_B
4
0
0
0
1
ROUND_GROUP1
100
100
;
%INDEX%TEAMS
1,2,3,4
%INDEXEND%TEAMS
;
%INDEX%MATCHDAYS
334,338,342
%INDEXEND%MATCHDAYS
;
%INDEX%FIXTURE
1,2,3,4
2,3,4,1
1,3,2,4
%INDEXEND%FIXTURE
; Bonuses
0
0
0
0
;Transfer
7
1459569736
756
3
0
;
{ 255, COPA_AMERICA, 0 }
{ 255, COPA_AMERICA, 4 }
4
GET_POOL, { 255, COPA_AMERICA, 0 }
1
1
GET_POOL, { 255, COPA_AMERICA, 0 }
5
1
GET_POOL, { 255, COPA_AMERICA, 0 }
9
1
GET_POOL, { 255, COPA_AMERICA, 0 }
13
1
%INDEXEND%COPA_AMERICA3
; ----------------------------------------
; Gruppe 3
; ----------------------------------------
%INDEX%COPA_AMERICA4
DB_LEAGUE
{ 255, COPA_AMERICA, 3 }
_ID_GROUP_C
4
0
0
0
1
ROUND_GROUP1
100
100
;
%INDEX%TEAMS
1,2,3,4
%INDEXEND%TEAMS
;
%INDEX%MATCHDAYS
335,339,343
%INDEXEND%MATCHDAYS
;
%INDEX%FIXTURE
1,2,3,4
2,3,4,1
1,3,2,4
%INDEXEND%FIXTURE
; Bonuses
0
0
0
0
;Transfer
7
1459569736
756
3
0
;
{ 255, COPA_AMERICA, 0 }
{ 255, COPA_AMERICA, 4 }
4
GET_POOL, { 255, COPA_AMERICA, 0 }
2
1
GET_POOL, { 255, COPA_AMERICA, 0 }
6
1
GET_POOL, { 255, COPA_AMERICA, 0 }
10
1
GET_POOL, { 255, COPA_AMERICA, 0 }
14
1
%INDEXEND%COPA_AMERICA4
; ----------------------------------------
; Gruppe 4
; ----------------------------------------
%INDEX%COPA_AMERICA5
DB_LEAGUE
{ 255, COPA_AMERICA, 4 }
_ID_GROUP_D
4
0
0
0
1
ROUND_GROUP1
100
100
;
%INDEX%TEAMS
1,2,3,4
%INDEXEND%TEAMS
;
%INDEX%MATCHDAYS
336,340,344
%INDEXEND%MATCHDAYS
;
%INDEX%FIXTURE
1,2,3,4
2,3,4,1
1,3,2,4
%INDEXEND%FIXTURE
; Bonuses
0
0
0
0
;Transfer
7
1459569736
756
3
0
;
{ 255, COPA_AMERICA, 0 }
{ 255, COPA_AMERICA, 5 }
4
GET_POOL, { 255, COPA_AMERICA, 0 }
3
1
GET_POOL, { 255, COPA_AMERICA, 0 }
7
1
GET_POOL, { 255, COPA_AMERICA, 0 }
11
1
GET_POOL, { 255, COPA_AMERICA, 0 }
15
1
%INDEXEND%COPA_AMERICA5
; -------------------------------------------------------------------
; Viertelfinale
; -------------------------------------------------------------------
%INDEX%COPA_AMERICA6
DB_ROUND
{ 255, COPA_AMERICA, 5 }
_ID_QUARTERFINAL
8
ROUND_QUARTERFINAL
; Matchdays
347
347
BEG_1ST_LEG, BEG_WITH_PENALTY, BEG_END
0
0
0
; Bonuses
0
0
0
0
; Subst
3
0
; Vorgänger
{ 255, COPA_AMERICA, 4 },{ 255, COPA_AMERICA, 3 },{ 255, COPA_AMERICA, 2 },{ 255, COPA_AMERICA, 1 }
; Nachfolger
{ 255, COPA_AMERICA, 6 }
8
GET_TAB_X_TO_Y, { 255, COPA_AMERICA, 1 }
1
1
GET_TAB_X_TO_Y, { 255, COPA_AMERICA, 4 }
1
1
GET_TAB_X_TO_Y, { 255, COPA_AMERICA, 2 }
1
1
GET_TAB_X_TO_Y, { 255, COPA_AMERICA, 3 }
1
1
GET_TAB_X_TO_Y, { 255, COPA_AMERICA, 2 }
2
1
GET_TAB_X_TO_Y, { 255, COPA_AMERICA, 3 }
2
1
GET_TAB_X_TO_Y, { 255, COPA_AMERICA, 1 }
2
1
GET_TAB_X_TO_Y, { 255, COPA_AMERICA, 4 }
2
1
%INDEXEND%COPA_AMERICA6
; -------------------------------------------------------------------
; Halbfinale
; -------------------------------------------------------------------
%INDEX%COPA_AMERICA7
DB_ROUND
{ 255, COPA_AMERICA, 6 }
_ID_SEMIFINAL
4
ROUND_SEMIFINAL
; Spieltage
352
352
BEG_1ST_LEG, BEG_WITH_PENALTY, BEG_END
0
0
0
; Bonuses
0
0
0
0
; Subst
3
0
; Vorgänger
{ 255, COPA_AMERICA, 5 }
; Nachfolger
{ 255, COPA_AMERICA, 7 }, { 255, COPA_AMERICA, 8 }
1
GET_WINNER, { 255, COPA_AMERICA, 5 }
%INDEXEND%COPA_AMERICA7
; -------------------------------------------------------------------
; Match 3rd place
; -------------------------------------------------------------------
%INDEX%COPA_AMERICA8
DB_ROUND
{ 255, COPA_AMERICA, 7 }
_ID_3RD_PLACE
2
ROUND_FINAL_3RD_PLACE
; Spieltage
357
357
BEG_1ST_LEG, BEG_WITH_EXTRA_TIME, BEG_WITH_PENALTY, BEG_END
0
0
0
; Bonuses
0
0
0
0
; Subst
3
0
; Vorgänger
{ 255, COPA_AMERICA, 6 }
; Nachfolger
0
1
GET_LOSER, { 255, COPA_AMERICA, 6 }
%INDEXEND%COPA_AMERICA8
; -------------------------------------------------------------------
; Finale
; -------------------------------------------------------------------
%INDEX%COPA_AMERICA9
DB_ROUND
{ 255, COPA_AMERICA, 8 }
_ID_FINAL
2
ROUND_FINAL
; Spieltage
357
357
BEG_1ST_LEG, BEG_WITH_EXTRA_TIME, BEG_WITH_PENALTY, BEG_END
0
0
0
; Bonuses
0
0
0
0
; Subst
3
0
; Vorgänger
{ 255, COPA_AMERICA, 6 }
; Nachfolger
0
1
GET_WINNER, { 255, COPA_AMERICA, 6 }
%INDEXEND%COPA_AMERICA9
; ------------------------------------------------------------------
