GET UEFA5 CHAMP OR FINALIST
GET_UEFA5_CHAMP_OR_FINALIST | |
---|---|
ID | 12 |
Games | |
scripting instructions |
Adds the champion or the runner-up of the specified competition in the country at the specified position in the assessment table to the current competition.
Parameter | Location | Description |
---|---|---|
INT | inline | assesment position (starting from 1) of the country |
{ COMP_ID } | inline | competition (in original files it's always set to { 0, FA_CUP, 0 } (the country ID is replaced with the assessment country ID)) |
- IF specified assessment position exists in the assessment table
- IF specified competition exists
- Add the champion of the specified competition to the current competition.
- IF the team was not added
- Add the runner-up of the specified competition to the current competition.
- IF the team was not added
- Increase reserved spaces in the table for assessment spaces for specified assessment position.
- ELSE
- IF the team with index
1
exists in the country- Add the team with index
1
to the current competition. - IF the team with index
2
exists in the country- Add the team with index
2
to the current competition.
- Add the team with index
- Add the team with index
- IF the team with index
- IF specified competition exists
Notes[edit | edit source]
This instruction should be called only after the table for assessment spaces was allocated with BUILD_COUNTER instruction. The assessment position parameter should be lesser than the allocated table size.