>')
if modVar_AF_MatchTime <= 9 or (modVar_AF_MatchTime >= 60 and modVar_AF_MatchTime <= 69) : $modVar_AF_TempStr = MID($modVar_AF_TempStr,1,(len($modVar_AF_TempStr) - 1)) + '0' + MID($modVar_AF_TempStr,len($modVar_AF_TempStr))
$modArr_AF_MatchScorers[] = '{<<$modVar_AF_TempStr>>} ' + $modVar_AF_MatchShooter + '-B'
$modVar_AF_MatchAction = 'Reset-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Score'
gt 'mod_addedflavour_Football' , 'GameInterface'
else
modVar_AF_Temp = modVar_AF_MatchZones['A-KP']
$modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> SAVE''s the shot at goal!'
$modVar_AF_MatchAction = 'Save-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
$modVar_AF_MatchBall = 'Defend-Up'
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Save'
gt 'mod_addedflavour_Football' , 'GameInterface'
end
end
end
end
if $ARGS[0] = 'GetPlayerCode':
if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
if strpos($modVar_AF_MatchBall,'Attack') > 0:
modVar_AF_Rand = rand(1,2)
if modVar_AF_Rand = 1 : modVar_AF_Temp = modVar_AF_MatchZones['A-LF']
if modVar_AF_Rand = 2 : modVar_AF_Temp = modVar_AF_MatchZones['A-RF']
modVar_AF_Rand = rand(1,4)
if modVar_AF_Rand = 1 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-LB']
if modVar_AF_Rand = 2 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-RB']
if modVar_AF_Rand = 3 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-LCD']
if modVar_AF_Rand = 4 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-RCD']
elseif strpos($modVar_AF_MatchBall,'Midfield') > 0:
modVar_AF_Rand = rand(1,4)
if modVar_AF_Rand = 1 : modVar_AF_Temp = modVar_AF_MatchZones['A-LW']
if modVar_AF_Rand = 2 : modVar_AF_Temp = modVar_AF_MatchZones['A-RW']
if modVar_AF_Rand = 3 : modVar_AF_Temp = modVar_AF_MatchZones['A-LCM']
if modVar_AF_Rand = 4 : modVar_AF_Temp = modVar_AF_MatchZones['A-RCM']
modVar_AF_Rand = rand(1,4)
if modVar_AF_Rand = 1 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-LW']
if modVar_AF_Rand = 2 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-RW']
if modVar_AF_Rand = 3 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-LCM']
if modVar_AF_Rand = 4 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-RCM']
elseif strpos($modVar_AF_MatchBall,'Defend') > 0:
modVar_AF_Rand = rand(1,4)
if modVar_AF_Rand = 1 : modVar_AF_Temp = modVar_AF_MatchZones['A-LB']
if modVar_AF_Rand = 2 : modVar_AF_Temp = modVar_AF_MatchZones['A-RB']
if modVar_AF_Rand = 3 : modVar_AF_Temp = modVar_AF_MatchZones['A-LCD']
if modVar_AF_Rand = 4 : modVar_AF_Temp = modVar_AF_MatchZones['A-RCD']
modVar_AF_Rand = rand(1,2)
if modVar_AF_Rand = 1 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-LF']
if modVar_AF_Rand = 2 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-RF']
end
elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
if strpos($modVar_AF_MatchBall,'Attack') > 0:
modVar_AF_Rand = rand(1,2)
if modVar_AF_Rand = 1 : modVar_AF_Temp = modVar_AF_MatchZones['B-LF']
if modVar_AF_Rand = 2 : modVar_AF_Temp = modVar_AF_MatchZones['B-RF']
modVar_AF_Rand = rand(1,4)
if modVar_AF_Rand = 1 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-LB']
if modVar_AF_Rand = 2 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-RB']
if modVar_AF_Rand = 3 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-LCD']
if modVar_AF_Rand = 4 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-RCD']
elseif strpos($modVar_AF_MatchBall,'Midfield') > 0:
modVar_AF_Rand = rand(1,4)
if modVar_AF_Rand = 1 : modVar_AF_Temp = modVar_AF_MatchZones['B-LW']
if modVar_AF_Rand = 2 : modVar_AF_Temp = modVar_AF_MatchZones['B-RW']
if modVar_AF_Rand = 3 : modVar_AF_Temp = modVar_AF_MatchZones['B-LCM']
if modVar_AF_Rand = 4 : modVar_AF_Temp = modVar_AF_MatchZones['B-RCM']
modVar_AF_Rand = rand(1,4)
if modVar_AF_Rand = 1 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-LW']
if modVar_AF_Rand = 2 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-RW']
if modVar_AF_Rand = 3 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-LCM']
if modVar_AF_Rand = 4 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-RCM']
elseif strpos($modVar_AF_MatchBall,'Defend') > 0:
modVar_AF_Rand = rand(1,4)
if modVar_AF_Rand = 1 : modVar_AF_Temp = modVar_AF_MatchZones['B-LB']
if modVar_AF_Rand = 2 : modVar_AF_Temp = modVar_AF_MatchZones['B-RB']
if modVar_AF_Rand = 3 : modVar_AF_Temp = modVar_AF_MatchZones['B-LCD']
if modVar_AF_Rand = 4 : modVar_AF_Temp = modVar_AF_MatchZones['B-RCD']
modVar_AF_Rand = rand(1,2)
if modVar_AF_Rand = 1 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-LF']
if modVar_AF_Rand = 2 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-RF']
end
end
end
if $ARGS[0] = 'TackleCode':
if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
! Performed Three Times to flush out Randomiser
modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
if modVar_AF_Rand > modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
$modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
$modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
if $modVar_AF_MatchBall = 'Midfield-Up':
$modVar_AF_MatchBall = 'Midfield-Down'
elseif $modVar_AF_MatchBall = 'Attack-Up':
$modVar_AF_MatchBall = 'Defend-Down'
elseif $modVar_AF_MatchBall = 'Defend-Up':
$modVar_AF_MatchBall = 'Attack-Down'
end
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
$modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> gets TACKLED by <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>>'
$modVar_AF_MatchAction = 'Tackle-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Tackle'
gt 'mod_addedflavour_Football' , 'GameInterface'
end
elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
! Performed Three Times to flush out Randomiser
modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
if modVar_AF_Rand > modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
$modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
$modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
if $modVar_AF_MatchBall = 'Midfield-Down':
$modVar_AF_MatchBall = 'Midfield-Up'
elseif $modVar_AF_MatchBall = 'Attack-Down':
$modVar_AF_MatchBall = 'Defend-Up'
elseif $modVar_AF_MatchBall = 'Defend-Down':
$modVar_AF_MatchBall = 'Attack-Up'
end
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
$modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> gets TACKLED by <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>>'
$modVar_AF_MatchAction = 'Tackle-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Tackle'
gt 'mod_addedflavour_Football' , 'GameInterface'
end
end
end
if $ARGS[0] = 'Half-Time':
*clr & cla
'<<$modVar_AF_TeamA_PlayerTeam>> - <> -vs- <> - <<$modVar_AF_TeamB_PlayerTeam>>'
*nl
KILLVAR '$modVar_AF_Row'
KILLVAR 'modVar_AF_FBall_SubTaken'
gs 'mod_addedflavour_Football' , 'SubstitutionCode' , 'SUB1'
gs 'mod_addedflavour_Football' , 'SubstitutionCode' , 'SUB2'
gs 'mod_addedflavour_Football' , 'SubstitutionCode' , 'SUB3'
'Substitutes |
<<$modVar_AF_TeamA_PlayerTeam>> | <<$modVar_AF_TeamB_PlayerTeam>> |
<<$modVar_AF_Row[0]>><<$modVar_AF_Row[1]>><<$modVar_AF_Row[2]>>
'
gs 'mod_addedflavour_Football' , 'RequestImage' , 'KickOff'
$modVar_AF_MatchAction = 'KickOff-B#A'
$modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> to Kick Off the 2nd Half'
modVar_AF_MatchTime = 45
$modVar_AF_MatchBall = 'Midfield-Down'
modVar_AF_MatchHalf = 2
act 'Start Second Half' : gt 'mod_addedflavour_Football' , 'GameInterface'
end
if $ARGS[0] = 'SubstitutionCode':
$modVar_AF_TempStr = $ARGS[1]
modVar_AF_Temp = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
if $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Forward':
if arrpos('$modVar_AF_FBall_SubTaken',0) ! -1:
modVar_AF_Rand = 1
elseif arrpos('$modVar_AF_FBall_SubTaken',1) ! -1:
modVar_AF_Rand = 0
else
modVar_AF_Rand = rand(0,1)
end
modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
$modVar_AF_TempStr2 = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> - IN {} OUT - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>>'
modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_Temp2
modVar_AF_MatchZones[modVar_AF_Rand] = modVar_AF_Temp
modVar_AF_FBall_SubTaken[] = modVar_AF_Rand
elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Midfielder':
:subcodeMidARedo
modVar_AF_Rand = rand(2,5)
if arrpos('$modVar_AF_FBall_SubTaken',2) ! -1 and modVar_AF_Rand = 2:
jump 'subcodeMidARedo'
elseif arrpos('$modVar_AF_FBall_SubTaken',3) ! -1 and modVar_AF_Rand = 3:
jump 'subcodeMidARedo'
elseif arrpos('$modVar_AF_FBall_SubTaken',4) ! -1 and modVar_AF_Rand = 4:
jump 'subcodeMidARedo'
elseif arrpos('$modVar_AF_FBall_SubTaken',5) ! -1 and modVar_AF_Rand = 5:
jump 'subcodeMidARedo'
end
modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
$modVar_AF_TempStr2 = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> - IN { | } OUT - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>>'
modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_Temp2
modVar_AF_MatchZones[modVar_AF_Rand] = modVar_AF_Temp
modVar_AF_FBall_SubTaken[] = modVar_AF_Rand
elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Defender':
:subcodeDefARedo
modVar_AF_Rand = rand(6,9)
if arrpos('$modVar_AF_FBall_SubTaken',6) ! -1 and modVar_AF_Rand = 6:
jump 'subcodeDefARedo'
elseif arrpos('$modVar_AF_FBall_SubTaken',7) ! -1 and modVar_AF_Rand = 7:
jump 'subcodeDefARedo'
elseif arrpos('$modVar_AF_FBall_SubTaken',8) ! -1 and modVar_AF_Rand = 8:
jump 'subcodeDefARedo'
elseif arrpos('$modVar_AF_FBall_SubTaken',9) ! -1 and modVar_AF_Rand = 9:
jump 'subcodeDefARedo'
end
modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
$modVar_AF_TempStr2 = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> - IN { | } OUT - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>>'
modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_Temp2
modVar_AF_MatchZones[modVar_AF_Rand] = modVar_AF_Temp
modVar_AF_FBall_SubTaken[] = modVar_AF_Rand
end
modVar_AF_Temp = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
if $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Forward':
if arrpos('$modVar_AF_FBall_SubTaken',15) ! -1:
modVar_AF_Rand = 16
elseif arrpos('$modVar_AF_FBall_SubTaken',16) ! -1:
modVar_AF_Rand = 15
else
modVar_AF_Rand = rand(15,16)
end
modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
$modVar_AF_TempStr2 += ' | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> - IN { | } OUT - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>>'
modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_Temp2
modVar_AF_MatchZones[modVar_AF_Rand] = modVar_AF_Temp
modVar_AF_FBall_SubTaken[] = modVar_AF_Rand
elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Midfielder':
:subcodeMidBRedo
modVar_AF_Rand = rand(17,20)
if arrpos('$modVar_AF_FBall_SubTaken',17) ! -1 and modVar_AF_Rand = 17:
jump 'subcodeMidBRedo'
elseif arrpos('$modVar_AF_FBall_SubTaken',18) ! -1 and modVar_AF_Rand = 18:
jump 'subcodeMidBRedo'
elseif arrpos('$modVar_AF_FBall_SubTaken',19) ! -1 and modVar_AF_Rand = 19:
jump 'subcodeMidBRedo'
elseif arrpos('$modVar_AF_FBall_SubTaken',20) ! -1 and modVar_AF_Rand = 20:
jump 'subcodeMidBRedo'
end
modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
$modVar_AF_TempStr2 += ' | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> - IN { | } OUT - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>>'
modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_Temp2
modVar_AF_MatchZones[modVar_AF_Rand] = modVar_AF_Temp
modVar_AF_FBall_SubTaken[] = modVar_AF_Rand
elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Defender':
:subcodeDefBRedo
modVar_AF_Rand = rand(21,24)
if arrpos('$modVar_AF_FBall_SubTaken',21) ! -1 and modVar_AF_Rand = 21:
jump 'subcodeDefBRedo'
elseif arrpos('$modVar_AF_FBall_SubTaken',22) ! -1 and modVar_AF_Rand = 22:
jump 'subcodeDefBRedo'
elseif arrpos('$modVar_AF_FBall_SubTaken',23) ! -1 and modVar_AF_Rand = 23:
jump 'subcodeDefBRedo'
elseif arrpos('$modVar_AF_FBall_SubTaken',24) ! -1 and modVar_AF_Rand = 24:
jump 'subcodeDefBRedo'
end
modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
$modVar_AF_TempStr2 += ' | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> - IN { | } OUT - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>>'
modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_Temp2
modVar_AF_MatchZones[modVar_AF_Rand] = modVar_AF_Temp
modVar_AF_FBall_SubTaken[] = modVar_AF_Rand
end
$modVar_AF_Row[] = ' | <<$modVar_AF_TempStr2>> |
'
end
if $ARGS[0] = 'SubstitutionCode2':
$modVar_AF_TempStr = $ARGS[1]
modVar_AF_Temp = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
subcodelooperrorcount = 0
:subcoderedoA
subcodelooperrorcount += 1
if subcodelooperrorcount >= 1000 : $modVar_AF_LoopErrorLoc = 'subcode (<<$modVar_AF_TempStr2>>)' & jump 'subcoderedoAskip'
if $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Forward':
modVar_AF_Rand = rand(1,2)
if modVar_AF_Rand = 1:
if strpos($modVar_AF_TempStr2,'#A-LF#') > 0 : jump 'subcoderedoA'
modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-LF']
modVar_AF_MatchZones['A-LF'] = modVar_AF_Temp2
$modVar_AF_TempStr2 += '#A-LF#'
elseif modVar_AF_Rand = 2:
if strpos($modVar_AF_TempStr2,'#A-RF#') > 0 : jump 'subcoderedoA'
modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-RF']
modVar_AF_MatchZones['A-RF'] = modVar_AF_Temp2
$modVar_AF_TempStr2 += '#A-RF#'
end
elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Midfielder':
modVar_AF_Rand = rand(1,4)
if modVar_AF_Rand = 1:
if strpos($modVar_AF_TempStr2,'#A-LW#') > 0 : jump 'subcoderedoA'
modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-LW']
modVar_AF_MatchZones['A-LW'] = modVar_AF_Temp2
$modVar_AF_TempStr2 += '#A-LW#'
elseif modVar_AF_Rand = 2:
if strpos($modVar_AF_TempStr2,'#A-RW#') > 0 : jump 'subcoderedoA'
modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-RW']
modVar_AF_MatchZones['A-RW'] = modVar_AF_Temp2
$modVar_AF_TempStr2 += '#A-RW#'
elseif modVar_AF_Rand = 3:
if strpos($modVar_AF_TempStr2,'#A-LCM#') > 0 : jump 'subcoderedoA'
modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-LCM']
modVar_AF_MatchZones['A-LCM'] = modVar_AF_Temp2
$modVar_AF_TempStr2 += '#A-LCM#'
elseif modVar_AF_Rand = 4:
if strpos($modVar_AF_TempStr2,'#A-RCM#') > 0 : jump 'subcoderedoA'
modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-RCM']
modVar_AF_MatchZones['A-RCM'] = modVar_AF_Temp2
$modVar_AF_TempStr2 += '#A-RCM#'
end
elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Defender':
modVar_AF_Rand = rand(1,4)
if modVar_AF_Rand = 1:
if strpos($modVar_AF_TempStr2,'#A-LB#') > 0 : jump 'subcoderedoA'
modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-LB']
modVar_AF_MatchZones['A-LB'] = modVar_AF_Temp2
$modVar_AF_TempStr2 += '#A-LB#'
elseif modVar_AF_Rand = 2:
if strpos($modVar_AF_TempStr2,'#A-RB#') > 0 : jump 'subcoderedoA'
modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-RB']
modVar_AF_MatchZones['A-RB'] = modVar_AF_Temp2
$modVar_AF_TempStr2 += '#A-RB#'
elseif modVar_AF_Rand = 3:
if strpos($modVar_AF_TempStr2,'#A-LCD#') > 0 : jump 'subcoderedoA'
modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-LCD']
modVar_AF_MatchZones['A-LCD'] = modVar_AF_Temp2
$modVar_AF_TempStr2 += '#A-LCD#'
elseif modVar_AF_Rand = 4:
if strpos($modVar_AF_TempStr2,'#A-RCD#') > 0 : jump 'subcoderedoA'
modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-RCD']
modVar_AF_MatchZones['A-RCD'] = modVar_AF_Temp2
$modVar_AF_TempStr2 += '#A-RCD#'
end
end
:subcoderedoAskip
$modVar_AF_TempStr = $ARGS[1]
modVar_AF_Temp = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
:subcoderedoB
subcodelooperrorcount += 1
if subcodelooperrorcount >= 1000 : $modVar_AF_LoopErrorLoc = 'subcode (<<$modVar_AF_TempStr2>>)' & jump 'subcoderedoBskip'
if $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Forward':
modVar_AF_Rand = rand(1,2)
if modVar_AF_Rand = 1:
if strpos($modVar_AF_TempStr2,'#B-LF#') > 0 : jump 'subcoderedoB'
modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-LF']
modVar_AF_MatchZones['B-LF'] = modVar_AF_Temp3
$modVar_AF_TempStr2 += '#B-LF#'
elseif modVar_AF_Rand = 2:
if strpos($modVar_AF_TempStr2,'#B-RF#') > 0 : jump 'subcoderedoB'
modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-RF']
modVar_AF_MatchZones['B-RF'] = modVar_AF_Temp3
$modVar_AF_TempStr2 += '#B-RF#'
end
elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Midfielder':
modVar_AF_Rand = rand(1,4)
if modVar_AF_Rand = 1:
if strpos($modVar_AF_TempStr2,'#B-LW#') > 0 : jump 'subcoderedoB'
modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-LW']
modVar_AF_MatchZones['B-LW'] = modVar_AF_Temp3
$modVar_AF_TempStr2 += '#B-LW#'
elseif modVar_AF_Rand = 2:
if strpos($modVar_AF_TempStr2,'#B-RW#') > 0 : jump 'subcoderedoB'
modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-RW']
modVar_AF_MatchZones['B-RW'] = modVar_AF_Temp3
$modVar_AF_TempStr2 += '#B-RW#'
elseif modVar_AF_Rand = 3:
if strpos($modVar_AF_TempStr2,'#B-LCM#') > 0 : jump 'subcoderedoB'
modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-LCM']
modVar_AF_MatchZones['B-LCM'] = modVar_AF_Temp3
$modVar_AF_TempStr2 += '#B-LCM#'
elseif modVar_AF_Rand = 4:
if strpos($modVar_AF_TempStr2,'#B-RCM#') > 0 : jump 'subcoderedoB'
modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-RCM']
modVar_AF_MatchZones['B-RCM'] = modVar_AF_Temp3
$modVar_AF_TempStr2 += '#B-RCM#'
end
elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Defender':
modVar_AF_Rand = rand(1,4)
if modVar_AF_Rand = 1:
if strpos($modVar_AF_TempStr2,'#B-LB#') > 0 : jump 'subcoderedoB'
modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-LB']
modVar_AF_MatchZones['B-LB'] = modVar_AF_Temp3
$modVar_AF_TempStr2 += '#B-LB#'
elseif modVar_AF_Rand = 2:
if strpos($modVar_AF_TempStr2,'#B-RB#') > 0 : jump 'subcoderedoB'
modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-RB']
modVar_AF_MatchZones['B-RB'] = modVar_AF_Temp3
$modVar_AF_TempStr2 += '#B-RB#'
elseif modVar_AF_Rand = 3:
if strpos($modVar_AF_TempStr2,'#B-LCD#') > 0 : jump 'subcoderedoB'
modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-LCD']
modVar_AF_MatchZones['B-LCD'] = modVar_AF_Temp3
$modVar_AF_TempStr2 += '#B-LCD#'
elseif modVar_AF_Rand = 4:
if strpos($modVar_AF_TempStr2,'#B-RCD#') > 0 : jump 'subcoderedoB'
modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-RCD']
modVar_AF_MatchZones['B-RCD'] = modVar_AF_Temp3
$modVar_AF_TempStr2 += '#B-RCD#'
end
end
:subcoderedoBskip
modVar_AF_Temp4 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
modVar_AF_Temp5 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>> - IN { | } OUT - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp4]>> | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp3]>> - IN { | } OUT - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp5]>> |
'
end
if $ARGS[0] = 'Full-Time':
*clr & cla
minut += (90 + rand(5,10))
'<<$modVar_AF_TeamA_PlayerTeam>> - <> -vs- <> - <<$modVar_AF_TeamB_PlayerTeam>>'
if $modVar_AF_MatchPlayerTeam = 'A':
if modVar_AF_MatchPointsA > modVar_AF_MatchPointsB:
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Win'
if (modVar_AF_EventProgress['Football'] = 2 and ftbll_lvl <= 50) or (modVar_AF_EventProgress['Football'] = 3 and ftbll_lvl <= 100) : ftbll_lvl += 1 & ftbll_lvlst = ftbll_lvl
else
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Lose'
end
elseif $modVar_AF_MatchPlayerTeam = 'B':
if modVar_AF_MatchPointsB > modVar_AF_MatchPointsA:
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Win'
if (modVar_AF_EventProgress['Football'] = 2 and ftbll_lvl <= 50) or (modVar_AF_EventProgress['Football'] = 3 and ftbll_lvl <= 100) : ftbll_lvl += 1 & ftbll_lvlst = ftbll_lvl
else
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Lose'
end
end
''
*nl
if modVar_AF_MatchPointsA > modVar_AF_MatchPointsB:
'<<$modVar_AF_TeamA_PlayerTeam>> Wins the Match'
elseif modVar_AF_MatchPointsB > modVar_AF_MatchPointsA:
'<<$modVar_AF_TeamB_PlayerTeam>> Wins the Match'
else
'The Match is a Draw'
end
*nl
matchscorersloopcount = 0
:matchscorersloopstart
if matchscorersloopcount >= arrsize('$modArr_AF_MatchScorers') : jump 'matchscorersloopend'
if MID($modArr_AF_MatchScorers[matchscorersloopcount],strpos($modArr_AF_MatchScorers[matchscorersloopcount],'-')) = '-A':
$modVar_AF_TempStr = MID($modArr_AF_MatchScorers[matchscorersloopcount],1,strpos($modArr_AF_MatchScorers[matchscorersloopcount],'-') - 1)
'GOAL - <<$modVar_AF_TempStr>> (<<$modVar_AF_TeamA_PlayerTeam>>)'
elseif MID($modArr_AF_MatchScorers[matchscorersloopcount],strpos($modArr_AF_MatchScorers[matchscorersloopcount],'-')) = '-B':
$modVar_AF_TempStr = MID($modArr_AF_MatchScorers[matchscorersloopcount],1,strpos($modArr_AF_MatchScorers[matchscorersloopcount],'-') - 1)
'GOAL - <<$modVar_AF_TempStr>> (<<$modVar_AF_TeamB_PlayerTeam>>)'
end
matchscorersloopcount += 1
jump 'matchscorersloopstart'
:matchscorersloopend
modVar_AF_Temp = modVar_AF_EventProgress['Football']
if modVar_AF_Temp = 3 : modVar_AF_Temp = 1
gs 'mod_addedflavour_Football' , 'UpdateLeagues' , $modVar_AF_TeamA_PlayerTeam , $modVar_AF_TeamB_PlayerTeam , modVar_AF_Temp
$modArr_AF_LastGameDay[] = '<<$modVar_AF_TeamA_PlayerTeam>> <> - <> <<$modVar_AF_TeamB_PlayerTeam>>'
act 'Finish Up' : gt 'mod_addedflavour_Football' , 'MatchPost'
end
if $ARGS[0] = 'PlayerEvent':
*clr & cla
modVar_AF_MatchPlayerForceEvent = 35
''
*nl
if $ARGS[1] = 'Defend-Act1-Event1-<<$modVar_AF_MatchPlayerTeam>>':
'You stand with your Defensive Four within the Penalty Box. The Oppositions Front Four are spread out along the entire pitch ready to assault your goal. Their player with the ball is running with it at your corner of the penalty box; there is no decision to be made, with her that close you will need to go in for a Tackle.'
*nl
'Option 1 : Get in for a Standing Tackle'
act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Defend-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>'
elseif $ARGS[1] = 'Defend-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>':
gs 'mod_addedflavour_Football' , 'GetPlayerCode'
modVar_AF_Temp2 = arrpos('$modVar_AF_Team<<$modVar_AF_MatchPlayerTeam>>_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')
if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
if modVar_AF_Rand >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
if modVar_AF_Rand >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
end
if $modVar_AF_TempStr = 'Success':
'You are successful in your Tackling and their player has been left dumbfounded in your wake. You sense the opportunity to press forward as your opponents have still not transitioned to a defensive formation.'
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
$modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
$modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
$modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
if $modVar_AF_MatchBall = 'Attack-Up':
$modVar_AF_MatchBall = 'Midfield-Down'
elseif $modVar_AF_MatchBall = 'Attack-Down':
$modVar_AF_MatchBall = 'Midfield-Up'
end
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_MatchPressure = modVar_AF_TeamA_TeamSkill + modVar_AF_TeamB_TeamSkill
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_MatchPressure = modVar_AF_TeamB_TeamSkill + modVar_AF_TeamA_TeamSkill
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> move the ball out of their Defense'
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> move the ball out of their Defense'
$modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
elseif $modVar_AF_TempStr = 'Failure':
'You have failed in your attempts to tackle her but you are still in a dominant position. There is a decision to be made though; do you block her in a way to force her to pass out to the wing or to her teammate in the center? You Team is still solid defensively so either choice should be easily dealt with.'
*nl
'What do you do?'
*nl
'Option 1 : Block the Inside and force a pass to the Winger'
act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Defend-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>'
'Option 2 : Crowd her out and force her to pass backwards'
act 'Option 2' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Defend-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>'
end
elseif $ARGS[1] = 'Defend-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
'You decide to force her to pass to her winger in the hope that she is forced to either run the ball out of play or have to deal with you and your Teammate. You are ultimately successful in this but Disaster: while the two of you have got up to the winger in an orderly fashion, the rest of your Team''s defense is in tatters. One of their players has dragged one of your defenders out of position while another has given her marker the slip completely. This puts them in a situation where if their Winger can get a cross in they will have two players in the box to take the shot; and they are both completely unmarked! There is no choice, you need to get the ball or end the play.'
*nl
'Option 1 : Get in for a Standing Tackle'
act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Defend-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
elseif $ARGS[1] = 'Defend-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
gs 'mod_addedflavour_Football' , 'GetPlayerCode'
modVar_AF_Temp3 = arrpos('$modVar_AF_Team<<$modVar_AF_MatchPlayerTeam>>_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')
if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp3]))
if modVar_AF_Rand > modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp3]))
if modVar_AF_Rand > modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
end
modVar_AF_Rand = rand(2,3)
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Rand += 15
modVar_AF_Temp = modVar_AF_MatchZones[modVar_AF_Rand]
if $modVar_AF_TempStr = 'Success':
'You and your partner in Defense have successfully blocked ' + iif($modVar_AF_MatchEventDetails['Attacker'] = 'A','<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>>','<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>>') + ' and forced her to pass it back to her Midfield, effectively quashing whatever threat this play had.'
$modVar_AF_MatchBall = 'Midfield-' + MID($modVar_AF_MatchBall,strpos($modVar_AF_MatchBall,'-') + 1)
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> have moved the ball back under pressure from their opponents'
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> have moved the ball back under pressure from their opponents'
$modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
elseif $modVar_AF_TempStr = 'Failure':
'Oh no! ' + iif($modVar_AF_MatchEventDetails['Attacker'] = 'A','<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>>','<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>>') + ' has broken through your block and crossed the ball into the box. It is all up to the Keeper now if there is any chance to recover the situation.'
gs 'mod_addedflavour_Football' , 'GetPlayerCode'
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modVar_AF_MatchShooter = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modVar_AF_MatchShooter = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
$modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SHOOT''s from inside the box!'
$modVar_AF_MatchAction = 'Shoot-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Shoot'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
end
elseif $ARGS[1] = 'Defend-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
'You successfully force her to pass to her Midfielder hovering further back, away from the penalty box. Furthermore your Team has managed to keep some defensive rigidity and are in a good position to hold off any more attacks. The only option available to the ball holder is to pass out to the other wing but you have two Teammates ready to intercept. She attempts the pass nevertheless so your only option is to see whether the ball gets passed your two blockers.'
*nl
'Option 1 : Watch it play out'
act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Defend-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
elseif $ARGS[1] = 'Defend-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
gs 'mod_addedflavour_Football' , 'GetPlayerCode'
if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2 + 1]))
if modVar_AF_Rand > modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2 + 1]))
if modVar_AF_Rand > modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
end
if $modVar_AF_TempStr = 'Success':
'Your Teammates have been successful in intercepting the pass and quickly got the ball out to your Midfielders. Effective Defending has turned this Opponent Goal Threat into your Attacking Recovery!'
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
$modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
$modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
$modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
if $modVar_AF_MatchBall = 'Attack-Up':
$modVar_AF_MatchBall = 'Midfield-Down'
elseif $modVar_AF_MatchBall = 'Attack-Down':
$modVar_AF_MatchBall = 'Midfield-Up'
end
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_MatchPressure = modVar_AF_TeamA_TeamSkill + modVar_AF_TeamB_TeamSkill
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_MatchPressure = modVar_AF_TeamB_TeamSkill + modVar_AF_TeamA_TeamSkill
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> move the ball out of their Defense'
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> move the ball out of their Defense'
$modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
elseif $modVar_AF_TempStr = 'Failure':
'A masterfully completed pass managed to get the ball across the grass very fast with a good amount of backspin to stop it going too far before her teammate got to it. Your defensive solidity is still keeping them out but the attack continues.'
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> are looking for a Goal-Scoring Opportunity'
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> are looking for a Goal-Scoring Opportunity'
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
end
elseif $ARGS[1] = 'Midfield-Act1-Event1-<<$modVar_AF_MatchPlayerTeam>>':
'You have got the ball in the Middle of the Park but immediately have four opponent players surrounding you. They are not closing you down yet but have you boxed in and are limiting your options. You want to avoid just passing the ball back to your defense like some useless cretin but rather want to take advantage of the fact that while you are under pressure you still have tied down four of their players; a smart move could give your team a serious advantage. There is a gap to the side; you could run towards and send a through ball to your winger. Alternatively you could pull your outside players in to attract their defensive midfielders and give you an opening.'
*nl
'What do you do?'
*nl
'Option 1 : Try and head towards the wing'
act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Midfield-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>'
'Option 2 : Get your teammates to create a gap'
act 'Option 2' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Midfield-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>'
elseif $ARGS[1] = 'Midfield-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
'You run towards your winger who has caught on to your intentions and started run down the line herself. Your opponents are just as wise to it however and two of them have moved in to try and get the ball off you. Realising that in order to get the ball to your winger now will at best just get them knocking the ball out of play, you think on your feet and realise that your full back on the other side has been freed up completely. Do you switch the play and get the ball chipped over to her?'
*nl
'Option 1 : Switch the play'
act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Midfield-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
elseif $ARGS[1] = 'Midfield-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
gs 'mod_addedflavour_Football' , 'GetPlayerCode'
modVar_AF_Temp = arrpos('$modVar_AF_Team<<$modVar_AF_MatchPlayerTeam>>_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')
if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
if modVar_AF_Rand <= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
if modVar_AF_Rand <= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
end
if $modVar_AF_TempStr = 'Success':
'After skillfully turning on the ball so your body is blocking it from your opponents you put in a masterful cross to the feet of your Winger. After a brief hesitation due to being surprised you got the ball to her she charges at the Attacking Third.'
$modVar_AF_MatchBall = 'Attack-' + MID($modVar_AF_MatchBall,strpos($modVar_AF_MatchBall,'-') + 1)
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> pass the ball into their Attacking Third'
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> pass the ball into their Attacking Third'
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
elseif $modVar_AF_TempStr = 'Failure':
modVar_AF_Rand = rand(4,5)
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Rand += 15
modVar_AF_Temp = modVar_AF_MatchZones[modVar_AF_Rand]
'Well, it may have been a fantastic idea but ' + iif($modVar_AF_MatchEventDetails['Attacker'] = 'A','<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>>','<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>>') + ' gets the better of you to put in an interception. The ball is not completely under their control but it does manage to reach the feet of one of their players.'
if $modVar_AF_MatchBall = 'Midfield-Up':
$modVar_AF_MatchBall = 'Midfield-Down'
else
$modVar_AF_MatchBall = 'Midfield-Up'
end
$modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
$modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
$modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> are moving the ball around their Midfield'
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> are moving the ball around their Midfield'
$modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
end
elseif $ARGS[1] = 'Midfield-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
'Your outside players have done a magnificent job in drawing their attention forcing them to put themselves between your teammates and yourself. Siezing the opportunity you blast through the gap leaving you one on one with a Defender. Get passed her and you can put a beauty of a through ball to your Strikers but if she tackles you she is primed to send a cross to their wingers.'
*nl
'Option 1 : Try to get passed their Defender'
act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Midfield-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
elseif $ARGS[1] = 'Midfield-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
modVar_AF_Rand = rand(6,7)
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_Rand += 15
modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
modVar_AF_Temp = arrpos('$modVar_AF_Team<<$modVar_AF_MatchPlayerTeam>>_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')
if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
if modVar_AF_Rand <= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
if modVar_AF_Rand <= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
end
if $modVar_AF_TempStr = 'Success':
'The ball dances at your feet as you spin-turn the on-running ' + iif($modVar_AF_MatchEventDetails['Attacker'] = 'A','<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>>','<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>>') + ', leaving her flabbergastered as you then put the perfect pass through to your Striker who in turn gears up for a shot on goal!'
$modVar_AF_MatchBall = 'Attack-' + MID($modVar_AF_MatchBall,strpos($modVar_AF_MatchBall,'-') + 1)
gs 'mod_addedflavour_Football' , 'GetPlayerCode'
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modVar_AF_MatchShooter = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modVar_AF_MatchShooter = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
$modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SHOOT''s from inside the box!'
$modVar_AF_MatchAction = 'Shoot-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Shoot'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
elseif $modVar_AF_TempStr = 'Failure':
'Skill can only take you so far and after you try a clever skill move to get passed ' + iif($modVar_AF_MatchEventDetails['Attacker'] = 'A','<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>>','<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>>') + ' she stops the ball dead leaving you on your arse. Taking the opportunity of her own she immediately punts the ball to one of her forwards who has occupied some of the free space on the wing.'
if $modVar_AF_MatchBall = 'Midfield-Up':
$modVar_AF_MatchBall = 'Attack-Down'
else
$modVar_AF_MatchBall = 'Attack-Up'
end
$modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
$modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
$modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> pass the ball into their Attacking Third'
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> pass the ball into their Attacking Third'
$modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
end
elseif $ARGS[1] = 'Forward-Act1-Event1-<<$modVar_AF_MatchPlayerTeam>>':
'You stand just off the Penalty box with the ball at your feet. You have players either side of you but the opposing team are set up in a defensive formation to block any attack. This does present a number of options however and enough time to consider them. Your Winger is freed up, you could get the ball over to her and position yourself to receive a cross in a shooting position. Alternatively you could just charge forward and hope that you pull in both defenders allowing a quick pass to an onrushing teammate. There is one final option though, just pass it and pull back to provide an passing option should they get under pressure.'
*nl
'What do you do?'
*nl
'Option 1 : Pass to your Winger'
act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>'
'Option 2 : Charge Forward'
act 'Option 2' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>'
'Option 3 : Pass and pull back'
act 'Option 3' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>'
elseif $ARGS[1] = 'Forward-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
'You have put a pass across to your Winger who receives the ball well. In turn this has caused their right-side defenders to go in on them to block them off which has had the unintended benefit of providing the perfect space for you to receive a cross, you just have to wait and see if she can make it.'
*nl
'Option 1 : Position yourself to receive the Cross'
act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
elseif $ARGS[1] = 'Forward-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
modVar_AF_Rand = rand(2,3)
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Rand += 15
modVar_AF_Temp = modVar_AF_MatchZones[modVar_AF_Rand]
modVar_AF_Rand = rand(6,9)
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_Rand += 15
modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
if modVar_AF_Rand <= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
if modVar_AF_Rand <= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
end
if $modVar_AF_TempStr = 'Success':
'What a cross from ' + iif($modVar_AF_MatchEventDetails['Attacker'] = 'A','<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>>','<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>>') + '! She not only has got the ball passed her markers but has practically placed the ball at your feet. All there is now is to fire it at the target.'
$modVar_AF_MatchShooter = '<<$pcs_firstname>> <<$pcs_lastname>>'
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
$modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SHOOT''s from inside the box!'
$modVar_AF_MatchAction = 'Shoot-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Shoot'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
elseif $modVar_AF_TempStr = 'Failure':
'Gutting... She tried her best but the tackle was successful and now your opponents have not only got the ball but have taken advantage of the absence of players on that side of the pitch to punt it up to their Midfield.'
if $modVar_AF_MatchBall = 'Attack-Up':
$modVar_AF_MatchBall = 'Midfield-Down'
else
$modVar_AF_MatchBall = 'Midfield-Up'
end
$modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
$modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
$modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> move the ball out of their Defense'
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> move the ball out of their Defense'
$modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
end
elseif $ARGS[1] = 'Forward-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
'You charge forward and do indeed attract the attention of their central defense. Doing so has freed up two of your teammates to charge through their respective gaps. If you can just get the ball through you will assist the ideal shooting opportunity for them.'
*nl
'Option 1 : Try to make the Pass'
act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
elseif $ARGS[1] = 'Forward-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
modVar_AF_Temp = modVar_AF_MatchZones[21]
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Temp = modVar_AF_MatchZones[6]
modVar_AF_Temp2 = modVar_AF_MatchZones[22]
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Temp2 = modVar_AF_MatchZones[7]
if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[arrpos('$modVar_AF_TeamA_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')] + ((modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]) / 2)))
if modVar_AF_Rand <= modVar_AF_TeamA_PlayerSkill[arrpos('$modVar_AF_TeamA_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[arrpos('$modVar_AF_TeamB_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')] + ((modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]) / 2)))
if modVar_AF_Rand <= modVar_AF_TeamB_PlayerSkill[arrpos('$modVar_AF_TeamB_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
end
if $modVar_AF_TempStr = 'Success':
'After feinting the weaker player you pass the ball through her legs letting it come to a slow crawl within the Penalty Area, waiting for the boot of your teammate. Their keeper is also rushing forward so you wait to see who will win this contest.'
if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
modVar_AF_Temp = modVar_AF_MatchZones['A-LF']
if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : modVar_AF_Temp = modVar_AF_MatchZones['A-RF']
elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
modVar_AF_Temp = modVar_AF_MatchZones['B-LF']
if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : modVar_AF_Temp = modVar_AF_MatchZones['B-RF']
end
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modVar_AF_MatchShooter = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modVar_AF_MatchShooter = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
$modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SHOOT''s from inside the box!'
$modVar_AF_MatchAction = 'Shoot-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Shoot'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
elseif $modVar_AF_TempStr = 'Failure':
'You try to Skill Move your way through the Defenders but alas, it was not successful. A skillfully outstretched leg caught the ball in mid-move, robbing you of your momentum. Your opponents now have the ball and are looking at getting it safe.'
if $modVar_AF_MatchBall = 'Attack-Up':
$modVar_AF_MatchBall = 'Defend-Down'
else
$modVar_AF_MatchBall = 'Defend-Up'
end
$modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
$modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
$modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> are passing amongst their Defense'
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> are passing amongst their Defense'
$modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
end
elseif $ARGS[1] = 'Forward-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
'You pass the ball to a nearby Midfielder who is immediately put under pressure by two of their defenders. It was just as much of a mistake as when you considered but there is a reprieve. When you passed the ball your two teammates on the other side of the pitch came inwards, pulling in their markers. When your teammate accepts her position and passes the ball back you will be ideally placed to whack in a beauty of a shot from long range!'
*nl
'Option 1 : Look for the Pass'
act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
elseif $ARGS[1] = 'Forward-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
modVar_AF_Rand = rand(2,3)
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Rand += 15
modVar_AF_Temp = modVar_AF_MatchZones[modVar_AF_Rand]
modVar_AF_Rand = rand(6,7)
if $modVar_AF_MatchEventDetails['Defender'] = 'B' : modVar_AF_Rand += 15
modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
if modVar_AF_Rand <= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
if modVar_AF_Rand <= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
$modVar_AF_TempStr = 'Success'
else
$modVar_AF_TempStr = 'Failure'
end
end
if $modVar_AF_TempStr = 'Success':
'She''s realised the situation and got the ball back to you before she had the chance to lose possession. It is now softly rolling to your feet, singing out at the prospect of the majestic kick you are about to provide!'
$modVar_AF_MatchShooter = '<<$pcs_firstname>> <<$pcs_lastname>>'
if $modVar_AF_MatchBall = 'Attack-Up':
$modVar_AF_MatchBall = 'Midfield-Up'
else
$modVar_AF_MatchBall = 'Midfield-Down'
end
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
$modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SHOOT''s from distance!'
$modVar_AF_MatchAction = 'Shoot-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Shoot'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
elseif $modVar_AF_TempStr = 'Failure':
'Unfortunately she got tackled before she had the chance get the pass in and the opponent has managed to get it very quickly out to their Midfield. You can''t be too irritated though, it was your fault for putting her under pressure like that. Never mind though, play on.'
if $modVar_AF_MatchBall = 'Attack-Up':
$modVar_AF_MatchBall = 'Midfield-Down'
else
$modVar_AF_MatchBall = 'Midfield-Up'
end
$modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
$modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
$modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
$modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> move the ball out of their Defense'
if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> move the ball out of their Defense'
$modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
end
end
end
if $ARGS[0] = 'MatchSetup':
!$Arg 1 = PosDemand; Arg 2 = Team A; Arg 3 = Team B
KILLVAR '$modVar_AF_TeamA_PlayerName'
KILLVAR '$modVar_AF_TeamA_PlayerTeam'
KILLVAR 'modVar_AF_TeamA_PlayerSkill'
KILLVAR 'modVar_AF_TeamA_TeamSkill'
KILLVAR '$modVar_AF_TeamB_PlayerName'
KILLVAR '$modVar_AF_TeamB_PlayerTeam'
KILLVAR 'modVar_AF_TeamB_PlayerSkill'
KILLVAR 'modVar_AF_TeamB_TeamSkill'
KILLVAR 'modVar_AF_MatchPointsA'
KILLVAR 'modVar_AF_MatchPointsB'
KILLVAR '$modArr_AF_MatchScorers'
KILLVAR 'modVar_AF_MatchZones'
KILLVAR '$modVar_AF_MatchAction'
KILLVAR '$modVar_AF_MatchActionImage'
KILLVAR '$modVar_AF_MatchBall'
KILLVAR '$modArr_AF_MatchEvents'
KILLVAR '$modArr_AF_MatchEventDetails'
KILLVAR '$modArr_AF_MatchAIOptions'
KILLVAR 'modVar_AF_MatchHalf'
KILLVAR '$modVar_AF_FBall_PosRequest'
$modVar_AF_TeamA_PlayerTeam = $ARGS[2]
$modVar_AF_TeamB_PlayerTeam = $ARGS[3]
if arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TeamA_PlayerTeam) ! -1:
modVar_AF_TeamA_TeamSkill = modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TeamA_PlayerTeam)]
modVar_AF_TeamB_TeamSkill = modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TeamB_PlayerTeam)]
else
modVar_AF_TeamA_TeamSkill = modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TeamA_PlayerTeam)]
modVar_AF_TeamB_TeamSkill = modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TeamB_PlayerTeam)]
end
modVar_AF_MatchZones['A-LF'] = 99 & modVar_AF_MatchZones['A-RF'] = 99 & modVar_AF_MatchZones['A-RW'] = 99 & modVar_AF_MatchZones['A-LW'] = 99 & modVar_AF_MatchZones['A-LCM'] = 99 & modVar_AF_MatchZones['A-RCM'] = 99 & modVar_AF_MatchZones['A-RB'] = 99 & modVar_AF_MatchZones['A-RCD'] = 99 & modVar_AF_MatchZones['A-LCD'] = 99 & modVar_AF_MatchZones['A-LB'] = 99 & modVar_AF_MatchZones['A-KP'] = 99 & modVar_AF_MatchZones['A-SUB1'] = 99 & modVar_AF_MatchZones['A-SUB2'] = 99 & modVar_AF_MatchZones['A-SUB3'] = 99 & modVar_AF_MatchZones['A-SUB4'] = 99
modVar_AF_MatchZones['B-LF'] = 99 & modVar_AF_MatchZones['B-RF'] = 99 & modVar_AF_MatchZones['B-RW'] = 99 & modVar_AF_MatchZones['B-LW'] = 99 & modVar_AF_MatchZones['B-LCM'] = 99 & modVar_AF_MatchZones['B-RCM'] = 99 & modVar_AF_MatchZones['B-RB'] = 99 & modVar_AF_MatchZones['B-RCD'] = 99 & modVar_AF_MatchZones['B-LCD'] = 99 & modVar_AF_MatchZones['B-LB'] = 99 & modVar_AF_MatchZones['B-KP'] = 99 & modVar_AF_MatchZones['B-SUB1'] = 99 & modVar_AF_MatchZones['B-SUB2'] = 99 & modVar_AF_MatchZones['B-SUB3'] = 99 & modVar_AF_MatchZones['B-SUB4'] = 99
if modVar_AF_EventProgress['Football'] = 2 and $modVar_AF_TeamA_PlayerTeam = 'Pavlovsk High' : $modVar_AF_MatchPlayerTeam = 'A'
if modVar_AF_EventProgress['Football'] = 2 and $modVar_AF_TeamB_PlayerTeam = 'Pavlovsk High' : $modVar_AF_MatchPlayerTeam = 'B'
if modVar_AF_EventProgress['Football'] = 3 and $modVar_AF_TeamA_PlayerTeam = 'Zenit Saint Petersburg' : $modVar_AF_MatchPlayerTeam = 'A'
if modVar_AF_EventProgress['Football'] = 3 and $modVar_AF_TeamB_PlayerTeam = 'Zenit Saint Petersburg' : $modVar_AF_MatchPlayerTeam = 'B'
KILLVAR '$modArr_AF_Rand'
$modArr_AF_Rand[] = 'Forward' & $modArr_AF_Rand[] = 'Forward' & $modArr_AF_Rand[] = 'Forward' & $modArr_AF_Rand[] = 'Midfielder' & $modArr_AF_Rand[] = 'Midfielder' & $modArr_AF_Rand[] = 'Midfielder' & $modArr_AF_Rand[] = 'Midfielder' & $modArr_AF_Rand[] = 'Midfielder' & $modArr_AF_Rand[] = 'Defender' & $modArr_AF_Rand[] = 'Defender' & $modArr_AF_Rand[] = 'Defender' & $modArr_AF_Rand[] = 'Defender' & $modArr_AF_Rand[] = 'Defender'
if $modVar_AF_MatchPlayerTeam = 'A' and $ARGS[1] ! '' : KILLVAR '$modArr_AF_Rand' , arrpos('$modArr_AF_Rand',$ARGS[1])
matchsetuploopcount = 0
:matchsetuploopstart
if matchsetuploopcount >= arrsize('$modArr_AF_FBall_PlayerName') : jump 'matchsetuploopend'
if $modArr_AF_FBall_PlayerTeam[matchsetuploopcount] = $modVar_AF_TeamA_PlayerTeam:
$modVar_AF_TeamA_PlayerName[] = $modArr_AF_FBall_PlayerName[matchsetuploopcount]
modVar_AF_TeamA_PlayerSkill[] = modArr_AF_FBall_PlayerSkill[matchsetuploopcount]
$modVar_AF_TeamA_PlayerPosition[] = $modArr_AF_FBall_PlayerPosition[matchsetuploopcount]
elseif $modArr_AF_FBall_PlayerTeam[matchsetuploopcount] = $modVar_AF_TeamB_PlayerTeam:
$modVar_AF_TeamB_PlayerName[] = $modArr_AF_FBall_PlayerName[matchsetuploopcount]
modVar_AF_TeamB_PlayerSkill[] = modArr_AF_FBall_PlayerSkill[matchsetuploopcount]
$modVar_AF_TeamB_PlayerPosition[] = $modArr_AF_FBall_PlayerPosition[matchsetuploopcount]
end
matchsetuploopcount += 1
jump 'matchsetuploopstart'
:matchsetuploopend
playerpositionloopcount = 0
:playerpositionloopstart
if playerpositionloopcount >= 30 : jump 'playerpositionloopend'
if playerpositionloopcount < 15:
modVar_AF_Temp = playerpositionloopcount
if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' and $ARGS[1] ! '':
$modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = $ARGS[1]
elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Any':
if modVar_AF_Temp = 13 or modVar_AF_Temp = 14:
$modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Keeper'
else
modVar_AF_Rand = rand(1,arrsize('$modArr_AF_Rand')) - 1
$modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = $modArr_AF_Rand[modVar_AF_Rand]
KILLVAR '$modArr_AF_Rand' , modVar_AF_Rand
end
end
if $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Forward':
if modVar_AF_MatchZones['A-LF'] = 99:
modVar_AF_MatchZones['A-LF'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-RF'] = 99:
modVar_AF_MatchZones['A-RF'] = modVar_AF_Temp
else
if modVar_AF_MatchZones['A-SUB1'] = 99:
modVar_AF_MatchZones['A-SUB1'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-SUB2'] = 99:
modVar_AF_MatchZones['A-SUB2'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-SUB3'] = 99:
modVar_AF_MatchZones['A-SUB3'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-SUB4'] = 99:
modVar_AF_MatchZones['A-SUB4'] = modVar_AF_Temp
end
end
elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Midfielder':
if modVar_AF_MatchZones['A-LW'] = 99:
modVar_AF_MatchZones['A-LW'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-RW'] = 99:
modVar_AF_MatchZones['A-RW'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-LCM'] = 99:
modVar_AF_MatchZones['A-LCM'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-RCM'] = 99:
modVar_AF_MatchZones['A-RCM'] = modVar_AF_Temp
else
if modVar_AF_MatchZones['A-SUB1'] = 99:
modVar_AF_MatchZones['A-SUB1'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-SUB2'] = 99:
modVar_AF_MatchZones['A-SUB2'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-SUB3'] = 99:
modVar_AF_MatchZones['A-SUB3'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-SUB4'] = 99:
modVar_AF_MatchZones['A-SUB4'] = modVar_AF_Temp
end
end
elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Defender':
if modVar_AF_MatchZones['A-LCD'] = 99:
modVar_AF_MatchZones['A-LCD'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-RCD'] = 99:
modVar_AF_MatchZones['A-RCD'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-LB'] = 99:
modVar_AF_MatchZones['A-LB'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-RB'] = 99:
modVar_AF_MatchZones['A-RB'] = modVar_AF_Temp
else
if modVar_AF_MatchZones['A-SUB1'] = 99:
modVar_AF_MatchZones['A-SUB1'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-SUB2'] = 99:
modVar_AF_MatchZones['A-SUB2'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-SUB3'] = 99:
modVar_AF_MatchZones['A-SUB3'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['A-SUB4'] = 99:
modVar_AF_MatchZones['A-SUB4'] = modVar_AF_Temp
end
end
elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Keeper':
if modVar_AF_MatchZones['A-KP'] = 99:
modVar_AF_MatchZones['A-KP'] = modVar_AF_Temp
else
modVar_AF_MatchZones['A-SUB4'] = modVar_AF_Temp
end
end
else
if playerpositionloopcount = 15:
KILLVAR '$modArr_AF_Rand'
$modArr_AF_Rand[] = 'Forward' & $modArr_AF_Rand[] = 'Forward' & $modArr_AF_Rand[] = 'Forward' & $modArr_AF_Rand[] = 'Midfielder' & $modArr_AF_Rand[] = 'Midfielder' & $modArr_AF_Rand[] = 'Midfielder' & $modArr_AF_Rand[] = 'Midfielder' & $modArr_AF_Rand[] = 'Midfielder' & $modArr_AF_Rand[] = 'Defender' & $modArr_AF_Rand[] = 'Defender' & $modArr_AF_Rand[] = 'Defender' & $modArr_AF_Rand[] = 'Defender' & $modArr_AF_Rand[] = 'Defender'
if $modVar_AF_MatchPlayerTeam = 'B' and $ARGS[1] ! '' : KILLVAR '$modArr_AF_Rand' , arrpos('$modArr_AF_Rand',$ARGS[1])
end
modVar_AF_Temp = playerpositionloopcount - 15
if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' and $ARGS[1] ! '':
$modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = $ARGS[1]
elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Any':
if modVar_AF_Temp = 13 or modVar_AF_Temp = 14:
$modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Keeper'
else
modVar_AF_Rand = rand(1,arrsize('$modArr_AF_Rand')) - 1
$modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = $modArr_AF_Rand[modVar_AF_Rand]
KILLVAR '$modArr_AF_Rand' , modVar_AF_Rand
end
end
if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerTeam = 'B'
if $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Forward':
if modVar_AF_MatchZones['B-LF'] = 99:
modVar_AF_MatchZones['B-LF'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-RF'] = 99:
modVar_AF_MatchZones['B-RF'] = modVar_AF_Temp
else
if modVar_AF_MatchZones['B-SUB1'] = 99:
modVar_AF_MatchZones['B-SUB1'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-SUB2'] = 99:
modVar_AF_MatchZones['B-SUB2'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-SUB3'] = 99:
modVar_AF_MatchZones['B-SUB3'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-SUB4'] = 99
modVar_AF_MatchZones['B-SUB4'] = modVar_AF_Temp
end
end
elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Midfielder':
if modVar_AF_MatchZones['B-LW'] = 99:
modVar_AF_MatchZones['B-LW'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-RW'] = 99:
modVar_AF_MatchZones['B-RW'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-LCM'] = 99:
modVar_AF_MatchZones['B-LCM'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-RCM'] = 99:
modVar_AF_MatchZones['B-RCM'] = modVar_AF_Temp
else
if modVar_AF_MatchZones['B-SUB1'] = 99:
modVar_AF_MatchZones['B-SUB1'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-SUB2'] = 99:
modVar_AF_MatchZones['B-SUB2'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-SUB3'] = 99:
modVar_AF_MatchZones['B-SUB3'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-SUB4'] = 99:
modVar_AF_MatchZones['B-SUB4'] = modVar_AF_Temp
end
end
elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Defender':
if modVar_AF_MatchZones['B-LCD'] = 99:
modVar_AF_MatchZones['B-LCD'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-RCD'] = 99:
modVar_AF_MatchZones['B-RCD'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-LB'] = 99:
modVar_AF_MatchZones['B-LB'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-RB'] = 99:
modVar_AF_MatchZones['B-RB'] = modVar_AF_Temp
else
if modVar_AF_MatchZones['B-SUB1'] = 99:
modVar_AF_MatchZones['B-SUB1'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-SUB2'] = 99:
modVar_AF_MatchZones['B-SUB2'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-SUB3'] = 99:
modVar_AF_MatchZones['B-SUB3'] = modVar_AF_Temp
elseif modVar_AF_MatchZones['B-SUB4'] = 99:
modVar_AF_MatchZones['B-SUB4'] = modVar_AF_Temp
end
end
elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Keeper':
if modVar_AF_MatchZones['B-KP'] = 99:
modVar_AF_MatchZones['B-KP'] = modVar_AF_Temp
else
modVar_AF_MatchZones['B-SUB4'] = modVar_AF_Temp
end
end
end
playerpositionloopcount += 1
jump 'playerpositionloopstart'
:playerpositionloopend
end
if $ARGS[0] = 'MatchBuildup':
KILLVAR '$modVar_AF_Row'
modVar_AF_Temp = modVar_AF_MatchZones['A-LF']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-LF']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | Left Forward | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-RF']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-RF']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | Right Forward | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-LW']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-LW']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | Left Winger | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-RW']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-RW']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | Right Winger | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-LCM']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-LCM']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | Left Centre Midfield | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-RCM']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-RCM']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | Right Centre Midfield | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-LB']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-LB']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | Left Back | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-RB']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-RB']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | Right Back | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-LCD']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-LCD']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | Left Centre Defense | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-RCD']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-RCD']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | Right Centre Defense | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-KP']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-KP']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | Keeper | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-SUB1']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-SUB1']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-SUB2']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-SUB2']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-SUB3']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-SUB3']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
modVar_AF_Temp = modVar_AF_MatchZones['A-SUB4']
modVar_AF_Temp2 = modVar_AF_MatchZones['B-SUB4']
$modVar_AF_Row[] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> | <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> |
'
'<<$modVar_AF_TeamA_PlayerTeam>> | <<$modVar_AF_TeamB_PlayerTeam>> |
<<$modVar_AF_Row[0]>><<$modVar_AF_Row[1]>><<$modVar_AF_Row[2]>><<$modVar_AF_Row[3]>><<$modVar_AF_Row[4]>><<$modVar_AF_Row[5]>><<$modVar_AF_Row[6]>><<$modVar_AF_Row[7]>><<$modVar_AF_Row[8]>><<$modVar_AF_Row[9]>><<$modVar_AF_Row[10]>>
'
'Substitutes |
<<$modVar_AF_Row[11]>><<$modVar_AF_Row[12]>><<$modVar_AF_Row[13]>><<$modVar_AF_Row[14]>>
'
KILLVAR '$modVar_AF_Row'
gs 'mod_addedflavour_Football' , 'RequestImage' , 'KickOff'
$modVar_AF_MatchAction = 'KickOff-A#B'
$modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> to Kick Off the 1st Half'
modVar_AF_MatchTime = 0
$modVar_AF_MatchBall = 'Midfield-Up'
modVar_AF_MatchHalf = 1
menu_off = 1
CLOSE ALL
modVar_AF_MatchPlayerForceEvent = 10
act 'Head to Kick-Off' : gt 'mod_addedflavour_Football' , 'GameInterface'
end
if $ARGS[0] = 'SimulateMatch':
KILLVAR 'modVar_AF_MatchPointsA'
KILLVAR 'modVar_AF_MatchPointsB'
$modVar_AF_TempStr = $ARGS[1]
if ARGS[3] = 1:
modVar_AF_Temp = modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)]
elseif ARGS[3] = 2:
modVar_AF_Temp = modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)]
end
$modVar_AF_TempStr = $ARGS[2]
if ARGS[3] = 1:
modVar_AF_Temp2 = modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)]
elseif ARGS[3] = 2:
modVar_AF_Temp2 = modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)]
end
decidescoreloopcount = 0
:decidescoreloopstart
if decidescoreloopcount >= 10 : jump 'decidescoreloopend'
!Repeated to flush out Randomiser
modVar_AF_Rand = rand(1,(modVar_AF_Temp + modVar_AF_Temp + modVar_AF_Temp2 + modVar_AF_Temp2))
modVar_AF_Rand = rand(1,(modVar_AF_Temp + modVar_AF_Temp + modVar_AF_Temp2 + modVar_AF_Temp2))
modVar_AF_Rand = rand(1,(modVar_AF_Temp + modVar_AF_Temp + modVar_AF_Temp2 + modVar_AF_Temp2))
if modVar_AF_Rand <= modVar_AF_Temp:
modVar_AF_MatchPointsA += 1
elseif modVar_AF_Rand > (modVar_AF_Temp + modVar_AF_Temp + modVar_AF_Temp2):
modVar_AF_MatchPointsB += 1
end
decidescoreloopcount += 1
jump 'decidescoreloopstart'
:decidescoreloopend
gs 'mod_addedflavour_Football' , 'UpdateLeagues' , $ARGS[1] , $ARGS[2] , ARGS[3]
$modArr_AF_LastGameDay[] = '<<$ARGS[1]>> <> - <> <<$ARGS[2]>>'
end
if $ARGS[0] = 'UpdateLeagues':
if ARGS[3] = 1:
if modVar_AF_MatchPointsA > modVar_AF_MatchPointsB:
$modVar_AF_TempStr = $ARGS[1]
modArr_AF_FLeague1_Points[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += 3
modArr_AF_FLeague1_GoalsFor[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
modArr_AF_FLeague1_GoalsAgainst[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
$modVar_AF_TempStr = $ARGS[2]
modArr_AF_FLeague1_GoalsFor[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
modArr_AF_FLeague1_GoalsAgainst[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
elseif modVar_AF_MatchPointsB > modVar_AF_MatchPointsA:
$modVar_AF_TempStr = $ARGS[2]
modArr_AF_FLeague1_Points[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += 3
modArr_AF_FLeague1_GoalsFor[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
modArr_AF_FLeague1_GoalsAgainst[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
$modVar_AF_TempStr = $ARGS[1]
modArr_AF_FLeague1_GoalsFor[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
modArr_AF_FLeague1_GoalsAgainst[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
elseif modVar_AF_MatchPointsA = modVar_AF_MatchPointsB:
$modVar_AF_TempStr = $ARGS[1]
modArr_AF_FLeague1_Points[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += 1
modArr_AF_FLeague1_GoalsFor[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
modArr_AF_FLeague1_GoalsAgainst[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
$modVar_AF_TempStr = $ARGS[2]
modArr_AF_FLeague1_Points[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += 1
modArr_AF_FLeague1_GoalsFor[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
modArr_AF_FLeague1_GoalsAgainst[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
end
elseif ARGS[3] = 2:
if modVar_AF_MatchPointsA > modVar_AF_MatchPointsB:
$modVar_AF_TempStr = $ARGS[1]
modArr_AF_FLeague2_Points[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += 3
modArr_AF_FLeague2_GoalsFor[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
modArr_AF_FLeague2_GoalsAgainst[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
$modVar_AF_TempStr = $ARGS[2]
modArr_AF_FLeague2_GoalsFor[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
modArr_AF_FLeague2_GoalsAgainst[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
elseif modVar_AF_MatchPointsB > modVar_AF_MatchPointsA:
$modVar_AF_TempStr = $ARGS[1]
modArr_AF_FLeague2_Points[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += 3
modArr_AF_FLeague2_GoalsFor[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
modArr_AF_FLeague2_GoalsAgainst[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
$modVar_AF_TempStr = $ARGS[2]
modArr_AF_FLeague2_GoalsFor[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
modArr_AF_FLeague2_GoalsAgainst[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
elseif modVar_AF_MatchPointsA = modVar_AF_MatchPointsB:
$modVar_AF_TempStr = $ARGS[1]
modArr_AF_FLeague2_Points[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += 1
modArr_AF_FLeague2_GoalsFor[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
modArr_AF_FLeague2_GoalsAgainst[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
$modVar_AF_TempStr = $ARGS[2]
modArr_AF_FLeague2_Points[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += 1
modArr_AF_FLeague2_GoalsFor[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
modArr_AF_FLeague2_GoalsAgainst[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
end
end
end
if $ARGS[0] = 'SetupLeagues':
!! Setup Players and Teams !!
KILLVAR '$modArr_AF_FBall_L1_TeamNames'
KILLVAR '$modArr_AF_FBall_L2_TeamNames'
KILLVAR '$modArr_AF_FLeague1_TeamName'
KILLVAR 'modArr_AF_FLeague1_Points'
KILLVAR 'modArr_AF_FLeague1_GoalsFor'
KILLVAR 'modArr_AF_FLeague1_GoalsAgainst'
KILLVAR '$modArr_AF_FLeague2_TeamName'
KILLVAR 'modArr_AF_FLeague2_Points'
KILLVAR 'modArr_AF_FLeague2_GoalsFor'
KILLVAR 'modArr_AF_FLeague2_GoalsAgainst'
$modArr_AF_FBall_L1_TeamNames[] = 'Zenit Saint Petersburg' & $modArr_AF_FBall_L1_TeamNames[] = 'Spartak Moscow' & $modArr_AF_FBall_L1_TeamNames[] = 'Locomotiv Moscow' & $modArr_AF_FBall_L1_TeamNames[] = 'CSKA Moscow' & $modArr_AF_FBall_L1_TeamNames[] = 'Rubin Kazan' & $modArr_AF_FBall_L1_TeamNames[] = 'FC Rostov'
$modArr_AF_FBall_L2_TeamNames[] = 'Pavlovsk High' & $modArr_AF_FBall_L2_TeamNames[] = 'Gatchina Modern' & $modArr_AF_FBall_L2_TeamNames[] = 'Annino Institute' & $modArr_AF_FBall_L2_TeamNames[] = 'Kolpino Academy' & $modArr_AF_FBall_L2_TeamNames[] = 'Rakhya Tech' & $modArr_AF_FBall_L2_TeamNames[] = 'Vsevolozhsk Institute' & $modArr_AF_FBall_L2_TeamNames[] = 'Kirovsky Modern' & $modArr_AF_FBall_L2_TeamNames[] = 'Primorsky High' & $modArr_AF_FBall_L2_TeamNames[] = 'Sestroretsk Institute' & $modArr_AF_FBall_L2_TeamNames[] = 'Sertolovo Academy' & $modArr_AF_FBall_L2_TeamNames[] = 'Leskalovo Academy' & $modArr_AF_FBall_L2_TeamNames[] = 'Veliky Novgorod College' & $modArr_AF_FBall_L2_TeamNames[] = 'Tikhvin Tech' & $modArr_AF_FBall_L2_TeamNames[] = 'Vyborg Modern' & $modArr_AF_FBall_L2_TeamNames[] = 'Petrogradsky High' & $modArr_AF_FBall_L2_TeamNames[] = 'Zelenogorsk College'
fballsetupleaguescount = 0
multilooperrorcount = 0
:fballsetupleaguesL1loopstart
multilooperrorcount += 1
if multilooperrorcount > 1000 : $modArr_AF_MultiLoopErrorLoc[] = 'fballsetupleaguesL2loop' & jump 'fballsetupleaguesL1loopend'
if fballsetupleaguescount >= arrsize('$modArr_AF_FBall_L1_TeamNames') : jump'fballsetupleaguesL1loopend'
$modArr_AF_FLeague1_TeamName[] = $modArr_AF_FBall_L1_TeamNames[fballsetupleaguescount]
modArr_AF_FLeague1_Points[] = 0
modArr_AF_FLeague1_GoalsFor[] = 0
modArr_AF_FLeague1_GoalsAgainst[] = 0
modArr_AF_FLeague1_TeamSkill[] = rand(70,90)
fballsetupleaguescount += 1
jump 'fballsetupleaguesL1loopstart'
:fballsetupleaguesL1loopend
fballsetupleaguescount = 0
multilooperrorcount = 0
:fballsetupleaguesL2loopstart
multilooperrorcount += 1
if multilooperrorcount > 1000 : $modArr_AF_MultiLoopErrorLoc[] = 'fballsetupleaguesL2loop' & jump 'fballsetupleaguesL2loopend'
if fballsetupleaguescount >= arrsize('$modArr_AF_FBall_L2_TeamNames') : jump'fballsetupleaguesL2loopend'
$modArr_AF_FLeague2_TeamName[] = $modArr_AF_FBall_L2_TeamNames[fballsetupleaguescount]
modArr_AF_FLeague2_Points[] = 0
modArr_AF_FLeague2_GoalsFor[] = 0
modArr_AF_FLeague2_GoalsAgainst[] = 0
modArr_AF_FLeague2_TeamSkill[] = rand(30,40)
fballsetupleaguescount += 1
jump 'fballsetupleaguesL2loopstart'
:fballsetupleaguesL2loopend
KILLVAR '$modArr_AF_FBall_L1_TeamNames'
KILLVAR '$modArr_AF_FBall_L2_TeamNames'
end
if $ARGS[0] = 'SetupPlayers':
KILLVAR '$modArr_AF_FBall_PlayerName'
KILLVAR '$modArr_AF_FBall_PlayerTeam'
KILLVAR 'modArr_AF_FBall_PlayerSkill'
fballsetupteamsscount = 0
multilooperrorcount = 0
:fballsetupteamsL1loopstart
multilooperrorcount += 1
if multilooperrorcount > 1000 : $modArr_AF_MultiLoopErrorLoc[] = 'fballsetupteamsL1loop' & jump 'fballsetupteamsL1loopend'
if fballsetupteamsscount >= arrsize('$modArr_AF_FLeague1_TeamName') : jump'fballsetupteamsL1loopend'
gs 'mod_addedflavour_GameFunctions' , 'SetupTeam' , $modArr_AF_FLeague1_TeamName[fballsetupteamsscount] , 8 , 15 , 50 , 100
if arrpos('$modArr_AF_PlayerNameTemp','<<$pcs_firstname>> <<$pcs_lastname>>') >= 0 or arrpos('$modArr_AF_PlayerNameTemp','Zinaida Alkaev') >= 0 : jump 'fballsetupteamsL1loopstart'
fballsetupteamsL1addplayerloopcount = 0
:fballsetupteamsL1addplayerloopstart
multilooperrorcount += 1
if multilooperrorcount > 1000 : $modArr_AF_MultiLoopErrorLoc[] = 'fballsetupteamsL1addplayerloop' & jump 'fballsetupteamsL1loopend'
$modArr_AF_FBall_PlayerName[] = $modArr_AF_PlayerNameTemp[fballsetupteamsL1addplayerloopcount]
$modArr_AF_FBall_PlayerTeam[] = $modArr_AF_PlayerTeamTemp[fballsetupteamsL1addplayerloopcount]
modArr_AF_FBall_PlayerSkill[] = modArr_AF_PlayerSkillTemp[fballsetupteamsL1addplayerloopcount]
$modArr_AF_FBall_PlayerPosition[] = '' + iif(fballsetupteamsL1addplayerloopcount <= 2,'Forward','') + iif(fballsetupteamsL1addplayerloopcount > 2 and fballsetupteamsL1addplayerloopcount <= 7,'Midfielder','') + iif(fballsetupteamsL1addplayerloopcount > 7 and fballsetupteamsL1addplayerloopcount <= 12,'Defender','') + iif(fballsetupteamsL1addplayerloopcount > 12,'Keeper','')
fballsetupteamsL1addplayerloopcount += 1
if fballsetupteamsL1addplayerloopcount < arrsize('$modArr_AF_PlayerNameTemp') : jump 'fballsetupteamsL1addplayerloopstart'
fballsetupteamsscount += 1
jump 'fballsetupteamsL1loopstart'
:fballsetupteamsL1loopend
fballsetupteamsscount = 0
multilooperrorcount = 0
:fballsetupteamsL2loopstart
multilooperrorcount += 1
if multilooperrorcount > 1000 : $modArr_AF_MultiLoopErrorLoc[] = 'fballsetupteamsL2loop' & jump 'fballsetupteamsL2loopend'
if fballsetupteamsscount >= arrsize('$modArr_AF_FLeague2_TeamName') : jump'fballsetupteamsL2loopend'
gs 'mod_addedflavour_GameFunctions' , 'SetupTeam' , $modArr_AF_FLeague2_TeamName[fballsetupteamsscount] , 8 , 15 , 20 , 45
if arrpos('$modArr_AF_PlayerNameTemp','<<$pcs_firstname>> <<$pcs_lastname>>') >= 0 or arrpos('$modArr_AF_PlayerNameTemp','Zinaida Alkaev') >= 0 : jump 'fballsetupteamsL2loopstart'
fballsetupteamsL2addplayerloopcount = 0
:fballsetupteamsL2addplayerloopstart
multilooperrorcount += 1
if multilooperrorcount > 1000 : $modArr_AF_MultiLoopErrorLoc[] = 'fballsetupleaguesL2addplayerloop' & jump 'fballsetupteamsL2loopend'
$modArr_AF_FBall_PlayerName[] = $modArr_AF_PlayerNameTemp[fballsetupteamsL2addplayerloopcount]
$modArr_AF_FBall_PlayerTeam[] = $modArr_AF_PlayerTeamTemp[fballsetupteamsL2addplayerloopcount]
modArr_AF_FBall_PlayerSkill[] = modArr_AF_PlayerSkillTemp[fballsetupteamsL2addplayerloopcount]
$modArr_AF_FBall_PlayerPosition[] = 'Any'
fballsetupteamsL2addplayerloopcount += 1
if fballsetupteamsL2addplayerloopcount < arrsize('$modArr_AF_PlayerNameTemp') : jump 'fballsetupteamsL2addplayerloopstart'
fballsetupteamsscount += 1
jump 'fballsetupteamsL2loopstart'
:fballsetupteamsL2loopend
KILLVAR '$modArr_AF_PlayerNameTemp'
KILLVAR '$modArr_AF_PlayerTeamTemp'
KILLVAR 'modArr_AF_PlayerSkillTemp'
KILLVAR '$modArr_AF_FNamePool'
KILLVAR '$modArr_AF_LNamePool'
end
if $ARGS[0] = 'SetupMatches':
KILLVAR '$modArr_AF_FLeague1_MatchesA'
KILLVAR '$modArr_AF_FLeague1_MatchesB'
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[4]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[5]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[2]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[3]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[1]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[0]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[3]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[4]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[0]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[5]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[1]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[2]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[4]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[0]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[3]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[1]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[5]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[2]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[1]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[4]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[2]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[0]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[5]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[3]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[4]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[2]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[1]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[5]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[0]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[3]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[5]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[4]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[3]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[2]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[0]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[1]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[4]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[3]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[5]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[0]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[2]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[1]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[0]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[4]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[1]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[3]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[2]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[5]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[4]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[1]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[0]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[2]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[3]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[5]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[2]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[4]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[5]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[1]
$modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[3]
$modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[0]
KILLVAR '$modArr_AF_FLeague2_MatchesA'
KILLVAR '$modArr_AF_FLeague2_MatchesB'
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
$modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
$modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
end
if $ARGS[0] = 'SortRecords':
if $ARGS[1] = 'League' or $ARGS[1] = 'All':
:sortleague1sortstart
sortleaguessortcount = 0
sortleaguessortbubblecount = 0
:sortleague1sortbubblestart
if sortleaguessortbubblecount >= (arrsize('$modArr_AF_FLeague1_TeamName') - 1) : jump 'sortleague1sortbubbleend'
if (modArr_AF_FLeague1_Points[sortleaguessortbubblecount] < modArr_AF_FLeague1_Points[sortleaguessortbubblecount + 1]) or (modArr_AF_FLeague1_Points[sortleaguessortbubblecount] = modArr_AF_FLeague1_Points[sortleaguessortbubblecount + 1] and modArr_AF_FLeague1_GoalsFor[sortleaguessortbubblecount] < modArr_AF_FLeague1_GoalsFor[sortleaguessortbubblecount + 1]) or (modArr_AF_FLeague1_Points[sortleaguessortbubblecount] = modArr_AF_FLeague1_Points[sortleaguessortbubblecount + 1] and modArr_AF_FLeague1_GoalsFor[sortleaguessortbubblecount] = modArr_AF_FLeague1_GoalsFor[sortleaguessortbubblecount + 1] and modArr_AF_FLeague1_GoalsAgainst[sortleaguessortbubblecount] > modArr_AF_FLeague1_GoalsAgainst[sortleaguessortbubblecount + 1]):
$modVar_AF_TempStr = $modArr_AF_FLeague1_TeamName[sortleaguessortbubblecount]
modVar_AF_Temp = modArr_AF_FLeague1_Points[sortleaguessortbubblecount]
modVar_AF_Temp2 = modArr_AF_FLeague1_GoalsFor[sortleaguessortbubblecount]
modVar_AF_Temp3 = modArr_AF_FLeague1_GoalsAgainst[sortleaguessortbubblecount]
modVar_AF_Temp4 = modArr_AF_FLeague1_TeamSkill[sortleaguessortbubblecount]
$modArr_AF_FLeague1_TeamName[sortleaguessortbubblecount] = $modArr_AF_FLeague1_TeamName[sortleaguessortbubblecount + 1]
modArr_AF_FLeague1_Points[sortleaguessortbubblecount] = modArr_AF_FLeague1_Points[sortleaguessortbubblecount + 1]
modArr_AF_FLeague1_GoalsFor[sortleaguessortbubblecount] = modArr_AF_FLeague1_GoalsFor[sortleaguessortbubblecount + 1]
modArr_AF_FLeague1_GoalsAgainst[sortleaguessortbubblecount] = modArr_AF_FLeague1_GoalsAgainst[sortleaguessortbubblecount + 1]
modArr_AF_FLeague1_TeamSkill[sortleaguessortbubblecount] = modArr_AF_FLeague1_TeamSkill[sortleaguessortbubblecount + 1]
$modArr_AF_FLeague1_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr
modArr_AF_FLeague1_Points[sortleaguessortbubblecount + 1] = modVar_AF_Temp
modArr_AF_FLeague1_GoalsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2
modArr_AF_FLeague1_GoalsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3
modArr_AF_FLeague1_TeamSkill[sortleaguessortbubblecount + 1] = modVar_AF_Temp4
sortleaguessortcount += 1
end
sortleaguessortbubblecount += 1
jump 'sortleague1sortbubblestart'
:sortleague1sortbubbleend
if sortleaguessortcount > 0 : jump 'sortleague1sortstart'
:sortleague2sortstart
sortleaguessortcount = 0
sortleaguessortbubblecount = 0
:sortleague2sortbubblestart
if sortleaguessortbubblecount >= (arrsize('$modArr_AF_FLeague2_TeamName') - 1) : jump 'sortleague2sortbubbleend'
if (modArr_AF_FLeague2_Points[sortleaguessortbubblecount] < modArr_AF_FLeague2_Points[sortleaguessortbubblecount + 1]) or (modArr_AF_FLeague2_Points[sortleaguessortbubblecount] = modArr_AF_FLeague2_Points[sortleaguessortbubblecount + 1] and modArr_AF_FLeague2_GoalsFor[sortleaguessortbubblecount] < modArr_AF_FLeague2_GoalsFor[sortleaguessortbubblecount + 1]) or (modArr_AF_FLeague2_Points[sortleaguessortbubblecount] = modArr_AF_FLeague2_Points[sortleaguessortbubblecount + 1] and modArr_AF_FLeague2_GoalsFor[sortleaguessortbubblecount] = modArr_AF_FLeague2_GoalsFor[sortleaguessortbubblecount + 1] and modArr_AF_FLeague2_GoalsAgainst[sortleaguessortbubblecount] > modArr_AF_FLeague2_GoalsAgainst[sortleaguessortbubblecount + 1]):
$modVar_AF_TempStr = $modArr_AF_FLeague2_TeamName[sortleaguessortbubblecount]
modVar_AF_Temp = modArr_AF_FLeague2_Points[sortleaguessortbubblecount]
modVar_AF_Temp2 = modArr_AF_FLeague2_GoalsFor[sortleaguessortbubblecount]
modVar_AF_Temp3 = modArr_AF_FLeague2_GoalsAgainst[sortleaguessortbubblecount]
modVar_AF_Temp4 = modArr_AF_FLeague2_TeamSkill[sortleaguessortbubblecount]
$modArr_AF_FLeague2_TeamName[sortleaguessortbubblecount] = $modArr_AF_FLeague2_TeamName[sortleaguessortbubblecount + 1]
modArr_AF_FLeague2_Points[sortleaguessortbubblecount] = modArr_AF_FLeague2_Points[sortleaguessortbubblecount + 1]
modArr_AF_FLeague2_GoalsFor[sortleaguessortbubblecount] = modArr_AF_FLeague2_GoalsFor[sortleaguessortbubblecount + 1]
modArr_AF_FLeague2_GoalsAgainst[sortleaguessortbubblecount] = modArr_AF_FLeague2_GoalsAgainst[sortleaguessortbubblecount + 1]
modArr_AF_FLeague2_TeamSkill[sortleaguessortbubblecount] = modArr_AF_FLeague2_TeamSkill[sortleaguessortbubblecount + 1]
$modArr_AF_FLeague2_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr
modArr_AF_FLeague2_Points[sortleaguessortbubblecount + 1] = modVar_AF_Temp
modArr_AF_FLeague2_GoalsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2
modArr_AF_FLeague2_GoalsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3
modArr_AF_FLeague2_TeamSkill[sortleaguessortbubblecount + 1] = modVar_AF_Temp4
sortleaguessortcount += 1
end
sortleaguessortbubblecount += 1
jump 'sortleague2sortbubblestart'
:sortleague2sortbubbleend
if sortleaguessortcount > 0 : jump 'sortleague2sortstart'
end
if $ARGS[1] = 'Players' or $ARGS[1] = 'All':
modArr_AF_FBall_PlayerSkill[arrpos('$modArr_AF_FBall_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')] = pcs_ftbll
:sortplayerssortstart
sortplayerssortcount = 0
sortplayerssortbubblecount = 0
:sortplayerssortbubblestart
if sortplayerssortbubblecount >= arrsize('$modArr_AF_FBall_PlayerName') : jump 'sortplayerssortbubbleend'
if modArr_AF_FBall_PlayerSkill[sortplayerssortbubblecount] < modArr_AF_FBall_PlayerSkill[sortplayerssortbubblecount + 1]:
$modVar_AF_TempStr = $modArr_AF_FBall_PlayerName[sortplayerssortbubblecount]
$modArr_AF_FBall_PlayerName[sortplayerssortbubblecount] = $modArr_AF_FBall_PlayerName[sortplayerssortbubblecount + 1]
$modArr_AF_FBall_PlayerName[sortplayerssortbubblecount + 1] = $modVar_AF_TempStr
$modVar_AF_TempStr = $modArr_AF_FBall_PlayerTeam[sortplayerssortbubblecount]
$modArr_AF_FBall_PlayerTeam[sortplayerssortbubblecount] = $modArr_AF_FBall_PlayerTeam[sortplayerssortbubblecount + 1]
$modArr_AF_FBall_PlayerTeam[sortplayerssortbubblecount + 1] = $modVar_AF_TempStr
modVar_AF_Temp = modArr_AF_FBall_PlayerSkill[sortplayerssortbubblecount]
modArr_AF_FBall_PlayerSkill[sortplayerssortbubblecount] = modArr_AF_FBall_PlayerSkill[sortplayerssortbubblecount + 1]
modArr_AF_FBall_PlayerSkill[sortplayerssortbubblecount + 1] = modVar_AF_Temp
$modVar_AF_TempStr = $modArr_AF_FBall_PlayerPosition[sortplayerssortbubblecount]
$modArr_AF_FBall_PlayerPosition[sortplayerssortbubblecount] = $modArr_AF_FBall_PlayerPosition[sortplayerssortbubblecount + 1]
$modArr_AF_FBall_PlayerPosition[sortplayerssortbubblecount + 1] = $modVar_AF_TempStr
sortplayerssortcount += 1
end
sortplayerssortbubblecount += 1
jump 'sortplayerssortbubblestart'
:sortplayerssortbubbleend
if sortplayerssortcount > 0 : jump 'sortplayerssortstart'
end
if $ARGS[1] = 'Players' or $ARGS[1] = 'All':
KILLVAR 'modArr_AF_Temp'
updateteamskillloopcount = 0
:updateteamskillloopstart
if updateteamskillloopcount >= arrsize('modArr_AF_FBall_PlayerSkill') : jump 'updateteamskillloopend'
modArr_AF_Temp['<<$modArr_AF_FBall_PlayerTeam[updateteamskillloopcount]>>'] += modArr_AF_FBall_PlayerSkill[updateteamskillloopcount]
updateteamskillloopcount += 1
jump 'updateteamskillloopstart'
:updateteamskillloopend
modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName','Zenit Saint Petersburg')] = modArr_AF_Temp['Zenit Saint Petersburg'] / 15
modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName','Spartak Moscow')] = modArr_AF_Temp['Spartak Moscow'] / 15
modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName','Locomotiv Moscow')] = modArr_AF_Temp['Locomotiv Moscow'] / 15
modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName','CSKA Moscow')] = modArr_AF_Temp['CSKA Moscow'] / 15
modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName','Rubin Kazan')] = modArr_AF_Temp['Rubin Kazan'] / 15
modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName','FC Rostov')] = modArr_AF_Temp['FC Rostov'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Pavlovsk High')] = modArr_AF_Temp['Pavlovsk High'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Gatchina Modern')] = modArr_AF_Temp['Gatchina Modern'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Annino Institute')] = modArr_AF_Temp['Annino Institute'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Kolpino Academy')] = modArr_AF_Temp['Kolpino Academy'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Rakhya Tech')] = modArr_AF_Temp['Rakhya Tech'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Vsevolozhsk Institute')] = modArr_AF_Temp['Vsevolozhsk Institute'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Kirovsky Modern')] = modArr_AF_Temp['Kirovsky Modern'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Primorsky High')] = modArr_AF_Temp['Primorsky High'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Sestroretsk Institute')] = modArr_AF_Temp['Sestroretsk Institute'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Sertolovo Academy')] = modArr_AF_Temp['Sertolovo Academy'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Leskalovo Academy')] = modArr_AF_Temp['Leskalovo Academy'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Veliky Novgorod College')] = modArr_AF_Temp['Veliky Novgorod College'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Tikhvin Tech')] = modArr_AF_Temp['Tikhvin Tech'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Vyborg Modern')] = modArr_AF_Temp['Vyborg Modern'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Petrogradsky High')] = modArr_AF_Temp['Petrogradsky High'] / 15
modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Zelenogorsk College')] = modArr_AF_Temp['Zelenogorsk College'] / 15
end
end
if $ARGS[0] = 'FindGameweek':
if modVar_AF_FBall_GameYear = 2016 and year = 2017 and month = 8 : modVar_AF_FBall_GameYear = 2017 & gs 'mod_addedflavour_Football' , 'SetupLeagues' & gs 'mod_addedflavour_Football' , 'SetupMatches'
if month >= 9 and day > 0 : modVar_AF_FBall_Gameweek = 1
if month >= 9 and day > 7 : modVar_AF_FBall_Gameweek = 2
if month >= 9 and day > 14 : modVar_AF_FBall_Gameweek = 3
if month >= 9 and day > 21 : modVar_AF_FBall_Gameweek = 4
if month >= 10 and day > 0 : modVar_AF_FBall_Gameweek = 5
if month >= 10 and day > 7 : modVar_AF_FBall_Gameweek = 6
if month >= 10 and day > 14 : modVar_AF_FBall_Gameweek = 7
if month >= 10 and day > 21 : modVar_AF_FBall_Gameweek = 8
if month >= 11 and day > 0 : modVar_AF_FBall_Gameweek = 9
if month >= 11 and day > 7 : modVar_AF_FBall_Gameweek = 10
if month >= 11 and day > 14 : modVar_AF_FBall_Gameweek = 11
if month >= 11 and day > 21 : modVar_AF_FBall_Gameweek = 12
if year = modVar_AF_FBall_GameYear + 1 and month >= 1 and day > 0 : modVar_AF_FBall_Gameweek = 13
if year = modVar_AF_FBall_GameYear + 1 and month >= 1 and day > 7 : modVar_AF_FBall_Gameweek = 14
if year = modVar_AF_FBall_GameYear + 1 and month >= 1 and day > 14 : modVar_AF_FBall_Gameweek = 15
if year = modVar_AF_FBall_GameYear + 1 and month >= 1 and day > 21 : modVar_AF_FBall_Gameweek = 16
if year = modVar_AF_FBall_GameYear + 1 and month >= 2 and day > 0 : modVar_AF_FBall_Gameweek = 17
if year = modVar_AF_FBall_GameYear + 1 and month >= 2 and day > 7 : modVar_AF_FBall_Gameweek = 18
if year = modVar_AF_FBall_GameYear + 1 and month >= 2 and day > 14 : modVar_AF_FBall_Gameweek = 19
if year = modVar_AF_FBall_GameYear + 1 and month >= 2 and day > 21 : modVar_AF_FBall_Gameweek = 20
if year = modVar_AF_FBall_GameYear + 1 and month >= 3 and day > 0 : modVar_AF_FBall_Gameweek = 21
if year = modVar_AF_FBall_GameYear + 1 and month >= 3 and day > 7 : modVar_AF_FBall_Gameweek = 22
if year = modVar_AF_FBall_GameYear + 1 and month >= 3 and day > 14 : modVar_AF_FBall_Gameweek = 23
if year = modVar_AF_FBall_GameYear + 1 and month >= 3 and day > 21 : modVar_AF_FBall_Gameweek = 24
if year = modVar_AF_FBall_GameYear + 1 and month >= 4 and day > 0 : modVar_AF_FBall_Gameweek = 25
if year = modVar_AF_FBall_GameYear + 1 and month >= 4 and day > 7 : modVar_AF_FBall_Gameweek = 26
if year = modVar_AF_FBall_GameYear + 1 and month >= 4 and day > 14 : modVar_AF_FBall_Gameweek = 27
if year = modVar_AF_FBall_GameYear + 1 and month >= 4 and day > 21 : modVar_AF_FBall_Gameweek = 28
if year = modVar_AF_FBall_GameYear + 1 and month >= 5 and day > 0 : modVar_AF_FBall_Gameweek = 29
if year = modVar_AF_FBall_GameYear + 1 and month >= 5 and day > 7 : modVar_AF_FBall_Gameweek = 30
if year = modVar_AF_FBall_GameYear + 1 and month >= 5 and day > 14 : modVar_AF_FBall_Gameweek = 31
end
if $ARGS[0] = 'RunGameweek':
KILLVAR '$modArr_AF_LastGameDay'
modVar_AF_Temp3 = 31
:simgameweekloopstart
simgameweekloopcount = modVar_AF_FBall_GameweekPlayed
if simgameweekloopcount >= 31 : jump 'simgameweekloopend'
if simgameweekloopcount >= modVar_AF_FBall_Gameweek : jump 'simgameweekloopend'
if simgameweekloopcount = (modVar_AF_FBall_Gameweek - 1) and $ARGS[1] ! 'Run' : jump 'simgameweekloopend'
if simgameweekloopcount = 0 or simgameweekloopcount = 2 or simgameweekloopcount = 4 or simgameweekloopcount = 6 or simgameweekloopcount = 8 or simgameweekloopcount = 12 or simgameweekloopcount = 14 or simgameweekloopcount = 16 or simgameweekloopcount = 18 or simgameweekloopcount = 20:
if modVar_AF_EventProgress['Football'] = 3 and $ARGS[1] = 'Run' and ($modArr_AF_FLeague1_MatchesA[simgameweekloopcount * 3] = 'Zenit Saint Petersburg' or $modArr_AF_FLeague1_MatchesB[simgameweekloopcount * 3] = 'Zenit Saint Petersburg'):
modVar_AF_Temp3 = simgameweekloopcount * 3
else
gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague1_MatchesA[simgameweekloopcount * 3] , $modArr_AF_FLeague1_MatchesB[simgameweekloopcount * 3] , 1
end
if modVar_AF_EventProgress['Football'] = 3 and $ARGS[1] = 'Run' and ($modArr_AF_FLeague1_MatchesA[(simgameweekloopcount * 3) + 1] = 'Zenit Saint Petersburg' or $modArr_AF_FLeague1_MatchesB[(simgameweekloopcount * 3) + 1] = 'Zenit Saint Petersburg'):
modVar_AF_Temp3 = (simgameweekloopcount * 3) + 1
else
gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague1_MatchesA[(simgameweekloopcount * 3) + 1] , $modArr_AF_FLeague1_MatchesB[(simgameweekloopcount * 3) + 1] , 1
end
if modVar_AF_EventProgress['Football'] = 3 and $ARGS[1] = 'Run' and ($modArr_AF_FLeague1_MatchesA[(simgameweekloopcount * 3) + 2] = 'Zenit Saint Petersburg' or $modArr_AF_FLeague1_MatchesB[(simgameweekloopcount * 3) + 2] = 'Zenit Saint Petersburg'):
modVar_AF_Temp3 = (simgameweekloopcount * 3) + 2
else
gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague1_MatchesA[(simgameweekloopcount * 3) + 2] , $modArr_AF_FLeague1_MatchesB[(simgameweekloopcount * 3) + 2] , 1
end
end
if modVar_AF_EventProgress['Football'] = 2 and $ARGS[1] = 'Run' and ($modArr_AF_FLeague2_MatchesA[simgameweekloopcount * 8] = 'Pavlovsk High' or $modArr_AF_FLeague2_MatchesB[simgameweekloopcount * 8] = 'Pavlovsk High'):
modVar_AF_Temp3 = simgameweekloopcount * 8
else
gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[simgameweekloopcount * 8] , $modArr_AF_FLeague2_MatchesB[simgameweekloopcount * 8] , 2
end
if modVar_AF_EventProgress['Football'] = 2 and $ARGS[1] = 'Run' and ($modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 1] = 'Pavlovsk High' or $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 1] = 'Pavlovsk High'):
modVar_AF_Temp3 = (simgameweekloopcount * 8) + 1
else
gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 1] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 1] , 2
end
if modVar_AF_EventProgress['Football'] = 2 and $ARGS[1] = 'Run' and ($modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 2] = 'Pavlovsk High' or $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 2] = 'Pavlovsk High'):
modVar_AF_Temp3 = (simgameweekloopcount * 8) + 2
else
gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 2] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 2] , 2
end
if modVar_AF_EventProgress['Football'] = 2 and $ARGS[1] = 'Run' and ($modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 3] = 'Pavlovsk High' or $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 3] = 'Pavlovsk High'):
modVar_AF_Temp3 = (simgameweekloopcount * 8) + 3
else
gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 3] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 3] , 2
end
if modVar_AF_EventProgress['Football'] = 2 and $ARGS[1] = 'Run' and ($modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 4] = 'Pavlovsk High' or $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 4] = 'Pavlovsk High'):
modVar_AF_Temp3 = (simgameweekloopcount * 8) + 4
else
gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 4] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 4] , 2
end
if modVar_AF_EventProgress['Football'] = 2 and $ARGS[1] = 'Run' and ($modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 5] = 'Pavlovsk High' or $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 5] = 'Pavlovsk High'):
modVar_AF_Temp3 = (simgameweekloopcount * 8) + 5
else
gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 5] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 5] , 2
end
if modVar_AF_EventProgress['Football'] = 2 and $ARGS[1] = 'Run' and ($modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 6] = 'Pavlovsk High' or $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 6] = 'Pavlovsk High'):
modVar_AF_Temp3 = (simgameweekloopcount * 8) + 6
else
gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 6] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 6] , 2
end
if modVar_AF_EventProgress['Football'] = 2 and $ARGS[1] = 'Run' and ($modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 7] = 'Pavlovsk High' or $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 7] = 'Pavlovsk High'):
modVar_AF_Temp3 = (simgameweekloopcount * 8) + 7
else
gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 7] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 7] , 2
end
modVar_AF_FBall_GameweekPlayed += 1
if modVar_AF_Temp3 < 31 and modVar_AF_EventProgress['Football'] = 3:
gs 'mod_addedflavour_Football' , 'MatchSetup' , $modVar_AF_FBall_PosRequest , $modArr_AF_FLeague1_MatchesA[modVar_AF_Temp3] , $modArr_AF_FLeague1_MatchesB[modVar_AF_Temp3]
gt 'mod_addedflavour_Football' , 'MatchBuildup'
elseif modVar_AF_Temp3 < 31 and modVar_AF_EventProgress['Football'] = 2:
gs 'mod_addedflavour_Football' , 'MatchSetup' , $modVar_AF_FBall_PosRequest , $modArr_AF_FLeague2_MatchesA[modVar_AF_Temp3] , $modArr_AF_FLeague2_MatchesB[modVar_AF_Temp3]
gt 'mod_addedflavour_Football' , 'MatchBuildup'
end
jump 'simgameweekloopstart'
:simgameweekloopend
end
if $ARGS[0] = 'ChkMatch':
KILLVAR '$modVar_AF_TempStr'
if $ARGS[1] = 'League 1':
if $modArr_AF_FLeague1_MatchesA[modVar_AF_FBall_GameweekPlayed * 3] = 'Zenit Saint Petersburg' : $modVar_AF_TempStr = 'Home'
if $modArr_AF_FLeague1_MatchesA[(modVar_AF_FBall_GameweekPlayed * 3) + 1] = 'Zenit Saint Petersburg' : $modVar_AF_TempStr = 'Home'
if $modArr_AF_FLeague1_MatchesA[(modVar_AF_FBall_GameweekPlayed * 3) + 2] = 'Zenit Saint Petersburg' : $modVar_AF_TempStr = 'Home'
if $modArr_AF_FLeague1_MatchesB[modVar_AF_FBall_GameweekPlayed * 3] = 'Zenit Saint Petersburg' : $modVar_AF_TempStr = 'Away'
if $modArr_AF_FLeague1_MatchesB[(modVar_AF_FBall_GameweekPlayed * 3) + 1] = 'Zenit Saint Petersburg' : $modVar_AF_TempStr = 'Away'
if $modArr_AF_FLeague1_MatchesB[(modVar_AF_FBall_GameweekPlayed * 3) + 2] = 'Zenit Saint Petersburg' : $modVar_AF_TempStr = 'Away'
elseif $ARGS[1] = 'League 2':
if $modArr_AF_FLeague2_MatchesA[modVar_AF_FBall_GameweekPlayed * 8] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 1] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 2] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 3] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 4] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 5] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 6] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 7] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
if $modArr_AF_FLeague2_MatchesB[modVar_AF_FBall_GameweekPlayed * 8] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 1] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 2] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 3] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 4] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 5] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 6] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 7] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
if $modVar_AF_TempStr = 'Home' : $modVar_AF_FBall_TravelMessage = 'Get to the School Sports Field by 3pm.'
if $modVar_AF_TempStr = 'Away' and $modVar_AF_FBall_TravelMessage ! 'Leave with your Stepfather between 1pm and 2pm.' : $modVar_AF_FBall_TravelMessage = 'Get to the Train Station by 1pm.'
end
end
if $ARGS[0] = 'Advert':
*clr & cla
modVar_AF_EventProgress['Football'] = 1
if (year = 2017 and month > 5) or (year = 2018 and month <= 5):
modVar_AF_FBall_GameYear = 2017
else
modVar_AF_FBall_GameYear = 2016
end
gs 'mod_addedflavour_Football' , 'SetupLeagues'
gs 'mod_addedflavour_Football' , 'SetupMatches'
''
*nl
'This is a Poster advertising the Two-Tier Women''s Football Leagues in the Saint Petersburg Region. It looks like there is a Schools League for all the Secondary Schools in the Area' + iif(Storyline = 1,', including your''s,','') + ' and a league for University Teams affliated with Russian Premier League Teams. You think on whether you would like to join but whatever your decision you will certainly be more aware that this is going on!'
*nl
'In any case, applications are handled by their Educational Facilities and you can find the scores on your laptop.'
act 'Return' : gt $loc, $loc_arg
end
if $ARGS[0] = 'DisplayLeagues':
*clr & cla
if modVar_AF_FBall_GameYear = 2016 and year = 2017 and month = 8 : modVar_AF_FBall_GameYear = 2017 & gs 'mod_addedflavour_Football' , 'SetupLeagues' & gs 'mod_addedflavour_Football' , 'SetupMatches'
gs 'mod_addedflavour_Football' , 'FindGameweek'
gs 'mod_addedflavour_Football' , 'RunGameweek'
gs 'mod_addedflavour_Football' , 'SortRecords' , 'League'
KILLVAR '$modVar_AF_Row'
$modVar_AF_Row[] = 'Team Name | Points | Goals For | Goals Against |
'
if $ARGS[1] = 'League 1':
' University League '
*nl
simleaguedisplayloopcount = 0
:simleaguedisplay1loopstart
if simleaguedisplayloopcount >= arrsize('$modArr_AF_FLeague1_TeamName') : jump 'simleaguedisplay1loopend'
$modVar_AF_Row[] = '<<$modArr_AF_FLeague1_TeamName[simleaguedisplayloopcount]>> | <> | <> | <> |
'
simleaguedisplayloopcount += 1
jump 'simleaguedisplay1loopstart'
:simleaguedisplay1loopend
'<<$modVar_AF_Row[0]>><<$modVar_AF_Row[1]>><<$modVar_AF_Row[2]>><<$modVar_AF_Row[3]>><<$modVar_AF_Row[4]>><<$modVar_AF_Row[5]>><<$modVar_AF_Row[6]>>
'
elseif $ARGS[1] = 'League 2':
' School League '
*nl
simleaguedisplayloopcount = 0
:simleaguedisplay2loopstart
if simleaguedisplayloopcount >= arrsize('$modArr_AF_FLeague2_TeamName') : jump 'simleaguedisplay2loopend'
$modVar_AF_Row[] = '<<$modArr_AF_FLeague2_TeamName[simleaguedisplayloopcount]>> | <> | <> | <> |
'
simleaguedisplayloopcount += 1
jump 'simleaguedisplay2loopstart'
:simleaguedisplay2loopend
'<<$modVar_AF_Row[0]>><<$modVar_AF_Row[1]>><<$modVar_AF_Row[2]>><<$modVar_AF_Row[3]>><<$modVar_AF_Row[4]>><<$modVar_AF_Row[5]>><<$modVar_AF_Row[6]>><<$modVar_AF_Row[7]>><<$modVar_AF_Row[8]>><<$modVar_AF_Row[9]>><<$modVar_AF_Row[10]>><<$modVar_AF_Row[11]>><<$modVar_AF_Row[12]>><<$modVar_AF_Row[13]>><<$modVar_AF_Row[14]>><<$modVar_AF_Row[15]>><<$modVar_AF_Row[16]>>
'
end
act 'Go Back' : gt 'komp', 'start'
if modVar_AF_EventProgress['Football'] >= 2:
act 'View Teams' : gs 'mod_addedflavour_Football' , 'SortRecords' , 'Players' & gt 'mod_addedflavour_Football' , 'ViewTeams' , 1
end
end
if $ARGS[0] = 'ViewTeams':
*clr & cla
modVar_AF_Temp = ARGS[1]
if modVar_AF_Temp > 6 :
$modVar_AF_TempStr = $modArr_AF_FLeague2_TeamName[modVar_AF_Temp - 7]
else
$modVar_AF_TempStr = $modArr_AF_FLeague1_TeamName[modVar_AF_Temp - 1]
end
'' + iif(modVar_AF_Temp > 1,'','') + ' <<$modVar_AF_TempStr>> ' + iif(modVar_AF_Temp < 21,'','') + ''
*nl
viewteamplayersloopcount = 0
:viewteamplayersloopstart
if viewteamplayersloopcount >= arrsize('$modArr_AF_FBall_PlayerName') : jump 'viewteamplayersloopend'
if $modArr_AF_FBall_PlayerTeam[viewteamplayersloopcount] = $modVar_AF_TempStr : '<<$modArr_AF_FBall_PlayerName[viewteamplayersloopcount]>> (Rating : <>)' + iif($modArr_AF_FBall_PlayerPosition[viewteamplayersloopcount] ! 'Any',' - <<$modArr_AF_FBall_PlayerPosition[viewteamplayersloopcount]>>','')
viewteamplayersloopcount += 1
jump 'viewteamplayersloopstart'
:viewteamplayersloopend
act 'Go Back' : gt 'mod_addedflavour_Football', 'DisplayLeagues' , 'League 1'
end
if $ARGS[0] = 'Join-L1':
*clr & cla
''
*nl
if $ARGS[1] = '':
'"Hello Sir. I''ve come to find you to request to be part of the University Women''s Football Team."'
*nl
if ftbll_lvl >= 50 or (modVar_AF_EventProgress['Football'] = 2 and SchoolAtestat = 1):
if modVar_AF_EventProgress['Football'] ! 2 : gs 'mod_addedflavour_Football' , 'SetupPlayers'
'"So you want to join the Professionals. I''ve seen you play and I suppose you have what it takes. I''ll take you; so what position do you want to specialise in?"'
act 'Forward' : gt 'mod_addedflavour_Football' , 'Join-L1' , 'Forward'
act 'Midfielder' : gt 'mod_addedflavour_Football' , 'Join-L1' , 'Midfielder'
act 'Defender' : gt 'mod_addedflavour_Football' , 'Join-L1' , 'Defender'
else
'"I''ve seen you play, because I have seen everyone with an ounce of interest in this game play; and you are not someone who can play. Get better, then we can talk."'
act 'Return' : gt $loc, $loc_arg
end
else
gs 'mod_addedflavour_Football' , 'SortRecords' , 'Players'
gs 'mod_addedflavour_Football' , 'AddPlayer-L1' , '<<$pcs_firstname>> <<$pcs_lastname>>' , $ARGS[1]
modVar_AF_Temp = arrpos('$modArr_AF_FBall_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')
if modVar_AF_EventProgress['Football'] = 2 : $modArr_AF_FBall_PlayerName[modVar_AF_Temp] = 'Vtoroy Menya' & modArr_AF_FBall_PlayerSkill = rand(20,45)
gs 'mod_addedflavour_Football' , 'SortRecords' , 'Players'
modVar_AF_EventProgress['Football'] = 3
if $ARGS[1] = 'Forward' : '"Striker eh? No problem, been looking for someone to spice up the front."'
if $ARGS[1] = 'Midfielder' : '"Want to play through the middle then? Fantastic, been wanting to mould someone into a Playmaker."'
if $ARGS[1] = 'Defender' : '"Defender! Not too many people ask for that role that weren''t made for it. Still, can always use a good defender."'
*nl
'"Right; as for the games we play the first and third Sundays of the month, five games this year from September and five games next year from January. For Home games you will need to be here at the pitch by 7am for Strategy Training and for Away games you will beed to be here at the pitch by 7am so we can travel. Other than that you just need to keep training."'
*nl
'"Fantastic, you can trust me!"'
act 'Return' : gt $loc, $loc_arg
end
end
if $ARGS[0] = 'Join-L2':
*clr & cla
gs 'mod_addedflavour_A69_Functions' , 'config'
''
*nl
'"Hello Mr Nikolaevich! I would like to join up with the School Football Team."'
*nl
if ftbll_lvl >= 20:
modVar_AF_EventProgress['Football'] = 2
gs 'mod_addedflavour_Football' , 'SetupPlayers'
gs 'mod_addedflavour_Football' , 'AddPlayer-L2' , '<<$pcs_firstname>> <<$pcs_lastname>>'
gs 'mod_addedflavour_Football' , 'SortRecords' , 'Players'
'"Well of course <<$pcs_firstname>>, we''d be glad to have you aboard. I''ll just quickly go through the arrangements..."'
*nl
'"First things first, we play matches on the first three Sundays of the month from September through to May. Games are always set to Kick Off at 3pm and you will be expected to find your own transport to away games."'
*nl
'... I guess I will have to take the Train, or get a lift from someone...'
*nl
'"Home games however are played here so you just need to turn up on time, on time being at least an hour before kick off. If you are not present when the starts then it will play without you! Second thing; you will be expected to keep training to raise your skill level. The games are important but we are an amateur competition and its the Training that will raise your ability. Still, we let anyone play any position so just let me know if you where you want to play before the match otherwise I will assign you as I like."'
*nl
'"That all sounds good Mr Nikolaevich, I''m looking forward to it already!"'
*nl
'"Thats what I like to hear' + iif(volleysostav > 0,', oh and <<$pcs_firstname>>, while I am glad to see you take an interest in Football don''t forget to keep up with your Volleyball as well!','.') + '"'
else
'"I''m sorry <<$pcs_firstname>> but I have seen you play and you are just not up to scratch yet. But I have every faith in you so keep up with it, if you can get up to par then there will always be a place available to you."'
end
act 'Return' : gt $loc, $loc_arg
end
if $ARGS[0] = 'MatchStart':
*clr & cla
$modVar_AF_TempStr2 = $ARGS[1]
minut += 900 - ((hour * 60) + minut)
gs 'stat'
if $ARGS[1] = 'Locker':
modVar_AF_Rand = rand(10,30)
if modVar_AF_Rand <= 20 and modVar_AF_EventProgress['A142-Relationship'] >= 7:
''
*nl
'You arrive at the School Ground and move to get changed in the Locker Room. You see Zinaida already there, getting changed herself. She notices you arrive as well and smiles at having seen you. The pair of you leave together to meet up with the Coach.'
else
''
*nl
'You arrive at the School Ground with time to spare so quickly head in to the Locker Room to get changed with your Teammates. Within moments you are ready with your Coach ready to brief you.'
end
elseif $ARGS[1] = 'Train':
modVar_AF_Rand = rand(10,30)
if modVar_AF_Rand <= 20 and modVar_AF_EventProgress['A142-Relationship'] >= 7:
''
*nl
'As you are heading to the Train you spy Zinaida already waiting on the platform. You run up to her and greet her, hugging for being happy to see her. You spend the journey nattering and before you even realise the time you are at your destination.'
else
''
*nl
'You find yourself a place on the Train and set in for the Journey to your Away Match. Once you have arrived at your destination you head to the Pitch to start your Match Preparations.'
end
elseif $ARGS[1] = 'Stepfather':
''
*nl
'You and your Stepfather get setup in the Family Car and head off for your Away Game. The journey is well-spirited and you arrive in good time.'
elseif $ARGS[1] = 'Pitch':
gs 'mod_addedflavour_Football' , 'ChkMatch' , 'League 1'
pcs_energy += rand(45,55)
pcs_hydra += rand(70,90)
gs 'stat'
if $modVar_AF_TempStr = 'Home':
if ftbll_lvl <= 95 : ftbll_lvl += rand(1,5) & ftbll_lvlst = ftbll_lvl
$modVar_AF_FBall_TravelMessage = 'L1Home'
''
*nl
'You join up with the rest of your Team; doing drills and playing through routines, everything the coach has setup to prepare for your opponents. The time goes by quickly and before you realise it the game is upon you.'
elseif $modVar_AF_TempStr = 'Away':
$modVar_AF_FBall_TravelMessage = 'L1Away'
''
*nl
'With everyone arrived at the pitch you all get on a team bus and head to the airport. Every away game requires a plane to get you there in time but fortunately it is all covered by the university. With time to spare you are at your destination and being sent to their stadium.'
end
end
if modVar_AF_EventProgress['Football'] = 2:
*nl
'Optional - Pick your Position'
*nl
'(' + iif($modVar_AF_FBall_PosRequest = '','Random','<<$modVar_AF_FBall_PosRequest>>') + ')'
'[Forward][Midfielder][Defender][Random]'
end
act 'Start the Match' : gs 'mod_addedflavour_Football' , 'SortRecords' , 'Players' & gs 'mod_addedflavour_Football' , 'FindGameweek' & gt 'mod_addedflavour_Football' , 'RunGameweek' , 'Run'
end
if $ARGS[0] = 'MatchPost':
*clr & cla
'Today''s Matches'
listtodaysgamesloopcount = 0
:listtodaysgamesloopstart
if listtodaysgamesloopcount >= arrsize('$modArr_AF_LastGameDay') : jump 'listtodaysgamesloopend'
'<<$modArr_AF_LastGameDay[listtodaysgamesloopcount]>>'
listtodaysgamesloopcount += 1
jump 'listtodaysgamesloopstart'
:listtodaysgamesloopend
*nl
'Leaving the Match'
*nl
if $modVar_AF_FBall_TravelMessage = 'Get to the School Sports Field by 3pm.':
minut += rand(5,10)
'With the game over you get changed and head back out into Pavlovsk'
act 'Leave' : gt $loc, $loc_arg
elseif $modVar_AF_FBall_TravelMessage = 'Get to the Train Station by 1pm.':
minut += rand(120,150)
'Now that the Game has finished you start filing out with everyone else. Soon enough you get back to the Train Station and get yourself back to Pavlovsk.'
act 'Get back to Pavlovsk' : gt $loc, $loc_arg
elseif $modVar_AF_FBall_TravelMessage = 'Leave with your Stepfather between 1pm and 2pm.':
'With the game over you go and find your Stepfather in order to go home.'
*nl
'"You ready to head off? Let''s get going."'
if npc_sex['A28'] ! 0:
*nl
'"Say ' + iif(rand(1,2) = 1,'<<$pcs_nickname>>','<<$pcs_firstname>>') + ', you must be tired after the match, how about on the way home we stop off somewhere for some ' + iif(($modVar_AF_MatchPlayerTeam = 'A' and modVar_AF_MatchPointsA > modVar_AF_MatchPointsB) or ($modVar_AF_MatchPlayerTeam = 'B' and modVar_AF_MatchPointsB > modVar_AF_MatchPointsA),'congratulatory','conciliatory') + ' time together?'
act 'Go have some fun' : minut += rand(30,40) & gt 'mod_addedflavour_A28_Events' , 'A28-FootballEv-1'
act 'Let''s just get home' : minut += rand(60,75) & gt 'korrPar'
end
act 'Go home' : minut += rand(60,75) & gt 'korrPar'
elseif $modVar_AF_FBall_TravelMessage = 'L1Home':
minut += rand(15,20)
'With the game over you get a quick debriefing then get changed and head out of the University'
act 'Leave' : gt 'city_island'
elseif $modVar_AF_FBall_TravelMessage = 'L1Away':
minut += rand(300,360)
'You leave the stadium with the rest of your team and head back to the Airport. Soon you are back in the air and arriving in Saint Petersburg. After a huge amount of travelling you are deposited back at the University.'
act 'Leave' : gt 'city_island'
end
gs 'stat'
end
if $ARGS[0] = 'AddPlayer-L1':
addplayerloopcount = 0
:addplayerL1loopstart
if addplayerloopcount >= arrsize('$modArr_AF_FBall_PlayerTeam') : jump 'addplayerL1loopend'
if $modArr_AF_FBall_PlayerTeam[addplayerloopcount] = 'Zenit Saint Petersburg' and $modArr_AF_FBall_PlayerName[addplayerloopcount] ! '<<$pcs_firstname>> <<$pcs_lastname>>' and $modArr_AF_FBall_PlayerPosition[addplayerloopcount] = $ARGS[2] : modVar_AF_Temp = addplayerloopcount
addplayerloopcount += 1
jump 'addplayerL1loopstart'
:addplayerL1loopend
$modArr_AF_FBall_PlayerName[modVar_AF_Temp] = $ARGS[1]
modArr_AF_FBall_PlayerSkill[modVar_AF_Temp] = pcs_ftbll
end
if $ARGS[0] = 'AddPlayer-L2':
addplayerloopcount = 0
:addplayerL2loopstart
if addplayerloopcount >= arrsize('$modArr_AF_FBall_PlayerTeam') : jump 'addplayerL2loopend'
if $modArr_AF_FBall_PlayerTeam[addplayerloopcount] = 'Pavlovsk High' and $modArr_AF_FBall_PlayerName[addplayerloopcount] ! '<<$pcs_firstname>> <<$pcs_lastname>>': modVar_AF_Temp = addplayerloopcount
addplayerloopcount += 1
jump 'addplayerL2loopstart'
:addplayerL2loopend
$modArr_AF_FBall_PlayerName[modVar_AF_Temp] = $ARGS[1]
if $ARGS[1] = 'Zinaida Alkaev':
modArr_AF_FBall_PlayerSkill[modVar_AF_Temp] = rand(35,40)
else
modArr_AF_FBall_PlayerSkill[modVar_AF_Temp] = pcs_ftbll
end
end
if $ARGS[0] = 'Training':
*clr & cla
modVar_AF_Temp = 0
minut += rand(55,65)
if ftbll_lvl < 100 : ftbll_lvl += 1 & ftbll_lvlst = ftbll_lvl
if $loc = 'mod_addedflavour_city_upitch' and rand(1,difficulty) = 1 and modVar_AF_EventLock['A4-MeetEva'] ! daystart : modVar_AF_Temp = 1
gs 'stat'
''
*nl
'You join up with whoever is around and do some Training & Drills doing so to the best of your ability.'
if modVar_AF_Temp = 1:
act 'Finish up' : gt 'mod_addedflavour_A4_Events' , 'A4-MeetEvaEv-X1'
else
act 'Finish up' : gt $loc, $loc_arg
end
end
--- mod_addedflavour_Football ---------------------------------