mod_addedflavour_Football.qsrc 198 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732
  1. # mod_addedflavour_Football
  2. if $ARGS[0] = 'GameInterface':
  3. *clr & cla
  4. if sound ! 1 : PLAY 'mod/addedflavour/sound/FootballAmbient.mp3'
  5. '<center><font color="Blue"><b><<$modVar_AF_TeamA_PlayerTeam>></b></font> - <<modVar_AF_MatchPointsA>> -vs- <<modVar_AF_MatchPointsB>> - <font color="Red"><b><<$modVar_AF_TeamB_PlayerTeam>></b></font></center>'
  6. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/Shared/Football/<<$modVar_AF_MatchActionImage>>.jpg"><img style="<<$modVar_AF_ImageRestrictions>>' + iif(modVar_AF_MatchHalf = 2,' -webkit-transform: scaleY(-1);transform: scaleY(-1);','') + '" src="mod/addedflavour/images/Shared/Football/<<$modVar_AF_MatchBall>>.jpg"></center>'
  7. *nl
  8. modVar_AF_Rand = rand(1,3)
  9. if strpos($modVar_AF_MatchAction,'KickOff') = 0 : modVar_AF_MatchTime += modVar_AF_Rand & modVar_AF_MatchPlayerForceEvent -= (modVar_AF_Rand + rand(0,2))
  10. $modVar_AF_TempStr = '' + iif(modVar_AF_MatchTime >= 60,'01','00') + ':' + iif(modVar_AF_MatchTime >= 60,'<<modVar_AF_MatchTime - 60>>','<<modVar_AF_MatchTime>>')
  11. 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))
  12. '<center><b><<$modVar_AF_TempStr>></b></center>'
  13. if modVar_AF_MatchTime = 0 and modVar_AF_MatchHalf = 1:
  14. CLOSE ALL
  15. if sound ! 1 : PLAY 'mod/addedflavour/sound/RefWhistle.mp3'
  16. '<center><b>The Referee has blown to start the match</b></center>' & *nl
  17. elseif modVar_AF_MatchTime > 45 and modVar_AF_MatchHalf = 1 and strpos($modVar_AF_MatchAction,'Shoot') = 0:
  18. CLOSE ALL
  19. if sound ! 1 : PLAY 'mod/addedflavour/sound/RefWhistle.mp3'
  20. '<center><b>The Referee has blown the Whistle for Half-Time</b></center>' & *nl
  21. elseif modVar_AF_MatchTime > 90 and modVar_AF_MatchHalf = 2 and strpos($modVar_AF_MatchAction,'Shoot') = 0:
  22. CLOSE ALL
  23. if sound ! 1 : PLAY 'mod/addedflavour/sound/RefWhistle.mp3'
  24. '<center><b>The Referee has blown the Whistle for Full-Time</b></center>' & *nl
  25. end
  26. '<center><h3>Match Events:</h3></center>'
  27. '<center><b><<$modArr_AF_MatchEvents[0]>></b></center>'
  28. '<center><font color="Gray"><<$modArr_AF_MatchEvents[1]>></font></center>'
  29. '<center><font color="Gray"><<$modArr_AF_MatchEvents[2]>></font></center>'
  30. '<center><font color="Gray"><<$modArr_AF_MatchEvents[3]>></font></center>'
  31. act 'Next Action' : gs 'mod_addedflavour_Football' , 'GenerateNextEvent'
  32. end
  33. if $ARGS[0] = 'RequestImage':
  34. :requestimageredo
  35. if $ARGS[1] = 'KickOff' : $modVar_AF_TempStr = $ARGS[1] + '<<rand(1,3)>>'
  36. if $ARGS[1] = 'Lose' : $modVar_AF_TempStr = $ARGS[1] + '<<rand(1,2)>>'
  37. if $ARGS[1] = 'Play' : $modVar_AF_TempStr = $ARGS[1] + '<<rand(1,8)>>'
  38. if $ARGS[1] = 'Shoot' : $modVar_AF_TempStr = $ARGS[1] + '<<rand(1,3)>>'
  39. if $ARGS[1] = 'Win' : $modVar_AF_TempStr = $ARGS[1] + '<<rand(1,3)>>'
  40. if $ARGS[1] = 'Tackle' : $modVar_AF_TempStr = $ARGS[1] + '<<rand(1,3)>>'
  41. if $ARGS[1] = 'Save' : $modVar_AF_TempStr = $ARGS[1] + '<<rand(1,3)>>'
  42. if $ARGS[1] = 'Score' : $modVar_AF_TempStr = $ARGS[1] + '<<rand(1,3)>>'
  43. if $modVar_AF_TempStr = $modVar_AF_MatchActionImage : jump 'requestimageredo'
  44. $modVar_AF_MatchActionImage = $modVar_AF_TempStr
  45. end
  46. if $ARGS[0] = 'GenerateNextEvent':
  47. KILLVAR '$modVar_AF_MatchEventDetails'
  48. KILLVAR '$modArr_AF_MatchAIOptions'
  49. if modVar_AF_MatchTime > 45 and modVar_AF_MatchHalf = 1 and strpos($modVar_AF_MatchAction,'Shoot') = 0: gt 'mod_addedflavour_Football' , 'Half-Time'
  50. if modVar_AF_MatchTime > 90 and modVar_AF_MatchHalf = 2 and strpos($modVar_AF_MatchAction,'Shoot') = 0: gt 'mod_addedflavour_Football' , 'Full-Time'
  51. $modVar_AF_MatchEventDetails['Action'] = MID($modVar_AF_MatchAction,1,(strpos($modVar_AF_MatchAction,'-')) - 1)
  52. $modVar_AF_MatchEventDetails['Attacker'] = MID($modVar_AF_MatchAction,(strpos($modVar_AF_MatchAction,'-')) + 1,1)
  53. $modVar_AF_MatchEventDetails['Defender'] = MID($modVar_AF_MatchAction,(strpos($modVar_AF_MatchAction,'#')) + 1,1)
  54. if $modVar_AF_MatchEventDetails['Action'] = 'KickOff':
  55. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_MatchPressure = modVar_AF_TeamA_TeamSkill + modVar_AF_TeamB_TeamSkill
  56. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_MatchPressure = modVar_AF_TeamB_TeamSkill + modVar_AF_TeamA_TeamSkill
  57. $modArr_AF_MatchAIOptions[] = 'Pass to Team Member in Zone'
  58. $modArr_AF_MatchAIOptions[] = 'Pass to Team Member Backward'
  59. elseif $modVar_AF_MatchEventDetails['Action'] = 'Play':
  60. if $modVar_AF_MatchPlayerTeam = 'A' : modVar_AF_Temp = arrpos('$modVar_AF_TeamA_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')
  61. if $modVar_AF_MatchPlayerTeam = 'B' : modVar_AF_Temp = arrpos('$modVar_AF_TeamB_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')
  62. if $modVar_AF_MatchPlayerTeam = 'A' and $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Forward' and modVar_AF_MatchPlayerForceEvent <= 0 and $modVar_AF_MatchBall = 'Attack-Up' and (modVar_AF_MatchZones['A-LF'] = modVar_AF_Temp or modVar_AF_MatchZones['A-RF'] = modVar_AF_Temp) : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event1-A'
  63. if $modVar_AF_MatchPlayerTeam = 'A' and $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Midfielder' and modVar_AF_MatchPlayerForceEvent <= 0 and $modVar_AF_MatchBall = 'Midfield-Up' and (modVar_AF_MatchZones['A-LCM'] = modVar_AF_Temp or modVar_AF_MatchZones['A-RCM'] = modVar_AF_Temp or modVar_AF_MatchZones['A-LW'] = modVar_AF_Temp or modVar_AF_MatchZones['A-RW'] = modVar_AF_Temp) : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Midfield-Act1-Event1-A'
  64. if $modVar_AF_MatchPlayerTeam = 'A' and $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Defender' and modVar_AF_MatchPlayerForceEvent <= 0 and $modVar_AF_MatchBall = 'Attack-Down' and (modVar_AF_MatchZones['A-LCD'] = modVar_AF_Temp or modVar_AF_MatchZones['A-RCD'] = modVar_AF_Temp or modVar_AF_MatchZones['A-LB'] = modVar_AF_Temp or modVar_AF_MatchZones['A-RB'] = modVar_AF_Temp) : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Defend-Act1-Event1-A'
  65. if $modVar_AF_MatchPlayerTeam = 'B' and $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Forward' and modVar_AF_MatchPlayerForceEvent <= 0 and $modVar_AF_MatchBall = 'Attack-Down' and (modVar_AF_MatchZones['B-LF'] = modVar_AF_Temp or modVar_AF_MatchZones['B-RF'] = modVar_AF_Temp) : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event1-B'
  66. if $modVar_AF_MatchPlayerTeam = 'B' and $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Midfielder' and modVar_AF_MatchPlayerForceEvent <= 0 and $modVar_AF_MatchBall = 'Midfield-Down' and (modVar_AF_MatchZones['B-LCM'] = modVar_AF_Temp or modVar_AF_MatchZones['B-RCM'] = modVar_AF_Temp or modVar_AF_MatchZones['B-LW'] = modVar_AF_Temp or modVar_AF_MatchZones['B-RW'] = modVar_AF_Temp) : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Midfield-Act1-Event1-B'
  67. if $modVar_AF_MatchPlayerTeam = 'B' and $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Defender' and modVar_AF_MatchPlayerForceEvent <= 0 and $modVar_AF_MatchBall = 'Attack-Up' and (modVar_AF_MatchZones['B-LCD'] = modVar_AF_Temp or modVar_AF_MatchZones['B-RCD'] = modVar_AF_Temp or modVar_AF_MatchZones['B-LB'] = modVar_AF_Temp or modVar_AF_MatchZones['B-RB'] = modVar_AF_Temp) : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Defend-Act1-Event1-B'
  68. modVar_AF_Rand = rand(1,5)
  69. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_MatchPressure -= rand(modVar_AF_Rand,((modVar_AF_TeamA_TeamSkill + modVar_AF_TeamB_TeamSkill) / 10))
  70. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_MatchPressure -= rand(modVar_AF_Rand,((modVar_AF_TeamB_TeamSkill + modVar_AF_TeamA_TeamSkill) / 10))
  71. $modArr_AF_MatchAIOptions[] = 'Pass to Team Member in Zone'
  72. if strpos($modVar_AF_MatchBall,'Attack') = 0 : $modArr_AF_MatchAIOptions[] = 'Pass to Team Member Forward' & $modArr_AF_MatchAIOptions[] = 'Pass to Team Member Forward'
  73. if strpos($modVar_AF_MatchBall,'Defend') = 0 : $modArr_AF_MatchAIOptions[] = 'Pass to Team Member Backward'
  74. if strpos($modVar_AF_MatchBall,'Attack') = 0 : $modArr_AF_MatchAIOptions[] = 'Dribble Forward' & $modArr_AF_MatchAIOptions[] = 'Dribble Forward'
  75. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_Temp = modVar_AF_TeamA_TeamSkill
  76. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Temp = modVar_AF_TeamB_TeamSkill
  77. if strpos($modVar_AF_MatchBall,'Midfield') > 0 and rand(1,modVar_AF_MatchPressure) <= ((modVar_AF_Temp / 2) + ((modVar_AF_Temp / 2) / 2)) : $modArr_AF_MatchAIOptions[] = 'Shoot from Midfield'
  78. if strpos($modVar_AF_MatchBall,'Attack') > 0 and rand(1,modVar_AF_MatchPressure) <= modVar_AF_Temp : $modArr_AF_MatchAIOptions[] = 'Shoot from Attack' & $modArr_AF_MatchAIOptions[] = 'Shoot from Attack'
  79. elseif $modVar_AF_MatchEventDetails['Action'] = 'Shoot':
  80. $modArr_AF_MatchAIOptions[] = 'Reaction to Shot'
  81. elseif $modVar_AF_MatchEventDetails['Action'] = 'Tackle':
  82. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_MatchPressure = modVar_AF_TeamA_TeamSkill + modVar_AF_TeamB_TeamSkill
  83. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_MatchPressure = modVar_AF_TeamB_TeamSkill + modVar_AF_TeamA_TeamSkill
  84. $modArr_AF_MatchAIOptions[] = 'Pass to Team Member in Zone'
  85. if strpos($modVar_AF_MatchBall,'Attack') = 0 : $modArr_AF_MatchAIOptions[] = 'Pass to Team Member Forward'
  86. if strpos($modVar_AF_MatchBall,'Defend') = 0 : $modArr_AF_MatchAIOptions[] = 'Pass to Team Member Backward'
  87. if strpos($modVar_AF_MatchBall,'Attack') = 0 : $modArr_AF_MatchAIOptions[] = 'Dribble Forward'
  88. elseif $modVar_AF_MatchEventDetails['Action'] = 'Reset':
  89. $modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
  90. $modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
  91. $modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
  92. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  93. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> to Kick Off' & $modVar_AF_MatchBall = 'Midfield-Up'
  94. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> to Kick Off' & $modVar_AF_MatchBall = 'Midfield-Down'
  95. $modVar_AF_MatchAction = 'KickOff-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  96. gs 'mod_addedflavour_Football' , 'RequestImage' , 'KickOff'
  97. gt 'mod_addedflavour_Football' , 'GameInterface'
  98. elseif $modVar_AF_MatchEventDetails['Action'] = 'Save':
  99. $modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
  100. $modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
  101. $modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
  102. $modArr_AF_MatchAIOptions[] = 'Pass to Team Member Forward'
  103. $modArr_AF_MatchAIOptions[] = 'Pass to Team Member in Zone'
  104. end
  105. ! Performed Three Times to flush out Randomiser
  106. modVar_AF_Rand = rand(1,arrsize('$modArr_AF_MatchAIOptions')) - 1
  107. modVar_AF_Rand = rand(1,arrsize('$modArr_AF_MatchAIOptions')) - 1
  108. modVar_AF_Rand = rand(1,arrsize('$modArr_AF_MatchAIOptions')) - 1
  109. if $modArr_AF_MatchAIOptions[modVar_AF_Rand] = 'Pass to Team Member in Zone':
  110. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_Temp = modVar_AF_TeamA_TeamSkill
  111. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Temp = modVar_AF_TeamB_TeamSkill
  112. if modVar_AF_MatchPressure < modVar_AF_Temp:
  113. gs 'mod_addedflavour_Football' , 'GetPlayerCode'
  114. gs 'mod_addedflavour_Football' , 'TackleCode'
  115. end
  116. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  117. if strpos($modVar_AF_MatchBall,'Defend') > 0:
  118. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> are passing amongst their Defense'
  119. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> are passing amongst their Defense'
  120. elseif strpos($modVar_AF_MatchBall,'Midfield') > 0:
  121. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> are moving the ball around their Midfield'
  122. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> are moving the ball around their Midfield'
  123. elseif strpos($modVar_AF_MatchBall,'Attack') > 0:
  124. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> are looking for a Goal-Scoring Opportunity'
  125. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> are looking for a Goal-Scoring Opportunity'
  126. end
  127. $modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  128. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  129. gt 'mod_addedflavour_Football' , 'GameInterface'
  130. elseif $modArr_AF_MatchAIOptions[modVar_AF_Rand] = 'Pass to Team Member Backward':
  131. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_Temp = modVar_AF_TeamA_TeamSkill
  132. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Temp = modVar_AF_TeamB_TeamSkill
  133. if modVar_AF_MatchPressure < modVar_AF_Temp:
  134. gs 'mod_addedflavour_Football' , 'GetPlayerCode'
  135. gs 'mod_addedflavour_Football' , 'TackleCode'
  136. end
  137. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  138. if strpos($modVar_AF_MatchBall,'Midfield') > 0:
  139. $modVar_AF_MatchBall = 'Defend-' + MID($modVar_AF_MatchBall,strpos($modVar_AF_MatchBall,'-') + 1)
  140. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> have passed the ball back to their defense'
  141. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> have passed the ball back to their defense'
  142. elseif strpos($modVar_AF_MatchBall,'Attack') > 0:
  143. $modVar_AF_MatchBall = 'Midfield-' + MID($modVar_AF_MatchBall,strpos($modVar_AF_MatchBall,'-') + 1)
  144. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> have moved the ball back under pressure from their opponents'
  145. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> have moved the ball back under pressure from their opponents'
  146. end
  147. $modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  148. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  149. gt 'mod_addedflavour_Football' , 'GameInterface'
  150. elseif $modArr_AF_MatchAIOptions[modVar_AF_Rand] = 'Pass to Team Member Forward':
  151. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_Temp = modVar_AF_TeamA_TeamSkill
  152. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Temp = modVar_AF_TeamB_TeamSkill
  153. if modVar_AF_MatchPressure < modVar_AF_Temp:
  154. gs 'mod_addedflavour_Football' , 'GetPlayerCode'
  155. gs 'mod_addedflavour_Football' , 'TackleCode'
  156. end
  157. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  158. if strpos($modVar_AF_MatchBall,'Midfield') > 0:
  159. $modVar_AF_MatchBall = 'Attack-' + MID($modVar_AF_MatchBall,strpos($modVar_AF_MatchBall,'-') + 1)
  160. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> pass the ball into their Attacking Third'
  161. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> pass the ball into their Attacking Third'
  162. elseif strpos($modVar_AF_MatchBall,'Defend') > 0:
  163. $modVar_AF_MatchBall = 'Midfield-' + MID($modVar_AF_MatchBall,strpos($modVar_AF_MatchBall,'-') + 1)
  164. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> move the ball out of their Defense'
  165. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> move the ball out of their Defense'
  166. end
  167. $modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  168. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  169. gt 'mod_addedflavour_Football' , 'GameInterface'
  170. elseif $modArr_AF_MatchAIOptions[modVar_AF_Rand] = 'Dribble Forward':
  171. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_Temp = modVar_AF_TeamA_TeamSkill
  172. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Temp = modVar_AF_TeamB_TeamSkill
  173. if modVar_AF_MatchPressure < (modVar_AF_Temp + rand(-10,20)):
  174. gs 'mod_addedflavour_Football' , 'GetPlayerCode'
  175. gs 'mod_addedflavour_Football' , 'TackleCode'
  176. end
  177. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  178. gs 'mod_addedflavour_Football' , 'GetPlayerCode'
  179. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> surges forward with the ball'
  180. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> surges forward with the ball'
  181. if strpos($modVar_AF_MatchBall,'Midfield') > 0 : $modVar_AF_MatchBall = 'Attack-' + MID($modVar_AF_MatchBall,strpos($modVar_AF_MatchBall,'-') + 1)
  182. if strpos($modVar_AF_MatchBall,'Defend') > 0 : $modVar_AF_MatchBall = 'Midfield-' + MID($modVar_AF_MatchBall,strpos($modVar_AF_MatchBall,'-') + 1)
  183. $modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  184. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  185. gt 'mod_addedflavour_Football' , 'GameInterface'
  186. elseif $modArr_AF_MatchAIOptions[modVar_AF_Rand] = 'Shoot from Midfield':
  187. gs 'mod_addedflavour_Football' , 'GetPlayerCode'
  188. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  189. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modVar_AF_MatchShooter = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
  190. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modVar_AF_MatchShooter = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
  191. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SHOOT''s from distance!'
  192. $modVar_AF_MatchAction = 'Shoot-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  193. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Shoot'
  194. gt 'mod_addedflavour_Football' , 'GameInterface'
  195. elseif $modArr_AF_MatchAIOptions[modVar_AF_Rand] = 'Shoot from Attack':
  196. gs 'mod_addedflavour_Football' , 'GetPlayerCode'
  197. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  198. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modVar_AF_MatchShooter = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
  199. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modVar_AF_MatchShooter = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
  200. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SHOOT''s from inside the box!'
  201. $modVar_AF_MatchAction = 'Shoot-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  202. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Shoot'
  203. gt 'mod_addedflavour_Football' , 'GameInterface'
  204. elseif $modArr_AF_MatchAIOptions[modVar_AF_Rand] = 'Reaction to Shot':
  205. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  206. if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
  207. modVar_AF_Temp = modVar_AF_TeamA_PlayerSkill[arrpos('$modVar_AF_TeamA_PlayerName',$modVar_AF_MatchShooter)]
  208. if strpos($modVar_AF_MatchBall,'Midfield') > 0 : modVar_AF_Temp += rand(-10,5)
  209. modVar_AF_Temp2 = modVar_AF_MatchZones['B-KP']
  210. modVar_AF_Temp2 = modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]
  211. ! Performed Three Times to flush out Randomiser
  212. modVar_AF_Rand = rand(1,(modVar_AF_Temp + modVar_AF_Temp2))
  213. modVar_AF_Rand = rand(1,(modVar_AF_Temp + modVar_AF_Temp2))
  214. modVar_AF_Rand = rand(1,(modVar_AF_Temp + modVar_AF_Temp2))
  215. if modVar_AF_Rand <= modVar_AF_Temp:
  216. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SCORE''s'
  217. modVar_AF_Rand = rand(1,4)
  218. if modVar_AF_Rand = 1 : $modArr_AF_MatchEvents[0] += ' a beauty of a goal!!!'
  219. if modVar_AF_Rand = 2 : $modArr_AF_MatchEvents[0] += ' a world-beater!!!'
  220. if modVar_AF_Rand = 3 : $modArr_AF_MatchEvents[0] += ' a curler into the top corner!!!'
  221. if modVar_AF_Rand = 4 : $modArr_AF_MatchEvents[0] += ' a sublimly aimed power hit!!!'
  222. modVar_AF_MatchPointsA += 1
  223. $modVar_AF_TempStr = '' + iif(modVar_AF_MatchTime >= 60,'01','00') + ':' + iif(modVar_AF_MatchTime >= 60,'<<modVar_AF_MatchTime - 60>>','<<modVar_AF_MatchTime>>')
  224. 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))
  225. $modArr_AF_MatchScorers[] = '{<<$modVar_AF_TempStr>>} ' + $modVar_AF_MatchShooter + '-A'
  226. $modVar_AF_MatchAction = 'Reset-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  227. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Score'
  228. gt 'mod_addedflavour_Football' , 'GameInterface'
  229. else
  230. modVar_AF_Temp = modVar_AF_MatchZones['B-KP']
  231. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> SAVE''s the shot at goal!'
  232. $modVar_AF_MatchAction = 'Save-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  233. $modVar_AF_MatchBall = 'Defend-Down'
  234. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Save'
  235. gt 'mod_addedflavour_Football' , 'GameInterface'
  236. end
  237. elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
  238. modVar_AF_Temp = modVar_AF_TeamB_PlayerSkill[arrpos('$modVar_AF_TeamB_PlayerName',$modVar_AF_MatchShooter)]
  239. if strpos($modVar_AF_MatchBall,'Midfield') > 0 : modVar_AF_Temp += rand(-10,5)
  240. modVar_AF_Temp2 = modVar_AF_MatchZones['A-KP']
  241. modVar_AF_Temp2 = modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]
  242. ! Performed Three Times to flush out Randomiser
  243. modVar_AF_Rand = rand(1,(modVar_AF_Temp + modVar_AF_Temp2))
  244. modVar_AF_Rand = rand(1,(modVar_AF_Temp + modVar_AF_Temp2))
  245. modVar_AF_Rand = rand(1,(modVar_AF_Temp + modVar_AF_Temp2))
  246. if modVar_AF_Rand <= modVar_AF_Temp:
  247. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SCORE''s'
  248. modVar_AF_Rand = rand(1,4)
  249. if modVar_AF_Rand = 1 : $modArr_AF_MatchEvents[0] += ' a beauty of a goal!!!'
  250. if modVar_AF_Rand = 2 : $modArr_AF_MatchEvents[0] += ' a world-beater!!!'
  251. if modVar_AF_Rand = 3 : $modArr_AF_MatchEvents[0] += ' a curler into the top corner!!!'
  252. if modVar_AF_Rand = 4 : $modArr_AF_MatchEvents[0] += ' a sublimly aimed power hit!!!'
  253. modVar_AF_MatchPointsB += 1
  254. $modVar_AF_TempStr = '' + iif(modVar_AF_MatchTime >= 60,'01','00') + ':' + iif(modVar_AF_MatchTime >= 60,'<<modVar_AF_MatchTime - 60>>','<<modVar_AF_MatchTime>>')
  255. 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))
  256. $modArr_AF_MatchScorers[] = '{<<$modVar_AF_TempStr>>} ' + $modVar_AF_MatchShooter + '-B'
  257. $modVar_AF_MatchAction = 'Reset-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  258. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Score'
  259. gt 'mod_addedflavour_Football' , 'GameInterface'
  260. else
  261. modVar_AF_Temp = modVar_AF_MatchZones['A-KP']
  262. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> SAVE''s the shot at goal!'
  263. $modVar_AF_MatchAction = 'Save-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  264. $modVar_AF_MatchBall = 'Defend-Up'
  265. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Save'
  266. gt 'mod_addedflavour_Football' , 'GameInterface'
  267. end
  268. end
  269. end
  270. end
  271. if $ARGS[0] = 'GetPlayerCode':
  272. if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
  273. if strpos($modVar_AF_MatchBall,'Attack') > 0:
  274. modVar_AF_Rand = rand(1,2)
  275. if modVar_AF_Rand = 1 : modVar_AF_Temp = modVar_AF_MatchZones['A-LF']
  276. if modVar_AF_Rand = 2 : modVar_AF_Temp = modVar_AF_MatchZones['A-RF']
  277. modVar_AF_Rand = rand(1,4)
  278. if modVar_AF_Rand = 1 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-LB']
  279. if modVar_AF_Rand = 2 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-RB']
  280. if modVar_AF_Rand = 3 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-LCD']
  281. if modVar_AF_Rand = 4 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-RCD']
  282. elseif strpos($modVar_AF_MatchBall,'Midfield') > 0:
  283. modVar_AF_Rand = rand(1,4)
  284. if modVar_AF_Rand = 1 : modVar_AF_Temp = modVar_AF_MatchZones['A-LW']
  285. if modVar_AF_Rand = 2 : modVar_AF_Temp = modVar_AF_MatchZones['A-RW']
  286. if modVar_AF_Rand = 3 : modVar_AF_Temp = modVar_AF_MatchZones['A-LCM']
  287. if modVar_AF_Rand = 4 : modVar_AF_Temp = modVar_AF_MatchZones['A-RCM']
  288. modVar_AF_Rand = rand(1,4)
  289. if modVar_AF_Rand = 1 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-LW']
  290. if modVar_AF_Rand = 2 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-RW']
  291. if modVar_AF_Rand = 3 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-LCM']
  292. if modVar_AF_Rand = 4 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-RCM']
  293. elseif strpos($modVar_AF_MatchBall,'Defend') > 0:
  294. modVar_AF_Rand = rand(1,4)
  295. if modVar_AF_Rand = 1 : modVar_AF_Temp = modVar_AF_MatchZones['A-LB']
  296. if modVar_AF_Rand = 2 : modVar_AF_Temp = modVar_AF_MatchZones['A-RB']
  297. if modVar_AF_Rand = 3 : modVar_AF_Temp = modVar_AF_MatchZones['A-LCD']
  298. if modVar_AF_Rand = 4 : modVar_AF_Temp = modVar_AF_MatchZones['A-RCD']
  299. modVar_AF_Rand = rand(1,2)
  300. if modVar_AF_Rand = 1 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-LF']
  301. if modVar_AF_Rand = 2 : modVar_AF_Temp2 = modVar_AF_MatchZones['B-RF']
  302. end
  303. elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
  304. if strpos($modVar_AF_MatchBall,'Attack') > 0:
  305. modVar_AF_Rand = rand(1,2)
  306. if modVar_AF_Rand = 1 : modVar_AF_Temp = modVar_AF_MatchZones['B-LF']
  307. if modVar_AF_Rand = 2 : modVar_AF_Temp = modVar_AF_MatchZones['B-RF']
  308. modVar_AF_Rand = rand(1,4)
  309. if modVar_AF_Rand = 1 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-LB']
  310. if modVar_AF_Rand = 2 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-RB']
  311. if modVar_AF_Rand = 3 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-LCD']
  312. if modVar_AF_Rand = 4 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-RCD']
  313. elseif strpos($modVar_AF_MatchBall,'Midfield') > 0:
  314. modVar_AF_Rand = rand(1,4)
  315. if modVar_AF_Rand = 1 : modVar_AF_Temp = modVar_AF_MatchZones['B-LW']
  316. if modVar_AF_Rand = 2 : modVar_AF_Temp = modVar_AF_MatchZones['B-RW']
  317. if modVar_AF_Rand = 3 : modVar_AF_Temp = modVar_AF_MatchZones['B-LCM']
  318. if modVar_AF_Rand = 4 : modVar_AF_Temp = modVar_AF_MatchZones['B-RCM']
  319. modVar_AF_Rand = rand(1,4)
  320. if modVar_AF_Rand = 1 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-LW']
  321. if modVar_AF_Rand = 2 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-RW']
  322. if modVar_AF_Rand = 3 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-LCM']
  323. if modVar_AF_Rand = 4 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-RCM']
  324. elseif strpos($modVar_AF_MatchBall,'Defend') > 0:
  325. modVar_AF_Rand = rand(1,4)
  326. if modVar_AF_Rand = 1 : modVar_AF_Temp = modVar_AF_MatchZones['B-LB']
  327. if modVar_AF_Rand = 2 : modVar_AF_Temp = modVar_AF_MatchZones['B-RB']
  328. if modVar_AF_Rand = 3 : modVar_AF_Temp = modVar_AF_MatchZones['B-LCD']
  329. if modVar_AF_Rand = 4 : modVar_AF_Temp = modVar_AF_MatchZones['B-RCD']
  330. modVar_AF_Rand = rand(1,2)
  331. if modVar_AF_Rand = 1 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-LF']
  332. if modVar_AF_Rand = 2 : modVar_AF_Temp2 = modVar_AF_MatchZones['A-RF']
  333. end
  334. end
  335. end
  336. if $ARGS[0] = 'TackleCode':
  337. if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
  338. ! Performed Three Times to flush out Randomiser
  339. modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
  340. modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
  341. modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
  342. if modVar_AF_Rand > modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
  343. $modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
  344. $modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
  345. $modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
  346. if $modVar_AF_MatchBall = 'Midfield-Up':
  347. $modVar_AF_MatchBall = 'Midfield-Down'
  348. elseif $modVar_AF_MatchBall = 'Attack-Up':
  349. $modVar_AF_MatchBall = 'Defend-Down'
  350. elseif $modVar_AF_MatchBall = 'Defend-Up':
  351. $modVar_AF_MatchBall = 'Attack-Down'
  352. end
  353. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  354. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> gets TACKLED by <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>>'
  355. $modVar_AF_MatchAction = 'Tackle-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  356. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Tackle'
  357. gt 'mod_addedflavour_Football' , 'GameInterface'
  358. end
  359. elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
  360. ! Performed Three Times to flush out Randomiser
  361. modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
  362. modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
  363. modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
  364. if modVar_AF_Rand > modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
  365. $modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
  366. $modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
  367. $modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
  368. if $modVar_AF_MatchBall = 'Midfield-Down':
  369. $modVar_AF_MatchBall = 'Midfield-Up'
  370. elseif $modVar_AF_MatchBall = 'Attack-Down':
  371. $modVar_AF_MatchBall = 'Defend-Up'
  372. elseif $modVar_AF_MatchBall = 'Defend-Down':
  373. $modVar_AF_MatchBall = 'Attack-Up'
  374. end
  375. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  376. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> gets TACKLED by <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>>'
  377. $modVar_AF_MatchAction = 'Tackle-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  378. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Tackle'
  379. gt 'mod_addedflavour_Football' , 'GameInterface'
  380. end
  381. end
  382. end
  383. if $ARGS[0] = 'Half-Time':
  384. *clr & cla
  385. '<center><font color="Blue"><b><<$modVar_AF_TeamA_PlayerTeam>></b></font> - <<modVar_AF_MatchPointsA>> -vs- <<modVar_AF_MatchPointsB>> - <font color="Red"><b><<$modVar_AF_TeamB_PlayerTeam>></b></font></center>'
  386. *nl
  387. KILLVAR '$modVar_AF_Row'
  388. KILLVAR 'modVar_AF_FBall_SubTaken'
  389. gs 'mod_addedflavour_Football' , 'SubstitutionCode' , 'SUB1'
  390. gs 'mod_addedflavour_Football' , 'SubstitutionCode' , 'SUB2'
  391. gs 'mod_addedflavour_Football' , 'SubstitutionCode' , 'SUB3'
  392. '<center><table style="width: 100%;text-align: center;"><tr><td colspan=4><b>Substitutes</b></td></tr><tr><td colspan=2><b><<$modVar_AF_TeamA_PlayerTeam>></b></td><td colspan=2><b><<$modVar_AF_TeamB_PlayerTeam>></b></td></tr><<$modVar_AF_Row[0]>><<$modVar_AF_Row[1]>><<$modVar_AF_Row[2]>></table></center>'
  393. gs 'mod_addedflavour_Football' , 'RequestImage' , 'KickOff'
  394. $modVar_AF_MatchAction = 'KickOff-B#A'
  395. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> to Kick Off the 2nd Half'
  396. modVar_AF_MatchTime = 45
  397. $modVar_AF_MatchBall = 'Midfield-Down'
  398. modVar_AF_MatchHalf = 2
  399. act 'Start Second Half' : gt 'mod_addedflavour_Football' , 'GameInterface'
  400. end
  401. if $ARGS[0] = 'SubstitutionCode':
  402. $modVar_AF_TempStr = $ARGS[1]
  403. modVar_AF_Temp = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
  404. if $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Forward':
  405. if arrpos('$modVar_AF_FBall_SubTaken',0) ! -1:
  406. modVar_AF_Rand = 1
  407. elseif arrpos('$modVar_AF_FBall_SubTaken',1) ! -1:
  408. modVar_AF_Rand = 0
  409. else
  410. modVar_AF_Rand = rand(0,1)
  411. end
  412. modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
  413. $modVar_AF_TempStr2 = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> - <font color="Green">IN</font> {</td><td width=25% style="text-align: left;">} <font color="Red">OUT</font> - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>>'
  414. modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_Temp2
  415. modVar_AF_MatchZones[modVar_AF_Rand] = modVar_AF_Temp
  416. modVar_AF_FBall_SubTaken[] = modVar_AF_Rand
  417. elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Midfielder':
  418. :subcodeMidARedo
  419. modVar_AF_Rand = rand(2,5)
  420. if arrpos('$modVar_AF_FBall_SubTaken',2) ! -1 and modVar_AF_Rand = 2:
  421. jump 'subcodeMidARedo'
  422. elseif arrpos('$modVar_AF_FBall_SubTaken',3) ! -1 and modVar_AF_Rand = 3:
  423. jump 'subcodeMidARedo'
  424. elseif arrpos('$modVar_AF_FBall_SubTaken',4) ! -1 and modVar_AF_Rand = 4:
  425. jump 'subcodeMidARedo'
  426. elseif arrpos('$modVar_AF_FBall_SubTaken',5) ! -1 and modVar_AF_Rand = 5:
  427. jump 'subcodeMidARedo'
  428. end
  429. modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
  430. $modVar_AF_TempStr2 = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> - <font color="Green">IN</font> {</td><td width=25% style="text-align: left;">} <font color="Red">OUT</font> - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>>'
  431. modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_Temp2
  432. modVar_AF_MatchZones[modVar_AF_Rand] = modVar_AF_Temp
  433. modVar_AF_FBall_SubTaken[] = modVar_AF_Rand
  434. elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Defender':
  435. :subcodeDefARedo
  436. modVar_AF_Rand = rand(6,9)
  437. if arrpos('$modVar_AF_FBall_SubTaken',6) ! -1 and modVar_AF_Rand = 6:
  438. jump 'subcodeDefARedo'
  439. elseif arrpos('$modVar_AF_FBall_SubTaken',7) ! -1 and modVar_AF_Rand = 7:
  440. jump 'subcodeDefARedo'
  441. elseif arrpos('$modVar_AF_FBall_SubTaken',8) ! -1 and modVar_AF_Rand = 8:
  442. jump 'subcodeDefARedo'
  443. elseif arrpos('$modVar_AF_FBall_SubTaken',9) ! -1 and modVar_AF_Rand = 9:
  444. jump 'subcodeDefARedo'
  445. end
  446. modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
  447. $modVar_AF_TempStr2 = '<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> - <font color="Green">IN</font> {</td><td width=25% style="text-align: left;">} <font color="Red">OUT</font> - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>>'
  448. modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_Temp2
  449. modVar_AF_MatchZones[modVar_AF_Rand] = modVar_AF_Temp
  450. modVar_AF_FBall_SubTaken[] = modVar_AF_Rand
  451. end
  452. modVar_AF_Temp = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
  453. if $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Forward':
  454. if arrpos('$modVar_AF_FBall_SubTaken',15) ! -1:
  455. modVar_AF_Rand = 16
  456. elseif arrpos('$modVar_AF_FBall_SubTaken',16) ! -1:
  457. modVar_AF_Rand = 15
  458. else
  459. modVar_AF_Rand = rand(15,16)
  460. end
  461. modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
  462. $modVar_AF_TempStr2 += '</td><td width=25% style="text-align: right;"><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> - <font color="Green">IN</font> {</td><td width=25% style="text-align: left;">} <font color="Red">OUT</font> - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>>'
  463. modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_Temp2
  464. modVar_AF_MatchZones[modVar_AF_Rand] = modVar_AF_Temp
  465. modVar_AF_FBall_SubTaken[] = modVar_AF_Rand
  466. elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Midfielder':
  467. :subcodeMidBRedo
  468. modVar_AF_Rand = rand(17,20)
  469. if arrpos('$modVar_AF_FBall_SubTaken',17) ! -1 and modVar_AF_Rand = 17:
  470. jump 'subcodeMidBRedo'
  471. elseif arrpos('$modVar_AF_FBall_SubTaken',18) ! -1 and modVar_AF_Rand = 18:
  472. jump 'subcodeMidBRedo'
  473. elseif arrpos('$modVar_AF_FBall_SubTaken',19) ! -1 and modVar_AF_Rand = 19:
  474. jump 'subcodeMidBRedo'
  475. elseif arrpos('$modVar_AF_FBall_SubTaken',20) ! -1 and modVar_AF_Rand = 20:
  476. jump 'subcodeMidBRedo'
  477. end
  478. modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
  479. $modVar_AF_TempStr2 += '</td><td width=25% style="text-align: right;"><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> - <font color="Green">IN</font> {</td><td width=25% style="text-align: left;">} <font color="Red">OUT</font> - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>>'
  480. modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_Temp2
  481. modVar_AF_MatchZones[modVar_AF_Rand] = modVar_AF_Temp
  482. modVar_AF_FBall_SubTaken[] = modVar_AF_Rand
  483. elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Defender':
  484. :subcodeDefBRedo
  485. modVar_AF_Rand = rand(21,24)
  486. if arrpos('$modVar_AF_FBall_SubTaken',21) ! -1 and modVar_AF_Rand = 21:
  487. jump 'subcodeDefBRedo'
  488. elseif arrpos('$modVar_AF_FBall_SubTaken',22) ! -1 and modVar_AF_Rand = 22:
  489. jump 'subcodeDefBRedo'
  490. elseif arrpos('$modVar_AF_FBall_SubTaken',23) ! -1 and modVar_AF_Rand = 23:
  491. jump 'subcodeDefBRedo'
  492. elseif arrpos('$modVar_AF_FBall_SubTaken',24) ! -1 and modVar_AF_Rand = 24:
  493. jump 'subcodeDefBRedo'
  494. end
  495. modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
  496. $modVar_AF_TempStr2 += '</td><td width=25% style="text-align: right;"><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> - <font color="Green">IN</font> {</td><td width=25% style="text-align: left;">} <font color="Red">OUT</font> - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>>'
  497. modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_Temp2
  498. modVar_AF_MatchZones[modVar_AF_Rand] = modVar_AF_Temp
  499. modVar_AF_FBall_SubTaken[] = modVar_AF_Rand
  500. end
  501. $modVar_AF_Row[] = '<tr><td width=25% style="text-align: right;"><<$modVar_AF_TempStr2>></td></tr>'
  502. end
  503. if $ARGS[0] = 'SubstitutionCode2':
  504. $modVar_AF_TempStr = $ARGS[1]
  505. modVar_AF_Temp = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
  506. subcodelooperrorcount = 0
  507. :subcoderedoA
  508. subcodelooperrorcount += 1
  509. if subcodelooperrorcount >= 1000 : $modVar_AF_LoopErrorLoc = 'subcode (<<$modVar_AF_TempStr2>>)' & jump 'subcoderedoAskip'
  510. if $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Forward':
  511. modVar_AF_Rand = rand(1,2)
  512. if modVar_AF_Rand = 1:
  513. if strpos($modVar_AF_TempStr2,'#A-LF#') > 0 : jump 'subcoderedoA'
  514. modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
  515. modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-LF']
  516. modVar_AF_MatchZones['A-LF'] = modVar_AF_Temp2
  517. $modVar_AF_TempStr2 += '#A-LF#'
  518. elseif modVar_AF_Rand = 2:
  519. if strpos($modVar_AF_TempStr2,'#A-RF#') > 0 : jump 'subcoderedoA'
  520. modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
  521. modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-RF']
  522. modVar_AF_MatchZones['A-RF'] = modVar_AF_Temp2
  523. $modVar_AF_TempStr2 += '#A-RF#'
  524. end
  525. elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Midfielder':
  526. modVar_AF_Rand = rand(1,4)
  527. if modVar_AF_Rand = 1:
  528. if strpos($modVar_AF_TempStr2,'#A-LW#') > 0 : jump 'subcoderedoA'
  529. modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
  530. modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-LW']
  531. modVar_AF_MatchZones['A-LW'] = modVar_AF_Temp2
  532. $modVar_AF_TempStr2 += '#A-LW#'
  533. elseif modVar_AF_Rand = 2:
  534. if strpos($modVar_AF_TempStr2,'#A-RW#') > 0 : jump 'subcoderedoA'
  535. modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
  536. modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-RW']
  537. modVar_AF_MatchZones['A-RW'] = modVar_AF_Temp2
  538. $modVar_AF_TempStr2 += '#A-RW#'
  539. elseif modVar_AF_Rand = 3:
  540. if strpos($modVar_AF_TempStr2,'#A-LCM#') > 0 : jump 'subcoderedoA'
  541. modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
  542. modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-LCM']
  543. modVar_AF_MatchZones['A-LCM'] = modVar_AF_Temp2
  544. $modVar_AF_TempStr2 += '#A-LCM#'
  545. elseif modVar_AF_Rand = 4:
  546. if strpos($modVar_AF_TempStr2,'#A-RCM#') > 0 : jump 'subcoderedoA'
  547. modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
  548. modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-RCM']
  549. modVar_AF_MatchZones['A-RCM'] = modVar_AF_Temp2
  550. $modVar_AF_TempStr2 += '#A-RCM#'
  551. end
  552. elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Defender':
  553. modVar_AF_Rand = rand(1,4)
  554. if modVar_AF_Rand = 1:
  555. if strpos($modVar_AF_TempStr2,'#A-LB#') > 0 : jump 'subcoderedoA'
  556. modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
  557. modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-LB']
  558. modVar_AF_MatchZones['A-LB'] = modVar_AF_Temp2
  559. $modVar_AF_TempStr2 += '#A-LB#'
  560. elseif modVar_AF_Rand = 2:
  561. if strpos($modVar_AF_TempStr2,'#A-RB#') > 0 : jump 'subcoderedoA'
  562. modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
  563. modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-RB']
  564. modVar_AF_MatchZones['A-RB'] = modVar_AF_Temp2
  565. $modVar_AF_TempStr2 += '#A-RB#'
  566. elseif modVar_AF_Rand = 3:
  567. if strpos($modVar_AF_TempStr2,'#A-LCD#') > 0 : jump 'subcoderedoA'
  568. modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
  569. modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-LCD']
  570. modVar_AF_MatchZones['A-LCD'] = modVar_AF_Temp2
  571. $modVar_AF_TempStr2 += '#A-LCD#'
  572. elseif modVar_AF_Rand = 4:
  573. if strpos($modVar_AF_TempStr2,'#A-RCD#') > 0 : jump 'subcoderedoA'
  574. modVar_AF_Temp2 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
  575. modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['A-RCD']
  576. modVar_AF_MatchZones['A-RCD'] = modVar_AF_Temp2
  577. $modVar_AF_TempStr2 += '#A-RCD#'
  578. end
  579. end
  580. :subcoderedoAskip
  581. $modVar_AF_TempStr = $ARGS[1]
  582. modVar_AF_Temp = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
  583. :subcoderedoB
  584. subcodelooperrorcount += 1
  585. if subcodelooperrorcount >= 1000 : $modVar_AF_LoopErrorLoc = 'subcode (<<$modVar_AF_TempStr2>>)' & jump 'subcoderedoBskip'
  586. if $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Forward':
  587. modVar_AF_Rand = rand(1,2)
  588. if modVar_AF_Rand = 1:
  589. if strpos($modVar_AF_TempStr2,'#B-LF#') > 0 : jump 'subcoderedoB'
  590. modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
  591. modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-LF']
  592. modVar_AF_MatchZones['B-LF'] = modVar_AF_Temp3
  593. $modVar_AF_TempStr2 += '#B-LF#'
  594. elseif modVar_AF_Rand = 2:
  595. if strpos($modVar_AF_TempStr2,'#B-RF#') > 0 : jump 'subcoderedoB'
  596. modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
  597. modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-RF']
  598. modVar_AF_MatchZones['B-RF'] = modVar_AF_Temp3
  599. $modVar_AF_TempStr2 += '#B-RF#'
  600. end
  601. elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Midfielder':
  602. modVar_AF_Rand = rand(1,4)
  603. if modVar_AF_Rand = 1:
  604. if strpos($modVar_AF_TempStr2,'#B-LW#') > 0 : jump 'subcoderedoB'
  605. modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
  606. modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-LW']
  607. modVar_AF_MatchZones['B-LW'] = modVar_AF_Temp3
  608. $modVar_AF_TempStr2 += '#B-LW#'
  609. elseif modVar_AF_Rand = 2:
  610. if strpos($modVar_AF_TempStr2,'#B-RW#') > 0 : jump 'subcoderedoB'
  611. modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
  612. modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-RW']
  613. modVar_AF_MatchZones['B-RW'] = modVar_AF_Temp3
  614. $modVar_AF_TempStr2 += '#B-RW#'
  615. elseif modVar_AF_Rand = 3:
  616. if strpos($modVar_AF_TempStr2,'#B-LCM#') > 0 : jump 'subcoderedoB'
  617. modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
  618. modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-LCM']
  619. modVar_AF_MatchZones['B-LCM'] = modVar_AF_Temp3
  620. $modVar_AF_TempStr2 += '#B-LCM#'
  621. elseif modVar_AF_Rand = 4:
  622. if strpos($modVar_AF_TempStr2,'#B-RCM#') > 0 : jump 'subcoderedoB'
  623. modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
  624. modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-RCM']
  625. modVar_AF_MatchZones['B-RCM'] = modVar_AF_Temp3
  626. $modVar_AF_TempStr2 += '#B-RCM#'
  627. end
  628. elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Defender':
  629. modVar_AF_Rand = rand(1,4)
  630. if modVar_AF_Rand = 1:
  631. if strpos($modVar_AF_TempStr2,'#B-LB#') > 0 : jump 'subcoderedoB'
  632. modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
  633. modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-LB']
  634. modVar_AF_MatchZones['B-LB'] = modVar_AF_Temp3
  635. $modVar_AF_TempStr2 += '#B-LB#'
  636. elseif modVar_AF_Rand = 2:
  637. if strpos($modVar_AF_TempStr2,'#B-RB#') > 0 : jump 'subcoderedoB'
  638. modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
  639. modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-RB']
  640. modVar_AF_MatchZones['B-RB'] = modVar_AF_Temp3
  641. $modVar_AF_TempStr2 += '#B-RB#'
  642. elseif modVar_AF_Rand = 3:
  643. if strpos($modVar_AF_TempStr2,'#B-LCD#') > 0 : jump 'subcoderedoB'
  644. modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
  645. modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-LCD']
  646. modVar_AF_MatchZones['B-LCD'] = modVar_AF_Temp3
  647. $modVar_AF_TempStr2 += '#B-LCD#'
  648. elseif modVar_AF_Rand = 4:
  649. if strpos($modVar_AF_TempStr2,'#B-RCD#') > 0 : jump 'subcoderedoB'
  650. modVar_AF_Temp3 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
  651. modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>'] = modVar_AF_MatchZones['B-RCD']
  652. modVar_AF_MatchZones['B-RCD'] = modVar_AF_Temp3
  653. $modVar_AF_TempStr2 += '#B-RCD#'
  654. end
  655. end
  656. :subcoderedoBskip
  657. modVar_AF_Temp4 = modVar_AF_MatchZones['A-<<$modVar_AF_TempStr>>']
  658. modVar_AF_Temp5 = modVar_AF_MatchZones['B-<<$modVar_AF_TempStr>>']
  659. $modVar_AF_Row[] = '<tr><td width=25% style="text-align: right;"><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>> - <font color="Green">IN</font> {</td><td width=25% style="text-align: left;">} <font color="Red">OUT</font> - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp4]>></td><td width=25% style="text-align: right;"><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp3]>> - <font color="Green">IN</font> {</td><td width=25% style="text-align: left;">} <font color="Red">OUT</font> - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp5]>></td></tr>'
  660. end
  661. if $ARGS[0] = 'Full-Time':
  662. *clr & cla
  663. minut += (90 + rand(5,10))
  664. '<center><font color="Blue"><b><<$modVar_AF_TeamA_PlayerTeam>></b></font> - <<modVar_AF_MatchPointsA>> -vs- <<modVar_AF_MatchPointsB>> - <font color="Red"><b><<$modVar_AF_TeamB_PlayerTeam>></b></font></center>'
  665. if $modVar_AF_MatchPlayerTeam = 'A':
  666. if modVar_AF_MatchPointsA > modVar_AF_MatchPointsB:
  667. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Win'
  668. 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
  669. else
  670. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Lose'
  671. end
  672. elseif $modVar_AF_MatchPlayerTeam = 'B':
  673. if modVar_AF_MatchPointsB > modVar_AF_MatchPointsA:
  674. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Win'
  675. 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
  676. else
  677. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Lose'
  678. end
  679. end
  680. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/Shared/Football/<<$modVar_AF_MatchActionImage>>.jpg"><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/Shared/Football/<<$modVar_AF_MatchBall>>.jpg"></center>'
  681. *nl
  682. if modVar_AF_MatchPointsA > modVar_AF_MatchPointsB:
  683. '<center><b><<$modVar_AF_TeamA_PlayerTeam>> Wins the Match</b></center>'
  684. elseif modVar_AF_MatchPointsB > modVar_AF_MatchPointsA:
  685. '<center><b><<$modVar_AF_TeamB_PlayerTeam>> Wins the Match</b></center>'
  686. else
  687. '<center><b>The Match is a Draw</b></center>'
  688. end
  689. *nl
  690. matchscorersloopcount = 0
  691. :matchscorersloopstart
  692. if matchscorersloopcount >= arrsize('$modArr_AF_MatchScorers') : jump 'matchscorersloopend'
  693. if MID($modArr_AF_MatchScorers[matchscorersloopcount],strpos($modArr_AF_MatchScorers[matchscorersloopcount],'-')) = '-A':
  694. $modVar_AF_TempStr = MID($modArr_AF_MatchScorers[matchscorersloopcount],1,strpos($modArr_AF_MatchScorers[matchscorersloopcount],'-') - 1)
  695. '<center><font color="Green">GOAL</font> - <<$modVar_AF_TempStr>> (<b><<$modVar_AF_TeamA_PlayerTeam>></b>)</center>'
  696. elseif MID($modArr_AF_MatchScorers[matchscorersloopcount],strpos($modArr_AF_MatchScorers[matchscorersloopcount],'-')) = '-B':
  697. $modVar_AF_TempStr = MID($modArr_AF_MatchScorers[matchscorersloopcount],1,strpos($modArr_AF_MatchScorers[matchscorersloopcount],'-') - 1)
  698. '<center><font color="Green">GOAL</font> - <<$modVar_AF_TempStr>> (<b><<$modVar_AF_TeamB_PlayerTeam>></b>)</center>'
  699. end
  700. matchscorersloopcount += 1
  701. jump 'matchscorersloopstart'
  702. :matchscorersloopend
  703. modVar_AF_Temp = modVar_AF_EventProgress['Football']
  704. if modVar_AF_Temp = 3 : modVar_AF_Temp = 1
  705. gs 'mod_addedflavour_Football' , 'UpdateLeagues' , $modVar_AF_TeamA_PlayerTeam , $modVar_AF_TeamB_PlayerTeam , modVar_AF_Temp
  706. $modArr_AF_LastGameDay[] = '<<$modVar_AF_TeamA_PlayerTeam>> <b><<modVar_AF_MatchPointsA>> - <<modVar_AF_MatchPointsB>></b> <<$modVar_AF_TeamB_PlayerTeam>>'
  707. act 'Finish Up' : gt 'mod_addedflavour_Football' , 'MatchPost'
  708. end
  709. if $ARGS[0] = 'PlayerEvent':
  710. *clr & cla
  711. modVar_AF_MatchPlayerForceEvent = 35
  712. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/Shared/Football/<<$ARGS[1]>>.png"></center>'
  713. *nl
  714. if $ARGS[1] = 'Defend-Act1-Event1-<<$modVar_AF_MatchPlayerTeam>>':
  715. '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.'
  716. *nl
  717. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Defend-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>'' ">Option 1</a> : Get in for a Standing Tackle'
  718. act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Defend-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>'
  719. elseif $ARGS[1] = 'Defend-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>':
  720. gs 'mod_addedflavour_Football' , 'GetPlayerCode'
  721. modVar_AF_Temp2 = arrpos('$modVar_AF_Team<<$modVar_AF_MatchPlayerTeam>>_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')
  722. if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
  723. modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
  724. if modVar_AF_Rand >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
  725. $modVar_AF_TempStr = 'Success'
  726. else
  727. $modVar_AF_TempStr = 'Failure'
  728. end
  729. elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
  730. modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
  731. if modVar_AF_Rand >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
  732. $modVar_AF_TempStr = 'Success'
  733. else
  734. $modVar_AF_TempStr = 'Failure'
  735. end
  736. end
  737. if $modVar_AF_TempStr = 'Success':
  738. '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.'
  739. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  740. $modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
  741. $modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
  742. $modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
  743. if $modVar_AF_MatchBall = 'Attack-Up':
  744. $modVar_AF_MatchBall = 'Midfield-Down'
  745. elseif $modVar_AF_MatchBall = 'Attack-Down':
  746. $modVar_AF_MatchBall = 'Midfield-Up'
  747. end
  748. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_MatchPressure = modVar_AF_TeamA_TeamSkill + modVar_AF_TeamB_TeamSkill
  749. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_MatchPressure = modVar_AF_TeamB_TeamSkill + modVar_AF_TeamA_TeamSkill
  750. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> move the ball out of their Defense'
  751. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> move the ball out of their Defense'
  752. $modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  753. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  754. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  755. elseif $modVar_AF_TempStr = 'Failure':
  756. '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.'
  757. *nl
  758. 'What do you do?'
  759. *nl
  760. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Defend-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>'' ">Option 1</a> : Block the Inside and force a pass to the Winger'
  761. act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Defend-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>'
  762. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Defend-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>'' ">Option 2</a> : Crowd her out and force her to pass backwards'
  763. act 'Option 2' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Defend-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>'
  764. end
  765. elseif $ARGS[1] = 'Defend-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
  766. '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.'
  767. *nl
  768. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Defend-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>'' , ''Result'' ">Option 1</a> : Get in for a Standing Tackle'
  769. act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Defend-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
  770. elseif $ARGS[1] = 'Defend-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
  771. gs 'mod_addedflavour_Football' , 'GetPlayerCode'
  772. modVar_AF_Temp3 = arrpos('$modVar_AF_Team<<$modVar_AF_MatchPlayerTeam>>_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')
  773. if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
  774. 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]))
  775. if modVar_AF_Rand > modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
  776. $modVar_AF_TempStr = 'Success'
  777. else
  778. $modVar_AF_TempStr = 'Failure'
  779. end
  780. elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
  781. 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]))
  782. if modVar_AF_Rand > modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
  783. $modVar_AF_TempStr = 'Success'
  784. else
  785. $modVar_AF_TempStr = 'Failure'
  786. end
  787. end
  788. modVar_AF_Rand = rand(2,3)
  789. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Rand += 15
  790. modVar_AF_Temp = modVar_AF_MatchZones[modVar_AF_Rand]
  791. if $modVar_AF_TempStr = 'Success':
  792. '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.'
  793. $modVar_AF_MatchBall = 'Midfield-' + MID($modVar_AF_MatchBall,strpos($modVar_AF_MatchBall,'-') + 1)
  794. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  795. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> have moved the ball back under pressure from their opponents'
  796. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> have moved the ball back under pressure from their opponents'
  797. $modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  798. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  799. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  800. elseif $modVar_AF_TempStr = 'Failure':
  801. '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.'
  802. gs 'mod_addedflavour_Football' , 'GetPlayerCode'
  803. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modVar_AF_MatchShooter = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
  804. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modVar_AF_MatchShooter = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
  805. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  806. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SHOOT''s from inside the box!'
  807. $modVar_AF_MatchAction = 'Shoot-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  808. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Shoot'
  809. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  810. end
  811. elseif $ARGS[1] = 'Defend-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
  812. '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.'
  813. *nl
  814. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Defend-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>'' , ''Result'' ">Option 1</a> : Watch it play out'
  815. act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Defend-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
  816. elseif $ARGS[1] = 'Defend-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
  817. gs 'mod_addedflavour_Football' , 'GetPlayerCode'
  818. if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
  819. 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]))
  820. if modVar_AF_Rand > modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
  821. $modVar_AF_TempStr = 'Success'
  822. else
  823. $modVar_AF_TempStr = 'Failure'
  824. end
  825. elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
  826. 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]))
  827. if modVar_AF_Rand > modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
  828. $modVar_AF_TempStr = 'Success'
  829. else
  830. $modVar_AF_TempStr = 'Failure'
  831. end
  832. end
  833. if $modVar_AF_TempStr = 'Success':
  834. '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!'
  835. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  836. $modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
  837. $modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
  838. $modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
  839. if $modVar_AF_MatchBall = 'Attack-Up':
  840. $modVar_AF_MatchBall = 'Midfield-Down'
  841. elseif $modVar_AF_MatchBall = 'Attack-Down':
  842. $modVar_AF_MatchBall = 'Midfield-Up'
  843. end
  844. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_MatchPressure = modVar_AF_TeamA_TeamSkill + modVar_AF_TeamB_TeamSkill
  845. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_MatchPressure = modVar_AF_TeamB_TeamSkill + modVar_AF_TeamA_TeamSkill
  846. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> move the ball out of their Defense'
  847. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> move the ball out of their Defense'
  848. $modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  849. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  850. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  851. elseif $modVar_AF_TempStr = 'Failure':
  852. '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.'
  853. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  854. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> are looking for a Goal-Scoring Opportunity'
  855. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> are looking for a Goal-Scoring Opportunity'
  856. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  857. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  858. end
  859. elseif $ARGS[1] = 'Midfield-Act1-Event1-<<$modVar_AF_MatchPlayerTeam>>':
  860. '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.'
  861. *nl
  862. 'What do you do?'
  863. *nl
  864. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Midfield-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>'' ">Option 1</a> : Try and head towards the wing'
  865. act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Midfield-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>'
  866. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Midfield-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>'' ">Option 2</a> : Get your teammates to create a gap'
  867. act 'Option 2' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Midfield-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>'
  868. elseif $ARGS[1] = 'Midfield-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
  869. '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?'
  870. *nl
  871. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Midfield-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>'' , ''Result'' ">Option 1</a> : Switch the play'
  872. act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Midfield-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
  873. elseif $ARGS[1] = 'Midfield-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
  874. gs 'mod_addedflavour_Football' , 'GetPlayerCode'
  875. modVar_AF_Temp = arrpos('$modVar_AF_Team<<$modVar_AF_MatchPlayerTeam>>_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')
  876. if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
  877. modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
  878. if modVar_AF_Rand <= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
  879. $modVar_AF_TempStr = 'Success'
  880. else
  881. $modVar_AF_TempStr = 'Failure'
  882. end
  883. elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
  884. modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
  885. if modVar_AF_Rand <= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
  886. $modVar_AF_TempStr = 'Success'
  887. else
  888. $modVar_AF_TempStr = 'Failure'
  889. end
  890. end
  891. if $modVar_AF_TempStr = 'Success':
  892. '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.'
  893. $modVar_AF_MatchBall = 'Attack-' + MID($modVar_AF_MatchBall,strpos($modVar_AF_MatchBall,'-') + 1)
  894. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  895. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> pass the ball into their Attacking Third'
  896. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> pass the ball into their Attacking Third'
  897. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  898. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  899. elseif $modVar_AF_TempStr = 'Failure':
  900. modVar_AF_Rand = rand(4,5)
  901. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Rand += 15
  902. modVar_AF_Temp = modVar_AF_MatchZones[modVar_AF_Rand]
  903. '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.'
  904. if $modVar_AF_MatchBall = 'Midfield-Up':
  905. $modVar_AF_MatchBall = 'Midfield-Down'
  906. else
  907. $modVar_AF_MatchBall = 'Midfield-Up'
  908. end
  909. $modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
  910. $modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
  911. $modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
  912. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  913. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> are moving the ball around their Midfield'
  914. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> are moving the ball around their Midfield'
  915. $modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  916. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  917. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  918. end
  919. elseif $ARGS[1] = 'Midfield-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
  920. '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.'
  921. *nl
  922. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Midfield-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>'' , ''Result'' ">Option 1</a> : Try to get passed their Defender'
  923. act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Midfield-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
  924. elseif $ARGS[1] = 'Midfield-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
  925. modVar_AF_Rand = rand(6,7)
  926. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_Rand += 15
  927. modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
  928. modVar_AF_Temp = arrpos('$modVar_AF_Team<<$modVar_AF_MatchPlayerTeam>>_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')
  929. if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
  930. modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
  931. if modVar_AF_Rand <= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
  932. $modVar_AF_TempStr = 'Success'
  933. else
  934. $modVar_AF_TempStr = 'Failure'
  935. end
  936. elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
  937. modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
  938. if modVar_AF_Rand <= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
  939. $modVar_AF_TempStr = 'Success'
  940. else
  941. $modVar_AF_TempStr = 'Failure'
  942. end
  943. end
  944. if $modVar_AF_TempStr = 'Success':
  945. '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!'
  946. $modVar_AF_MatchBall = 'Attack-' + MID($modVar_AF_MatchBall,strpos($modVar_AF_MatchBall,'-') + 1)
  947. gs 'mod_addedflavour_Football' , 'GetPlayerCode'
  948. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modVar_AF_MatchShooter = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
  949. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modVar_AF_MatchShooter = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
  950. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  951. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SHOOT''s from inside the box!'
  952. $modVar_AF_MatchAction = 'Shoot-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  953. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Shoot'
  954. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  955. elseif $modVar_AF_TempStr = 'Failure':
  956. '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.'
  957. if $modVar_AF_MatchBall = 'Midfield-Up':
  958. $modVar_AF_MatchBall = 'Attack-Down'
  959. else
  960. $modVar_AF_MatchBall = 'Attack-Up'
  961. end
  962. $modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
  963. $modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
  964. $modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
  965. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  966. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> pass the ball into their Attacking Third'
  967. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> pass the ball into their Attacking Third'
  968. $modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  969. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  970. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  971. end
  972. elseif $ARGS[1] = 'Forward-Act1-Event1-<<$modVar_AF_MatchPlayerTeam>>':
  973. '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.'
  974. *nl
  975. 'What do you do?'
  976. *nl
  977. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Forward-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>'' ">Option 1</a> : Pass to your Winger'
  978. act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>'
  979. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Forward-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>'' ">Option 2</a> : Charge Forward'
  980. act 'Option 2' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>'
  981. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Forward-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>'' ">Option 3</a> : Pass and pull back'
  982. act 'Option 3' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>'
  983. elseif $ARGS[1] = 'Forward-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
  984. '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.'
  985. *nl
  986. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Forward-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>'' , ''Result'' ">Option 1</a> : Position yourself to receive the Cross'
  987. act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
  988. elseif $ARGS[1] = 'Forward-Act1-Event2-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
  989. modVar_AF_Rand = rand(2,3)
  990. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Rand += 15
  991. modVar_AF_Temp = modVar_AF_MatchZones[modVar_AF_Rand]
  992. modVar_AF_Rand = rand(6,9)
  993. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : modVar_AF_Rand += 15
  994. modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
  995. if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
  996. modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
  997. if modVar_AF_Rand <= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
  998. $modVar_AF_TempStr = 'Success'
  999. else
  1000. $modVar_AF_TempStr = 'Failure'
  1001. end
  1002. elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
  1003. modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
  1004. if modVar_AF_Rand <= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
  1005. $modVar_AF_TempStr = 'Success'
  1006. else
  1007. $modVar_AF_TempStr = 'Failure'
  1008. end
  1009. end
  1010. if $modVar_AF_TempStr = 'Success':
  1011. '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.'
  1012. $modVar_AF_MatchShooter = '<<$pcs_firstname>> <<$pcs_lastname>>'
  1013. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  1014. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SHOOT''s from inside the box!'
  1015. $modVar_AF_MatchAction = 'Shoot-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  1016. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Shoot'
  1017. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  1018. elseif $modVar_AF_TempStr = 'Failure':
  1019. '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.'
  1020. if $modVar_AF_MatchBall = 'Attack-Up':
  1021. $modVar_AF_MatchBall = 'Midfield-Down'
  1022. else
  1023. $modVar_AF_MatchBall = 'Midfield-Up'
  1024. end
  1025. $modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
  1026. $modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
  1027. $modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
  1028. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  1029. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> move the ball out of their Defense'
  1030. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> move the ball out of their Defense'
  1031. $modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  1032. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  1033. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  1034. end
  1035. elseif $ARGS[1] = 'Forward-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
  1036. '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.'
  1037. *nl
  1038. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Forward-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>'' , ''Result'' ">Option 1</a> : Try to make the Pass'
  1039. act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
  1040. elseif $ARGS[1] = 'Forward-Act1-Event3-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
  1041. modVar_AF_Temp = modVar_AF_MatchZones[21]
  1042. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Temp = modVar_AF_MatchZones[6]
  1043. modVar_AF_Temp2 = modVar_AF_MatchZones[22]
  1044. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Temp2 = modVar_AF_MatchZones[7]
  1045. if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
  1046. 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)))
  1047. if modVar_AF_Rand <= modVar_AF_TeamA_PlayerSkill[arrpos('$modVar_AF_TeamA_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')]:
  1048. $modVar_AF_TempStr = 'Success'
  1049. else
  1050. $modVar_AF_TempStr = 'Failure'
  1051. end
  1052. elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
  1053. 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)))
  1054. if modVar_AF_Rand <= modVar_AF_TeamB_PlayerSkill[arrpos('$modVar_AF_TeamB_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')]:
  1055. $modVar_AF_TempStr = 'Success'
  1056. else
  1057. $modVar_AF_TempStr = 'Failure'
  1058. end
  1059. end
  1060. if $modVar_AF_TempStr = 'Success':
  1061. '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.'
  1062. if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
  1063. modVar_AF_Temp = modVar_AF_MatchZones['A-LF']
  1064. if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : modVar_AF_Temp = modVar_AF_MatchZones['A-RF']
  1065. elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
  1066. modVar_AF_Temp = modVar_AF_MatchZones['B-LF']
  1067. if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : modVar_AF_Temp = modVar_AF_MatchZones['B-RF']
  1068. end
  1069. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modVar_AF_MatchShooter = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
  1070. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modVar_AF_MatchShooter = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
  1071. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  1072. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SHOOT''s from inside the box!'
  1073. $modVar_AF_MatchAction = 'Shoot-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  1074. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Shoot'
  1075. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  1076. elseif $modVar_AF_TempStr = 'Failure':
  1077. '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.'
  1078. if $modVar_AF_MatchBall = 'Attack-Up':
  1079. $modVar_AF_MatchBall = 'Defend-Down'
  1080. else
  1081. $modVar_AF_MatchBall = 'Defend-Up'
  1082. end
  1083. $modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
  1084. $modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
  1085. $modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
  1086. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  1087. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> are passing amongst their Defense'
  1088. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> are passing amongst their Defense'
  1089. $modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  1090. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  1091. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  1092. end
  1093. elseif $ARGS[1] = 'Forward-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = '':
  1094. '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!'
  1095. *nl
  1096. '<a href="exec: gt ''mod_addedflavour_Football'' , ''PlayerEvent'' , ''Forward-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>'' , ''Result'' ">Option 1</a> : Look for the Pass'
  1097. act 'Option 1' : gt 'mod_addedflavour_Football' , 'PlayerEvent' , 'Forward-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>' , 'Result'
  1098. elseif $ARGS[1] = 'Forward-Act1-Event4-<<$modVar_AF_MatchPlayerTeam>>' and $ARGS[2] = 'Result':
  1099. modVar_AF_Rand = rand(2,3)
  1100. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : modVar_AF_Rand += 15
  1101. modVar_AF_Temp = modVar_AF_MatchZones[modVar_AF_Rand]
  1102. modVar_AF_Rand = rand(6,7)
  1103. if $modVar_AF_MatchEventDetails['Defender'] = 'B' : modVar_AF_Rand += 15
  1104. modVar_AF_Temp2 = modVar_AF_MatchZones[modVar_AF_Rand]
  1105. if $modVar_AF_MatchEventDetails['Attacker'] = 'A':
  1106. modVar_AF_Rand = rand(1,(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]))
  1107. if modVar_AF_Rand <= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]:
  1108. $modVar_AF_TempStr = 'Success'
  1109. else
  1110. $modVar_AF_TempStr = 'Failure'
  1111. end
  1112. elseif $modVar_AF_MatchEventDetails['Attacker'] = 'B':
  1113. modVar_AF_Rand = rand(1,(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] + modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]))
  1114. if modVar_AF_Rand <= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]:
  1115. $modVar_AF_TempStr = 'Success'
  1116. else
  1117. $modVar_AF_TempStr = 'Failure'
  1118. end
  1119. end
  1120. if $modVar_AF_TempStr = 'Success':
  1121. '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!'
  1122. $modVar_AF_MatchShooter = '<<$pcs_firstname>> <<$pcs_lastname>>'
  1123. if $modVar_AF_MatchBall = 'Attack-Up':
  1124. $modVar_AF_MatchBall = 'Midfield-Up'
  1125. else
  1126. $modVar_AF_MatchBall = 'Midfield-Down'
  1127. end
  1128. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  1129. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_MatchShooter>> SHOOT''s from distance!'
  1130. $modVar_AF_MatchAction = 'Shoot-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  1131. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Shoot'
  1132. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  1133. elseif $modVar_AF_TempStr = 'Failure':
  1134. '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.'
  1135. if $modVar_AF_MatchBall = 'Attack-Up':
  1136. $modVar_AF_MatchBall = 'Midfield-Down'
  1137. else
  1138. $modVar_AF_MatchBall = 'Midfield-Up'
  1139. end
  1140. $modVar_AF_TempStr = $modVar_AF_MatchEventDetails['Attacker']
  1141. $modVar_AF_MatchEventDetails['Attacker'] = $modVar_AF_MatchEventDetails['Defender']
  1142. $modVar_AF_MatchEventDetails['Defender'] = $modVar_AF_TempStr
  1143. $modArr_AF_MatchEvents[3] = $modArr_AF_MatchEvents[2] & $modArr_AF_MatchEvents[2] = $modArr_AF_MatchEvents[1] & $modArr_AF_MatchEvents[1] = $modArr_AF_MatchEvents[0]
  1144. if $modVar_AF_MatchEventDetails['Attacker'] = 'A' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> move the ball out of their Defense'
  1145. if $modVar_AF_MatchEventDetails['Attacker'] = 'B' : $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamB_PlayerTeam>> move the ball out of their Defense'
  1146. $modVar_AF_MatchAction = 'Play-' + $modVar_AF_MatchEventDetails['Attacker'] + '#' + $modVar_AF_MatchEventDetails['Defender']
  1147. gs 'mod_addedflavour_Football' , 'RequestImage' , 'Play'
  1148. act 'Continue the Game' : gt 'mod_addedflavour_Football' , 'GameInterface'
  1149. end
  1150. end
  1151. end
  1152. if $ARGS[0] = 'MatchSetup':
  1153. !$Arg 1 = PosDemand; Arg 2 = Team A; Arg 3 = Team B
  1154. KILLVAR '$modVar_AF_TeamA_PlayerName'
  1155. KILLVAR '$modVar_AF_TeamA_PlayerTeam'
  1156. KILLVAR 'modVar_AF_TeamA_PlayerSkill'
  1157. KILLVAR 'modVar_AF_TeamA_TeamSkill'
  1158. KILLVAR '$modVar_AF_TeamB_PlayerName'
  1159. KILLVAR '$modVar_AF_TeamB_PlayerTeam'
  1160. KILLVAR 'modVar_AF_TeamB_PlayerSkill'
  1161. KILLVAR 'modVar_AF_TeamB_TeamSkill'
  1162. KILLVAR 'modVar_AF_MatchPointsA'
  1163. KILLVAR 'modVar_AF_MatchPointsB'
  1164. KILLVAR '$modArr_AF_MatchScorers'
  1165. KILLVAR 'modVar_AF_MatchZones'
  1166. KILLVAR '$modVar_AF_MatchAction'
  1167. KILLVAR '$modVar_AF_MatchActionImage'
  1168. KILLVAR '$modVar_AF_MatchBall'
  1169. KILLVAR '$modArr_AF_MatchEvents'
  1170. KILLVAR '$modArr_AF_MatchEventDetails'
  1171. KILLVAR '$modArr_AF_MatchAIOptions'
  1172. KILLVAR 'modVar_AF_MatchHalf'
  1173. KILLVAR '$modVar_AF_FBall_PosRequest'
  1174. $modVar_AF_TeamA_PlayerTeam = $ARGS[2]
  1175. $modVar_AF_TeamB_PlayerTeam = $ARGS[3]
  1176. if arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TeamA_PlayerTeam) ! -1:
  1177. modVar_AF_TeamA_TeamSkill = modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TeamA_PlayerTeam)]
  1178. modVar_AF_TeamB_TeamSkill = modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TeamB_PlayerTeam)]
  1179. else
  1180. modVar_AF_TeamA_TeamSkill = modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TeamA_PlayerTeam)]
  1181. modVar_AF_TeamB_TeamSkill = modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TeamB_PlayerTeam)]
  1182. end
  1183. 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
  1184. 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
  1185. if modVar_AF_EventProgress['Football'] = 2 and $modVar_AF_TeamA_PlayerTeam = 'Pavlovsk High' : $modVar_AF_MatchPlayerTeam = 'A'
  1186. if modVar_AF_EventProgress['Football'] = 2 and $modVar_AF_TeamB_PlayerTeam = 'Pavlovsk High' : $modVar_AF_MatchPlayerTeam = 'B'
  1187. if modVar_AF_EventProgress['Football'] = 3 and $modVar_AF_TeamA_PlayerTeam = 'Zenit Saint Petersburg' : $modVar_AF_MatchPlayerTeam = 'A'
  1188. if modVar_AF_EventProgress['Football'] = 3 and $modVar_AF_TeamB_PlayerTeam = 'Zenit Saint Petersburg' : $modVar_AF_MatchPlayerTeam = 'B'
  1189. KILLVAR '$modArr_AF_Rand'
  1190. $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'
  1191. if $modVar_AF_MatchPlayerTeam = 'A' and $ARGS[1] ! '' : KILLVAR '$modArr_AF_Rand' , arrpos('$modArr_AF_Rand',$ARGS[1])
  1192. matchsetuploopcount = 0
  1193. :matchsetuploopstart
  1194. if matchsetuploopcount >= arrsize('$modArr_AF_FBall_PlayerName') : jump 'matchsetuploopend'
  1195. if $modArr_AF_FBall_PlayerTeam[matchsetuploopcount] = $modVar_AF_TeamA_PlayerTeam:
  1196. $modVar_AF_TeamA_PlayerName[] = $modArr_AF_FBall_PlayerName[matchsetuploopcount]
  1197. modVar_AF_TeamA_PlayerSkill[] = modArr_AF_FBall_PlayerSkill[matchsetuploopcount]
  1198. $modVar_AF_TeamA_PlayerPosition[] = $modArr_AF_FBall_PlayerPosition[matchsetuploopcount]
  1199. elseif $modArr_AF_FBall_PlayerTeam[matchsetuploopcount] = $modVar_AF_TeamB_PlayerTeam:
  1200. $modVar_AF_TeamB_PlayerName[] = $modArr_AF_FBall_PlayerName[matchsetuploopcount]
  1201. modVar_AF_TeamB_PlayerSkill[] = modArr_AF_FBall_PlayerSkill[matchsetuploopcount]
  1202. $modVar_AF_TeamB_PlayerPosition[] = $modArr_AF_FBall_PlayerPosition[matchsetuploopcount]
  1203. end
  1204. matchsetuploopcount += 1
  1205. jump 'matchsetuploopstart'
  1206. :matchsetuploopend
  1207. playerpositionloopcount = 0
  1208. :playerpositionloopstart
  1209. if playerpositionloopcount >= 30 : jump 'playerpositionloopend'
  1210. if playerpositionloopcount < 15:
  1211. modVar_AF_Temp = playerpositionloopcount
  1212. if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' and $ARGS[1] ! '':
  1213. $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = $ARGS[1]
  1214. elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Any':
  1215. if modVar_AF_Temp = 13 or modVar_AF_Temp = 14:
  1216. $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Keeper'
  1217. else
  1218. modVar_AF_Rand = rand(1,arrsize('$modArr_AF_Rand')) - 1
  1219. $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = $modArr_AF_Rand[modVar_AF_Rand]
  1220. KILLVAR '$modArr_AF_Rand' , modVar_AF_Rand
  1221. end
  1222. end
  1223. if $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Forward':
  1224. if modVar_AF_MatchZones['A-LF'] = 99:
  1225. modVar_AF_MatchZones['A-LF'] = modVar_AF_Temp
  1226. elseif modVar_AF_MatchZones['A-RF'] = 99:
  1227. modVar_AF_MatchZones['A-RF'] = modVar_AF_Temp
  1228. else
  1229. if modVar_AF_MatchZones['A-SUB1'] = 99:
  1230. modVar_AF_MatchZones['A-SUB1'] = modVar_AF_Temp
  1231. elseif modVar_AF_MatchZones['A-SUB2'] = 99:
  1232. modVar_AF_MatchZones['A-SUB2'] = modVar_AF_Temp
  1233. elseif modVar_AF_MatchZones['A-SUB3'] = 99:
  1234. modVar_AF_MatchZones['A-SUB3'] = modVar_AF_Temp
  1235. elseif modVar_AF_MatchZones['A-SUB4'] = 99:
  1236. modVar_AF_MatchZones['A-SUB4'] = modVar_AF_Temp
  1237. end
  1238. end
  1239. elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Midfielder':
  1240. if modVar_AF_MatchZones['A-LW'] = 99:
  1241. modVar_AF_MatchZones['A-LW'] = modVar_AF_Temp
  1242. elseif modVar_AF_MatchZones['A-RW'] = 99:
  1243. modVar_AF_MatchZones['A-RW'] = modVar_AF_Temp
  1244. elseif modVar_AF_MatchZones['A-LCM'] = 99:
  1245. modVar_AF_MatchZones['A-LCM'] = modVar_AF_Temp
  1246. elseif modVar_AF_MatchZones['A-RCM'] = 99:
  1247. modVar_AF_MatchZones['A-RCM'] = modVar_AF_Temp
  1248. else
  1249. if modVar_AF_MatchZones['A-SUB1'] = 99:
  1250. modVar_AF_MatchZones['A-SUB1'] = modVar_AF_Temp
  1251. elseif modVar_AF_MatchZones['A-SUB2'] = 99:
  1252. modVar_AF_MatchZones['A-SUB2'] = modVar_AF_Temp
  1253. elseif modVar_AF_MatchZones['A-SUB3'] = 99:
  1254. modVar_AF_MatchZones['A-SUB3'] = modVar_AF_Temp
  1255. elseif modVar_AF_MatchZones['A-SUB4'] = 99:
  1256. modVar_AF_MatchZones['A-SUB4'] = modVar_AF_Temp
  1257. end
  1258. end
  1259. elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Defender':
  1260. if modVar_AF_MatchZones['A-LCD'] = 99:
  1261. modVar_AF_MatchZones['A-LCD'] = modVar_AF_Temp
  1262. elseif modVar_AF_MatchZones['A-RCD'] = 99:
  1263. modVar_AF_MatchZones['A-RCD'] = modVar_AF_Temp
  1264. elseif modVar_AF_MatchZones['A-LB'] = 99:
  1265. modVar_AF_MatchZones['A-LB'] = modVar_AF_Temp
  1266. elseif modVar_AF_MatchZones['A-RB'] = 99:
  1267. modVar_AF_MatchZones['A-RB'] = modVar_AF_Temp
  1268. else
  1269. if modVar_AF_MatchZones['A-SUB1'] = 99:
  1270. modVar_AF_MatchZones['A-SUB1'] = modVar_AF_Temp
  1271. elseif modVar_AF_MatchZones['A-SUB2'] = 99:
  1272. modVar_AF_MatchZones['A-SUB2'] = modVar_AF_Temp
  1273. elseif modVar_AF_MatchZones['A-SUB3'] = 99:
  1274. modVar_AF_MatchZones['A-SUB3'] = modVar_AF_Temp
  1275. elseif modVar_AF_MatchZones['A-SUB4'] = 99:
  1276. modVar_AF_MatchZones['A-SUB4'] = modVar_AF_Temp
  1277. end
  1278. end
  1279. elseif $modVar_AF_TeamA_PlayerPosition[modVar_AF_Temp] = 'Keeper':
  1280. if modVar_AF_MatchZones['A-KP'] = 99:
  1281. modVar_AF_MatchZones['A-KP'] = modVar_AF_Temp
  1282. else
  1283. modVar_AF_MatchZones['A-SUB4'] = modVar_AF_Temp
  1284. end
  1285. end
  1286. else
  1287. if playerpositionloopcount = 15:
  1288. KILLVAR '$modArr_AF_Rand'
  1289. $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'
  1290. if $modVar_AF_MatchPlayerTeam = 'B' and $ARGS[1] ! '' : KILLVAR '$modArr_AF_Rand' , arrpos('$modArr_AF_Rand',$ARGS[1])
  1291. end
  1292. modVar_AF_Temp = playerpositionloopcount - 15
  1293. if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' and $ARGS[1] ! '':
  1294. $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = $ARGS[1]
  1295. elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Any':
  1296. if modVar_AF_Temp = 13 or modVar_AF_Temp = 14:
  1297. $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Keeper'
  1298. else
  1299. modVar_AF_Rand = rand(1,arrsize('$modArr_AF_Rand')) - 1
  1300. $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = $modArr_AF_Rand[modVar_AF_Rand]
  1301. KILLVAR '$modArr_AF_Rand' , modVar_AF_Rand
  1302. end
  1303. end
  1304. if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerTeam = 'B'
  1305. if $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Forward':
  1306. if modVar_AF_MatchZones['B-LF'] = 99:
  1307. modVar_AF_MatchZones['B-LF'] = modVar_AF_Temp
  1308. elseif modVar_AF_MatchZones['B-RF'] = 99:
  1309. modVar_AF_MatchZones['B-RF'] = modVar_AF_Temp
  1310. else
  1311. if modVar_AF_MatchZones['B-SUB1'] = 99:
  1312. modVar_AF_MatchZones['B-SUB1'] = modVar_AF_Temp
  1313. elseif modVar_AF_MatchZones['B-SUB2'] = 99:
  1314. modVar_AF_MatchZones['B-SUB2'] = modVar_AF_Temp
  1315. elseif modVar_AF_MatchZones['B-SUB3'] = 99:
  1316. modVar_AF_MatchZones['B-SUB3'] = modVar_AF_Temp
  1317. elseif modVar_AF_MatchZones['B-SUB4'] = 99
  1318. modVar_AF_MatchZones['B-SUB4'] = modVar_AF_Temp
  1319. end
  1320. end
  1321. elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Midfielder':
  1322. if modVar_AF_MatchZones['B-LW'] = 99:
  1323. modVar_AF_MatchZones['B-LW'] = modVar_AF_Temp
  1324. elseif modVar_AF_MatchZones['B-RW'] = 99:
  1325. modVar_AF_MatchZones['B-RW'] = modVar_AF_Temp
  1326. elseif modVar_AF_MatchZones['B-LCM'] = 99:
  1327. modVar_AF_MatchZones['B-LCM'] = modVar_AF_Temp
  1328. elseif modVar_AF_MatchZones['B-RCM'] = 99:
  1329. modVar_AF_MatchZones['B-RCM'] = modVar_AF_Temp
  1330. else
  1331. if modVar_AF_MatchZones['B-SUB1'] = 99:
  1332. modVar_AF_MatchZones['B-SUB1'] = modVar_AF_Temp
  1333. elseif modVar_AF_MatchZones['B-SUB2'] = 99:
  1334. modVar_AF_MatchZones['B-SUB2'] = modVar_AF_Temp
  1335. elseif modVar_AF_MatchZones['B-SUB3'] = 99:
  1336. modVar_AF_MatchZones['B-SUB3'] = modVar_AF_Temp
  1337. elseif modVar_AF_MatchZones['B-SUB4'] = 99:
  1338. modVar_AF_MatchZones['B-SUB4'] = modVar_AF_Temp
  1339. end
  1340. end
  1341. elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Defender':
  1342. if modVar_AF_MatchZones['B-LCD'] = 99:
  1343. modVar_AF_MatchZones['B-LCD'] = modVar_AF_Temp
  1344. elseif modVar_AF_MatchZones['B-RCD'] = 99:
  1345. modVar_AF_MatchZones['B-RCD'] = modVar_AF_Temp
  1346. elseif modVar_AF_MatchZones['B-LB'] = 99:
  1347. modVar_AF_MatchZones['B-LB'] = modVar_AF_Temp
  1348. elseif modVar_AF_MatchZones['B-RB'] = 99:
  1349. modVar_AF_MatchZones['B-RB'] = modVar_AF_Temp
  1350. else
  1351. if modVar_AF_MatchZones['B-SUB1'] = 99:
  1352. modVar_AF_MatchZones['B-SUB1'] = modVar_AF_Temp
  1353. elseif modVar_AF_MatchZones['B-SUB2'] = 99:
  1354. modVar_AF_MatchZones['B-SUB2'] = modVar_AF_Temp
  1355. elseif modVar_AF_MatchZones['B-SUB3'] = 99:
  1356. modVar_AF_MatchZones['B-SUB3'] = modVar_AF_Temp
  1357. elseif modVar_AF_MatchZones['B-SUB4'] = 99:
  1358. modVar_AF_MatchZones['B-SUB4'] = modVar_AF_Temp
  1359. end
  1360. end
  1361. elseif $modVar_AF_TeamB_PlayerPosition[modVar_AF_Temp] = 'Keeper':
  1362. if modVar_AF_MatchZones['B-KP'] = 99:
  1363. modVar_AF_MatchZones['B-KP'] = modVar_AF_Temp
  1364. else
  1365. modVar_AF_MatchZones['B-SUB4'] = modVar_AF_Temp
  1366. end
  1367. end
  1368. end
  1369. playerpositionloopcount += 1
  1370. jump 'playerpositionloopstart'
  1371. :playerpositionloopend
  1372. end
  1373. if $ARGS[0] = 'MatchBuildup':
  1374. KILLVAR '$modVar_AF_Row'
  1375. modVar_AF_Temp = modVar_AF_MatchZones['A-LF']
  1376. modVar_AF_Temp2 = modVar_AF_MatchZones['B-LF']
  1377. $modVar_AF_Row[] = '<tr><td colspan=2 width=40%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td colspan=2 width=20%><b>Left Forward</b></td><td colspan=2 width=40%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1378. modVar_AF_Temp = modVar_AF_MatchZones['A-RF']
  1379. modVar_AF_Temp2 = modVar_AF_MatchZones['B-RF']
  1380. $modVar_AF_Row[] = '<tr><td colspan=2 width=40%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td colspan=2 width=20%><b>Right Forward</b></td><td colspan=2 width=40%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1381. modVar_AF_Temp = modVar_AF_MatchZones['A-LW']
  1382. modVar_AF_Temp2 = modVar_AF_MatchZones['B-LW']
  1383. $modVar_AF_Row[] = '<tr><td colspan=2 width=40%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td colspan=2 width=20%><b>Left Winger</b></td><td colspan=2 width=40%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1384. modVar_AF_Temp = modVar_AF_MatchZones['A-RW']
  1385. modVar_AF_Temp2 = modVar_AF_MatchZones['B-RW']
  1386. $modVar_AF_Row[] = '<tr><td colspan=2 width=40%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td colspan=2 width=20%><b>Right Winger</b></td><td colspan=2 width=40%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1387. modVar_AF_Temp = modVar_AF_MatchZones['A-LCM']
  1388. modVar_AF_Temp2 = modVar_AF_MatchZones['B-LCM']
  1389. $modVar_AF_Row[] = '<tr><td colspan=2 width=40%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td colspan=2 width=20%><b>Left Centre Midfield</b></td><td colspan=2 width=40%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1390. modVar_AF_Temp = modVar_AF_MatchZones['A-RCM']
  1391. modVar_AF_Temp2 = modVar_AF_MatchZones['B-RCM']
  1392. $modVar_AF_Row[] = '<tr><td colspan=2 width=40%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td colspan=2 width=20%><b>Right Centre Midfield</b></td><td colspan=2 width=40%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1393. modVar_AF_Temp = modVar_AF_MatchZones['A-LB']
  1394. modVar_AF_Temp2 = modVar_AF_MatchZones['B-LB']
  1395. $modVar_AF_Row[] = '<tr><td colspan=2 width=40%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td colspan=2 width=20%><b>Left Back</b></td><td colspan=2 width=40%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1396. modVar_AF_Temp = modVar_AF_MatchZones['A-RB']
  1397. modVar_AF_Temp2 = modVar_AF_MatchZones['B-RB']
  1398. $modVar_AF_Row[] = '<tr><td colspan=2 width=40%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td colspan=2 width=20%><b>Right Back</b></td><td colspan=2 width=40%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1399. modVar_AF_Temp = modVar_AF_MatchZones['A-LCD']
  1400. modVar_AF_Temp2 = modVar_AF_MatchZones['B-LCD']
  1401. $modVar_AF_Row[] = '<tr><td colspan=2 width=40%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td colspan=2 width=20%><b>Left Centre Defense</b></td><td colspan=2 width=40%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1402. modVar_AF_Temp = modVar_AF_MatchZones['A-RCD']
  1403. modVar_AF_Temp2 = modVar_AF_MatchZones['B-RCD']
  1404. $modVar_AF_Row[] = '<tr><td colspan=2 width=40%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td colspan=2 width=20%><b>Right Centre Defense</b></td><td colspan=2 width=40%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1405. modVar_AF_Temp = modVar_AF_MatchZones['A-KP']
  1406. modVar_AF_Temp2 = modVar_AF_MatchZones['B-KP']
  1407. $modVar_AF_Row[] = '<tr><td colspan=2 width=40%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td colspan=2 width=20%><b>Keeper</b></td><td colspan=2 width=40%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1408. modVar_AF_Temp = modVar_AF_MatchZones['A-SUB1']
  1409. modVar_AF_Temp2 = modVar_AF_MatchZones['B-SUB1']
  1410. $modVar_AF_Row[] = '<tr><td width=50%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td width=50%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1411. modVar_AF_Temp = modVar_AF_MatchZones['A-SUB2']
  1412. modVar_AF_Temp2 = modVar_AF_MatchZones['B-SUB2']
  1413. $modVar_AF_Row[] = '<tr><td width=50%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td width=50%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1414. modVar_AF_Temp = modVar_AF_MatchZones['A-SUB3']
  1415. modVar_AF_Temp2 = modVar_AF_MatchZones['B-SUB3']
  1416. $modVar_AF_Row[] = '<tr><td width=50%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td width=50%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1417. modVar_AF_Temp = modVar_AF_MatchZones['A-SUB4']
  1418. modVar_AF_Temp2 = modVar_AF_MatchZones['B-SUB4']
  1419. $modVar_AF_Row[] = '<tr><td width=50%><<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>></td><td width=50%><<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>></td></tr>'
  1420. '<center><table style="width: 100%;text-align: center;"><tr><td colspan=3 width=50%><b><u><<$modVar_AF_TeamA_PlayerTeam>></u></b></td><td colspan=3 width=50%><b><u><<$modVar_AF_TeamB_PlayerTeam>></u></b></td></tr><<$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]>></table></center>'
  1421. '<center><table style="width: 100%;text-align: center;"><tr><td colspan=2><b>Substitutes</b></td></tr><<$modVar_AF_Row[11]>><<$modVar_AF_Row[12]>><<$modVar_AF_Row[13]>><<$modVar_AF_Row[14]>></table></center>'
  1422. KILLVAR '$modVar_AF_Row'
  1423. gs 'mod_addedflavour_Football' , 'RequestImage' , 'KickOff'
  1424. $modVar_AF_MatchAction = 'KickOff-A#B'
  1425. $modArr_AF_MatchEvents[0] = '<<$modVar_AF_TeamA_PlayerTeam>> to Kick Off the 1st Half'
  1426. modVar_AF_MatchTime = 0
  1427. $modVar_AF_MatchBall = 'Midfield-Up'
  1428. modVar_AF_MatchHalf = 1
  1429. menu_off = 1
  1430. CLOSE ALL
  1431. modVar_AF_MatchPlayerForceEvent = 10
  1432. act 'Head to Kick-Off' : gt 'mod_addedflavour_Football' , 'GameInterface'
  1433. end
  1434. if $ARGS[0] = 'SimulateMatch':
  1435. KILLVAR 'modVar_AF_MatchPointsA'
  1436. KILLVAR 'modVar_AF_MatchPointsB'
  1437. $modVar_AF_TempStr = $ARGS[1]
  1438. if ARGS[3] = 1:
  1439. modVar_AF_Temp = modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)]
  1440. elseif ARGS[3] = 2:
  1441. modVar_AF_Temp = modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)]
  1442. end
  1443. $modVar_AF_TempStr = $ARGS[2]
  1444. if ARGS[3] = 1:
  1445. modVar_AF_Temp2 = modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)]
  1446. elseif ARGS[3] = 2:
  1447. modVar_AF_Temp2 = modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)]
  1448. end
  1449. decidescoreloopcount = 0
  1450. :decidescoreloopstart
  1451. if decidescoreloopcount >= 10 : jump 'decidescoreloopend'
  1452. !Repeated to flush out Randomiser
  1453. modVar_AF_Rand = rand(1,(modVar_AF_Temp + modVar_AF_Temp + modVar_AF_Temp2 + modVar_AF_Temp2))
  1454. modVar_AF_Rand = rand(1,(modVar_AF_Temp + modVar_AF_Temp + modVar_AF_Temp2 + modVar_AF_Temp2))
  1455. modVar_AF_Rand = rand(1,(modVar_AF_Temp + modVar_AF_Temp + modVar_AF_Temp2 + modVar_AF_Temp2))
  1456. if modVar_AF_Rand <= modVar_AF_Temp:
  1457. modVar_AF_MatchPointsA += 1
  1458. elseif modVar_AF_Rand > (modVar_AF_Temp + modVar_AF_Temp + modVar_AF_Temp2):
  1459. modVar_AF_MatchPointsB += 1
  1460. end
  1461. decidescoreloopcount += 1
  1462. jump 'decidescoreloopstart'
  1463. :decidescoreloopend
  1464. gs 'mod_addedflavour_Football' , 'UpdateLeagues' , $ARGS[1] , $ARGS[2] , ARGS[3]
  1465. $modArr_AF_LastGameDay[] = '<<$ARGS[1]>> <b><<modVar_AF_MatchPointsA>> - <<modVar_AF_MatchPointsB>></b> <<$ARGS[2]>>'
  1466. end
  1467. if $ARGS[0] = 'UpdateLeagues':
  1468. if ARGS[3] = 1:
  1469. if modVar_AF_MatchPointsA > modVar_AF_MatchPointsB:
  1470. $modVar_AF_TempStr = $ARGS[1]
  1471. modArr_AF_FLeague1_Points[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += 3
  1472. modArr_AF_FLeague1_GoalsFor[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
  1473. modArr_AF_FLeague1_GoalsAgainst[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
  1474. $modVar_AF_TempStr = $ARGS[2]
  1475. modArr_AF_FLeague1_GoalsFor[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
  1476. modArr_AF_FLeague1_GoalsAgainst[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
  1477. elseif modVar_AF_MatchPointsB > modVar_AF_MatchPointsA:
  1478. $modVar_AF_TempStr = $ARGS[2]
  1479. modArr_AF_FLeague1_Points[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += 3
  1480. modArr_AF_FLeague1_GoalsFor[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
  1481. modArr_AF_FLeague1_GoalsAgainst[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
  1482. $modVar_AF_TempStr = $ARGS[1]
  1483. modArr_AF_FLeague1_GoalsFor[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
  1484. modArr_AF_FLeague1_GoalsAgainst[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
  1485. elseif modVar_AF_MatchPointsA = modVar_AF_MatchPointsB:
  1486. $modVar_AF_TempStr = $ARGS[1]
  1487. modArr_AF_FLeague1_Points[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += 1
  1488. modArr_AF_FLeague1_GoalsFor[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
  1489. modArr_AF_FLeague1_GoalsAgainst[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
  1490. $modVar_AF_TempStr = $ARGS[2]
  1491. modArr_AF_FLeague1_Points[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += 1
  1492. modArr_AF_FLeague1_GoalsFor[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
  1493. modArr_AF_FLeague1_GoalsAgainst[arrpos('$modArr_AF_FLeague1_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
  1494. end
  1495. elseif ARGS[3] = 2:
  1496. if modVar_AF_MatchPointsA > modVar_AF_MatchPointsB:
  1497. $modVar_AF_TempStr = $ARGS[1]
  1498. modArr_AF_FLeague2_Points[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += 3
  1499. modArr_AF_FLeague2_GoalsFor[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
  1500. modArr_AF_FLeague2_GoalsAgainst[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
  1501. $modVar_AF_TempStr = $ARGS[2]
  1502. modArr_AF_FLeague2_GoalsFor[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
  1503. modArr_AF_FLeague2_GoalsAgainst[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
  1504. elseif modVar_AF_MatchPointsB > modVar_AF_MatchPointsA:
  1505. $modVar_AF_TempStr = $ARGS[1]
  1506. modArr_AF_FLeague2_Points[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += 3
  1507. modArr_AF_FLeague2_GoalsFor[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
  1508. modArr_AF_FLeague2_GoalsAgainst[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
  1509. $modVar_AF_TempStr = $ARGS[2]
  1510. modArr_AF_FLeague2_GoalsFor[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
  1511. modArr_AF_FLeague2_GoalsAgainst[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
  1512. elseif modVar_AF_MatchPointsA = modVar_AF_MatchPointsB:
  1513. $modVar_AF_TempStr = $ARGS[1]
  1514. modArr_AF_FLeague2_Points[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += 1
  1515. modArr_AF_FLeague2_GoalsFor[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
  1516. modArr_AF_FLeague2_GoalsAgainst[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
  1517. $modVar_AF_TempStr = $ARGS[2]
  1518. modArr_AF_FLeague2_Points[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += 1
  1519. modArr_AF_FLeague2_GoalsFor[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsB
  1520. modArr_AF_FLeague2_GoalsAgainst[arrpos('$modArr_AF_FLeague2_TeamName',$modVar_AF_TempStr)] += modVar_AF_MatchPointsA
  1521. end
  1522. end
  1523. end
  1524. if $ARGS[0] = 'SetupLeagues':
  1525. !! Setup Players and Teams !!
  1526. KILLVAR '$modArr_AF_FBall_L1_TeamNames'
  1527. KILLVAR '$modArr_AF_FBall_L2_TeamNames'
  1528. KILLVAR '$modArr_AF_FLeague1_TeamName'
  1529. KILLVAR 'modArr_AF_FLeague1_Points'
  1530. KILLVAR 'modArr_AF_FLeague1_GoalsFor'
  1531. KILLVAR 'modArr_AF_FLeague1_GoalsAgainst'
  1532. KILLVAR '$modArr_AF_FLeague2_TeamName'
  1533. KILLVAR 'modArr_AF_FLeague2_Points'
  1534. KILLVAR 'modArr_AF_FLeague2_GoalsFor'
  1535. KILLVAR 'modArr_AF_FLeague2_GoalsAgainst'
  1536. $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'
  1537. $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'
  1538. fballsetupleaguescount = 0
  1539. multilooperrorcount = 0
  1540. :fballsetupleaguesL1loopstart
  1541. multilooperrorcount += 1
  1542. if multilooperrorcount > 1000 : $modArr_AF_MultiLoopErrorLoc[] = 'fballsetupleaguesL2loop' & jump 'fballsetupleaguesL1loopend'
  1543. if fballsetupleaguescount >= arrsize('$modArr_AF_FBall_L1_TeamNames') : jump'fballsetupleaguesL1loopend'
  1544. $modArr_AF_FLeague1_TeamName[] = $modArr_AF_FBall_L1_TeamNames[fballsetupleaguescount]
  1545. modArr_AF_FLeague1_Points[] = 0
  1546. modArr_AF_FLeague1_GoalsFor[] = 0
  1547. modArr_AF_FLeague1_GoalsAgainst[] = 0
  1548. modArr_AF_FLeague1_TeamSkill[] = rand(70,90)
  1549. fballsetupleaguescount += 1
  1550. jump 'fballsetupleaguesL1loopstart'
  1551. :fballsetupleaguesL1loopend
  1552. fballsetupleaguescount = 0
  1553. multilooperrorcount = 0
  1554. :fballsetupleaguesL2loopstart
  1555. multilooperrorcount += 1
  1556. if multilooperrorcount > 1000 : $modArr_AF_MultiLoopErrorLoc[] = 'fballsetupleaguesL2loop' & jump 'fballsetupleaguesL2loopend'
  1557. if fballsetupleaguescount >= arrsize('$modArr_AF_FBall_L2_TeamNames') : jump'fballsetupleaguesL2loopend'
  1558. $modArr_AF_FLeague2_TeamName[] = $modArr_AF_FBall_L2_TeamNames[fballsetupleaguescount]
  1559. modArr_AF_FLeague2_Points[] = 0
  1560. modArr_AF_FLeague2_GoalsFor[] = 0
  1561. modArr_AF_FLeague2_GoalsAgainst[] = 0
  1562. modArr_AF_FLeague2_TeamSkill[] = rand(30,40)
  1563. fballsetupleaguescount += 1
  1564. jump 'fballsetupleaguesL2loopstart'
  1565. :fballsetupleaguesL2loopend
  1566. KILLVAR '$modArr_AF_FBall_L1_TeamNames'
  1567. KILLVAR '$modArr_AF_FBall_L2_TeamNames'
  1568. end
  1569. if $ARGS[0] = 'SetupPlayers':
  1570. KILLVAR '$modArr_AF_FBall_PlayerName'
  1571. KILLVAR '$modArr_AF_FBall_PlayerTeam'
  1572. KILLVAR 'modArr_AF_FBall_PlayerSkill'
  1573. fballsetupteamsscount = 0
  1574. multilooperrorcount = 0
  1575. :fballsetupteamsL1loopstart
  1576. multilooperrorcount += 1
  1577. if multilooperrorcount > 1000 : $modArr_AF_MultiLoopErrorLoc[] = 'fballsetupteamsL1loop' & jump 'fballsetupteamsL1loopend'
  1578. if fballsetupteamsscount >= arrsize('$modArr_AF_FLeague1_TeamName') : jump'fballsetupteamsL1loopend'
  1579. gs 'mod_addedflavour_GameFunctions' , 'SetupTeam' , $modArr_AF_FLeague1_TeamName[fballsetupteamsscount] , 8 , 15 , 50 , 100
  1580. if arrpos('$modArr_AF_PlayerNameTemp','<<$pcs_firstname>> <<$pcs_lastname>>') >= 0 or arrpos('$modArr_AF_PlayerNameTemp','Zinaida Alkaev') >= 0 : jump 'fballsetupteamsL1loopstart'
  1581. fballsetupteamsL1addplayerloopcount = 0
  1582. :fballsetupteamsL1addplayerloopstart
  1583. multilooperrorcount += 1
  1584. if multilooperrorcount > 1000 : $modArr_AF_MultiLoopErrorLoc[] = 'fballsetupteamsL1addplayerloop' & jump 'fballsetupteamsL1loopend'
  1585. $modArr_AF_FBall_PlayerName[] = $modArr_AF_PlayerNameTemp[fballsetupteamsL1addplayerloopcount]
  1586. $modArr_AF_FBall_PlayerTeam[] = $modArr_AF_PlayerTeamTemp[fballsetupteamsL1addplayerloopcount]
  1587. modArr_AF_FBall_PlayerSkill[] = modArr_AF_PlayerSkillTemp[fballsetupteamsL1addplayerloopcount]
  1588. $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','')
  1589. fballsetupteamsL1addplayerloopcount += 1
  1590. if fballsetupteamsL1addplayerloopcount < arrsize('$modArr_AF_PlayerNameTemp') : jump 'fballsetupteamsL1addplayerloopstart'
  1591. fballsetupteamsscount += 1
  1592. jump 'fballsetupteamsL1loopstart'
  1593. :fballsetupteamsL1loopend
  1594. fballsetupteamsscount = 0
  1595. multilooperrorcount = 0
  1596. :fballsetupteamsL2loopstart
  1597. multilooperrorcount += 1
  1598. if multilooperrorcount > 1000 : $modArr_AF_MultiLoopErrorLoc[] = 'fballsetupteamsL2loop' & jump 'fballsetupteamsL2loopend'
  1599. if fballsetupteamsscount >= arrsize('$modArr_AF_FLeague2_TeamName') : jump'fballsetupteamsL2loopend'
  1600. gs 'mod_addedflavour_GameFunctions' , 'SetupTeam' , $modArr_AF_FLeague2_TeamName[fballsetupteamsscount] , 8 , 15 , 20 , 45
  1601. if arrpos('$modArr_AF_PlayerNameTemp','<<$pcs_firstname>> <<$pcs_lastname>>') >= 0 or arrpos('$modArr_AF_PlayerNameTemp','Zinaida Alkaev') >= 0 : jump 'fballsetupteamsL2loopstart'
  1602. fballsetupteamsL2addplayerloopcount = 0
  1603. :fballsetupteamsL2addplayerloopstart
  1604. multilooperrorcount += 1
  1605. if multilooperrorcount > 1000 : $modArr_AF_MultiLoopErrorLoc[] = 'fballsetupleaguesL2addplayerloop' & jump 'fballsetupteamsL2loopend'
  1606. $modArr_AF_FBall_PlayerName[] = $modArr_AF_PlayerNameTemp[fballsetupteamsL2addplayerloopcount]
  1607. $modArr_AF_FBall_PlayerTeam[] = $modArr_AF_PlayerTeamTemp[fballsetupteamsL2addplayerloopcount]
  1608. modArr_AF_FBall_PlayerSkill[] = modArr_AF_PlayerSkillTemp[fballsetupteamsL2addplayerloopcount]
  1609. $modArr_AF_FBall_PlayerPosition[] = 'Any'
  1610. fballsetupteamsL2addplayerloopcount += 1
  1611. if fballsetupteamsL2addplayerloopcount < arrsize('$modArr_AF_PlayerNameTemp') : jump 'fballsetupteamsL2addplayerloopstart'
  1612. fballsetupteamsscount += 1
  1613. jump 'fballsetupteamsL2loopstart'
  1614. :fballsetupteamsL2loopend
  1615. KILLVAR '$modArr_AF_PlayerNameTemp'
  1616. KILLVAR '$modArr_AF_PlayerTeamTemp'
  1617. KILLVAR 'modArr_AF_PlayerSkillTemp'
  1618. KILLVAR '$modArr_AF_FNamePool'
  1619. KILLVAR '$modArr_AF_LNamePool'
  1620. end
  1621. if $ARGS[0] = 'SetupMatches':
  1622. KILLVAR '$modArr_AF_FLeague1_MatchesA'
  1623. KILLVAR '$modArr_AF_FLeague1_MatchesB'
  1624. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[4]
  1625. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[5]
  1626. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[2]
  1627. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[3]
  1628. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[1]
  1629. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[0]
  1630. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[3]
  1631. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[4]
  1632. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[0]
  1633. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[5]
  1634. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[1]
  1635. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[2]
  1636. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[4]
  1637. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[0]
  1638. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[3]
  1639. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[1]
  1640. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[5]
  1641. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[2]
  1642. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[1]
  1643. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[4]
  1644. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[2]
  1645. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[0]
  1646. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[5]
  1647. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[3]
  1648. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[4]
  1649. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[2]
  1650. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[1]
  1651. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[5]
  1652. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[0]
  1653. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[3]
  1654. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[5]
  1655. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[4]
  1656. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[3]
  1657. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[2]
  1658. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[0]
  1659. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[1]
  1660. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[4]
  1661. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[3]
  1662. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[5]
  1663. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[0]
  1664. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[2]
  1665. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[1]
  1666. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[0]
  1667. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[4]
  1668. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[1]
  1669. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[3]
  1670. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[2]
  1671. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[5]
  1672. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[4]
  1673. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[1]
  1674. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[0]
  1675. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[2]
  1676. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[3]
  1677. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[5]
  1678. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[2]
  1679. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[4]
  1680. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[5]
  1681. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[1]
  1682. $modArr_AF_FLeague1_MatchesA[] = $modArr_AF_FLeague1_TeamName[3]
  1683. $modArr_AF_FLeague1_MatchesB[] = $modArr_AF_FLeague1_TeamName[0]
  1684. KILLVAR '$modArr_AF_FLeague2_MatchesA'
  1685. KILLVAR '$modArr_AF_FLeague2_MatchesB'
  1686. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  1687. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  1688. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  1689. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  1690. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  1691. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  1692. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  1693. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  1694. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  1695. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  1696. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  1697. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  1698. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  1699. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  1700. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  1701. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  1702. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  1703. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  1704. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  1705. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  1706. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  1707. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  1708. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  1709. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  1710. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  1711. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  1712. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  1713. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  1714. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  1715. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  1716. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  1717. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  1718. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  1719. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  1720. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  1721. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  1722. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  1723. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  1724. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  1725. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  1726. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  1727. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  1728. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  1729. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  1730. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  1731. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  1732. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  1733. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  1734. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  1735. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  1736. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  1737. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  1738. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  1739. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  1740. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  1741. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  1742. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  1743. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  1744. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  1745. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  1746. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  1747. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  1748. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  1749. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  1750. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  1751. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  1752. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  1753. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  1754. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  1755. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  1756. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  1757. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  1758. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  1759. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  1760. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  1761. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  1762. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  1763. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  1764. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  1765. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  1766. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  1767. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  1768. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  1769. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  1770. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  1771. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  1772. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  1773. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  1774. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  1775. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  1776. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  1777. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  1778. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  1779. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  1780. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  1781. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  1782. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  1783. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  1784. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  1785. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  1786. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  1787. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  1788. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  1789. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  1790. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  1791. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  1792. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  1793. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  1794. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  1795. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  1796. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  1797. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  1798. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  1799. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  1800. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  1801. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  1802. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  1803. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  1804. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  1805. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  1806. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  1807. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  1808. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  1809. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  1810. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  1811. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  1812. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  1813. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  1814. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  1815. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  1816. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  1817. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  1818. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  1819. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  1820. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  1821. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  1822. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  1823. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  1824. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  1825. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  1826. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  1827. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  1828. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  1829. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  1830. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  1831. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  1832. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  1833. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  1834. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  1835. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  1836. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  1837. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  1838. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  1839. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  1840. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  1841. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  1842. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  1843. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  1844. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  1845. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  1846. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  1847. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  1848. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  1849. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  1850. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  1851. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  1852. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  1853. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  1854. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  1855. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  1856. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  1857. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  1858. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  1859. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  1860. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  1861. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  1862. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  1863. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  1864. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  1865. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  1866. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  1867. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  1868. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  1869. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  1870. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  1871. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  1872. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  1873. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  1874. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  1875. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  1876. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  1877. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  1878. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  1879. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  1880. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  1881. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  1882. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  1883. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  1884. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  1885. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  1886. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  1887. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  1888. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  1889. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  1890. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  1891. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  1892. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  1893. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  1894. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  1895. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  1896. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  1897. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  1898. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  1899. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  1900. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  1901. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  1902. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  1903. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  1904. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  1905. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  1906. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  1907. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  1908. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  1909. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  1910. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  1911. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  1912. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  1913. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  1914. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  1915. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  1916. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  1917. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  1918. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  1919. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  1920. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  1921. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  1922. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  1923. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  1924. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  1925. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  1926. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  1927. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  1928. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  1929. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  1930. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  1931. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  1932. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  1933. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  1934. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  1935. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  1936. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  1937. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  1938. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  1939. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  1940. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  1941. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  1942. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  1943. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  1944. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  1945. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  1946. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  1947. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  1948. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  1949. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  1950. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  1951. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  1952. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  1953. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  1954. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  1955. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  1956. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  1957. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  1958. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  1959. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  1960. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  1961. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  1962. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  1963. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  1964. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  1965. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  1966. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  1967. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  1968. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  1969. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  1970. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  1971. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  1972. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  1973. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  1974. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  1975. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  1976. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  1977. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  1978. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  1979. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  1980. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  1981. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  1982. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  1983. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  1984. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  1985. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  1986. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  1987. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  1988. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  1989. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  1990. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  1991. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  1992. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  1993. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  1994. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  1995. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  1996. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  1997. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  1998. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  1999. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  2000. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  2001. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  2002. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  2003. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  2004. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  2005. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  2006. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  2007. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  2008. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  2009. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  2010. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  2011. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  2012. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  2013. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  2014. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  2015. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  2016. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  2017. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  2018. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  2019. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  2020. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  2021. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  2022. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  2023. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  2024. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  2025. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  2026. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  2027. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  2028. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  2029. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  2030. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  2031. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  2032. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  2033. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  2034. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  2035. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  2036. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  2037. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  2038. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  2039. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  2040. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  2041. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  2042. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  2043. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  2044. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  2045. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  2046. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  2047. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  2048. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  2049. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  2050. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  2051. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  2052. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  2053. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  2054. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  2055. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  2056. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  2057. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  2058. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  2059. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  2060. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  2061. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  2062. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  2063. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  2064. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  2065. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  2066. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  2067. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  2068. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  2069. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  2070. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  2071. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  2072. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  2073. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  2074. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  2075. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  2076. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  2077. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  2078. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  2079. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  2080. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  2081. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  2082. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  2083. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  2084. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  2085. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  2086. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  2087. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  2088. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  2089. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  2090. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  2091. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  2092. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  2093. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  2094. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  2095. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  2096. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  2097. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  2098. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  2099. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  2100. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  2101. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  2102. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  2103. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  2104. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  2105. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  2106. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  2107. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  2108. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  2109. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  2110. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  2111. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  2112. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  2113. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  2114. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  2115. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  2116. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  2117. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  2118. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  2119. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  2120. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[2]
  2121. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  2122. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  2123. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  2124. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  2125. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  2126. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  2127. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  2128. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  2129. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  2130. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  2131. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[11]
  2132. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  2133. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  2134. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[14]
  2135. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  2136. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[0]
  2137. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[13]
  2138. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[15]
  2139. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[10]
  2140. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[8]
  2141. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[5]
  2142. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[7]
  2143. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[1]
  2144. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[6]
  2145. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[3]
  2146. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[4]
  2147. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[9]
  2148. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  2149. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[12]
  2150. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[13]
  2151. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[14]
  2152. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[10]
  2153. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[2]
  2154. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[5]
  2155. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[0]
  2156. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[1]
  2157. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[15]
  2158. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[3]
  2159. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[8]
  2160. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[9]
  2161. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[7]
  2162. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[12]
  2163. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[6]
  2164. $modArr_AF_FLeague2_MatchesA[] = $modArr_AF_FLeague2_TeamName[11]
  2165. $modArr_AF_FLeague2_MatchesB[] = $modArr_AF_FLeague2_TeamName[4]
  2166. end
  2167. if $ARGS[0] = 'SortRecords':
  2168. if $ARGS[1] = 'League' or $ARGS[1] = 'All':
  2169. :sortleague1sortstart
  2170. sortleaguessortcount = 0
  2171. sortleaguessortbubblecount = 0
  2172. :sortleague1sortbubblestart
  2173. if sortleaguessortbubblecount >= (arrsize('$modArr_AF_FLeague1_TeamName') - 1) : jump 'sortleague1sortbubbleend'
  2174. 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]):
  2175. $modVar_AF_TempStr = $modArr_AF_FLeague1_TeamName[sortleaguessortbubblecount]
  2176. modVar_AF_Temp = modArr_AF_FLeague1_Points[sortleaguessortbubblecount]
  2177. modVar_AF_Temp2 = modArr_AF_FLeague1_GoalsFor[sortleaguessortbubblecount]
  2178. modVar_AF_Temp3 = modArr_AF_FLeague1_GoalsAgainst[sortleaguessortbubblecount]
  2179. modVar_AF_Temp4 = modArr_AF_FLeague1_TeamSkill[sortleaguessortbubblecount]
  2180. $modArr_AF_FLeague1_TeamName[sortleaguessortbubblecount] = $modArr_AF_FLeague1_TeamName[sortleaguessortbubblecount + 1]
  2181. modArr_AF_FLeague1_Points[sortleaguessortbubblecount] = modArr_AF_FLeague1_Points[sortleaguessortbubblecount + 1]
  2182. modArr_AF_FLeague1_GoalsFor[sortleaguessortbubblecount] = modArr_AF_FLeague1_GoalsFor[sortleaguessortbubblecount + 1]
  2183. modArr_AF_FLeague1_GoalsAgainst[sortleaguessortbubblecount] = modArr_AF_FLeague1_GoalsAgainst[sortleaguessortbubblecount + 1]
  2184. modArr_AF_FLeague1_TeamSkill[sortleaguessortbubblecount] = modArr_AF_FLeague1_TeamSkill[sortleaguessortbubblecount + 1]
  2185. $modArr_AF_FLeague1_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr
  2186. modArr_AF_FLeague1_Points[sortleaguessortbubblecount + 1] = modVar_AF_Temp
  2187. modArr_AF_FLeague1_GoalsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2
  2188. modArr_AF_FLeague1_GoalsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3
  2189. modArr_AF_FLeague1_TeamSkill[sortleaguessortbubblecount + 1] = modVar_AF_Temp4
  2190. sortleaguessortcount += 1
  2191. end
  2192. sortleaguessortbubblecount += 1
  2193. jump 'sortleague1sortbubblestart'
  2194. :sortleague1sortbubbleend
  2195. if sortleaguessortcount > 0 : jump 'sortleague1sortstart'
  2196. :sortleague2sortstart
  2197. sortleaguessortcount = 0
  2198. sortleaguessortbubblecount = 0
  2199. :sortleague2sortbubblestart
  2200. if sortleaguessortbubblecount >= (arrsize('$modArr_AF_FLeague2_TeamName') - 1) : jump 'sortleague2sortbubbleend'
  2201. 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]):
  2202. $modVar_AF_TempStr = $modArr_AF_FLeague2_TeamName[sortleaguessortbubblecount]
  2203. modVar_AF_Temp = modArr_AF_FLeague2_Points[sortleaguessortbubblecount]
  2204. modVar_AF_Temp2 = modArr_AF_FLeague2_GoalsFor[sortleaguessortbubblecount]
  2205. modVar_AF_Temp3 = modArr_AF_FLeague2_GoalsAgainst[sortleaguessortbubblecount]
  2206. modVar_AF_Temp4 = modArr_AF_FLeague2_TeamSkill[sortleaguessortbubblecount]
  2207. $modArr_AF_FLeague2_TeamName[sortleaguessortbubblecount] = $modArr_AF_FLeague2_TeamName[sortleaguessortbubblecount + 1]
  2208. modArr_AF_FLeague2_Points[sortleaguessortbubblecount] = modArr_AF_FLeague2_Points[sortleaguessortbubblecount + 1]
  2209. modArr_AF_FLeague2_GoalsFor[sortleaguessortbubblecount] = modArr_AF_FLeague2_GoalsFor[sortleaguessortbubblecount + 1]
  2210. modArr_AF_FLeague2_GoalsAgainst[sortleaguessortbubblecount] = modArr_AF_FLeague2_GoalsAgainst[sortleaguessortbubblecount + 1]
  2211. modArr_AF_FLeague2_TeamSkill[sortleaguessortbubblecount] = modArr_AF_FLeague2_TeamSkill[sortleaguessortbubblecount + 1]
  2212. $modArr_AF_FLeague2_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr
  2213. modArr_AF_FLeague2_Points[sortleaguessortbubblecount + 1] = modVar_AF_Temp
  2214. modArr_AF_FLeague2_GoalsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2
  2215. modArr_AF_FLeague2_GoalsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3
  2216. modArr_AF_FLeague2_TeamSkill[sortleaguessortbubblecount + 1] = modVar_AF_Temp4
  2217. sortleaguessortcount += 1
  2218. end
  2219. sortleaguessortbubblecount += 1
  2220. jump 'sortleague2sortbubblestart'
  2221. :sortleague2sortbubbleend
  2222. if sortleaguessortcount > 0 : jump 'sortleague2sortstart'
  2223. end
  2224. if $ARGS[1] = 'Players' or $ARGS[1] = 'All':
  2225. modArr_AF_FBall_PlayerSkill[arrpos('$modArr_AF_FBall_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')] = pcs_ftbll
  2226. :sortplayerssortstart
  2227. sortplayerssortcount = 0
  2228. sortplayerssortbubblecount = 0
  2229. :sortplayerssortbubblestart
  2230. if sortplayerssortbubblecount >= arrsize('$modArr_AF_FBall_PlayerName') : jump 'sortplayerssortbubbleend'
  2231. if modArr_AF_FBall_PlayerSkill[sortplayerssortbubblecount] < modArr_AF_FBall_PlayerSkill[sortplayerssortbubblecount + 1]:
  2232. $modVar_AF_TempStr = $modArr_AF_FBall_PlayerName[sortplayerssortbubblecount]
  2233. $modArr_AF_FBall_PlayerName[sortplayerssortbubblecount] = $modArr_AF_FBall_PlayerName[sortplayerssortbubblecount + 1]
  2234. $modArr_AF_FBall_PlayerName[sortplayerssortbubblecount + 1] = $modVar_AF_TempStr
  2235. $modVar_AF_TempStr = $modArr_AF_FBall_PlayerTeam[sortplayerssortbubblecount]
  2236. $modArr_AF_FBall_PlayerTeam[sortplayerssortbubblecount] = $modArr_AF_FBall_PlayerTeam[sortplayerssortbubblecount + 1]
  2237. $modArr_AF_FBall_PlayerTeam[sortplayerssortbubblecount + 1] = $modVar_AF_TempStr
  2238. modVar_AF_Temp = modArr_AF_FBall_PlayerSkill[sortplayerssortbubblecount]
  2239. modArr_AF_FBall_PlayerSkill[sortplayerssortbubblecount] = modArr_AF_FBall_PlayerSkill[sortplayerssortbubblecount + 1]
  2240. modArr_AF_FBall_PlayerSkill[sortplayerssortbubblecount + 1] = modVar_AF_Temp
  2241. $modVar_AF_TempStr = $modArr_AF_FBall_PlayerPosition[sortplayerssortbubblecount]
  2242. $modArr_AF_FBall_PlayerPosition[sortplayerssortbubblecount] = $modArr_AF_FBall_PlayerPosition[sortplayerssortbubblecount + 1]
  2243. $modArr_AF_FBall_PlayerPosition[sortplayerssortbubblecount + 1] = $modVar_AF_TempStr
  2244. sortplayerssortcount += 1
  2245. end
  2246. sortplayerssortbubblecount += 1
  2247. jump 'sortplayerssortbubblestart'
  2248. :sortplayerssortbubbleend
  2249. if sortplayerssortcount > 0 : jump 'sortplayerssortstart'
  2250. end
  2251. if $ARGS[1] = 'Players' or $ARGS[1] = 'All':
  2252. KILLVAR 'modArr_AF_Temp'
  2253. updateteamskillloopcount = 0
  2254. :updateteamskillloopstart
  2255. if updateteamskillloopcount >= arrsize('modArr_AF_FBall_PlayerSkill') : jump 'updateteamskillloopend'
  2256. modArr_AF_Temp['<<$modArr_AF_FBall_PlayerTeam[updateteamskillloopcount]>>'] += modArr_AF_FBall_PlayerSkill[updateteamskillloopcount]
  2257. updateteamskillloopcount += 1
  2258. jump 'updateteamskillloopstart'
  2259. :updateteamskillloopend
  2260. modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName','Zenit Saint Petersburg')] = modArr_AF_Temp['Zenit Saint Petersburg'] / 15
  2261. modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName','Spartak Moscow')] = modArr_AF_Temp['Spartak Moscow'] / 15
  2262. modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName','Locomotiv Moscow')] = modArr_AF_Temp['Locomotiv Moscow'] / 15
  2263. modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName','CSKA Moscow')] = modArr_AF_Temp['CSKA Moscow'] / 15
  2264. modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName','Rubin Kazan')] = modArr_AF_Temp['Rubin Kazan'] / 15
  2265. modArr_AF_FLeague1_TeamSkill[arrpos('$modArr_AF_FLeague1_TeamName','FC Rostov')] = modArr_AF_Temp['FC Rostov'] / 15
  2266. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Pavlovsk High')] = modArr_AF_Temp['Pavlovsk High'] / 15
  2267. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Gatchina Modern')] = modArr_AF_Temp['Gatchina Modern'] / 15
  2268. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Annino Institute')] = modArr_AF_Temp['Annino Institute'] / 15
  2269. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Kolpino Academy')] = modArr_AF_Temp['Kolpino Academy'] / 15
  2270. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Rakhya Tech')] = modArr_AF_Temp['Rakhya Tech'] / 15
  2271. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Vsevolozhsk Institute')] = modArr_AF_Temp['Vsevolozhsk Institute'] / 15
  2272. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Kirovsky Modern')] = modArr_AF_Temp['Kirovsky Modern'] / 15
  2273. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Primorsky High')] = modArr_AF_Temp['Primorsky High'] / 15
  2274. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Sestroretsk Institute')] = modArr_AF_Temp['Sestroretsk Institute'] / 15
  2275. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Sertolovo Academy')] = modArr_AF_Temp['Sertolovo Academy'] / 15
  2276. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Leskalovo Academy')] = modArr_AF_Temp['Leskalovo Academy'] / 15
  2277. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Veliky Novgorod College')] = modArr_AF_Temp['Veliky Novgorod College'] / 15
  2278. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Tikhvin Tech')] = modArr_AF_Temp['Tikhvin Tech'] / 15
  2279. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Vyborg Modern')] = modArr_AF_Temp['Vyborg Modern'] / 15
  2280. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Petrogradsky High')] = modArr_AF_Temp['Petrogradsky High'] / 15
  2281. modArr_AF_FLeague2_TeamSkill[arrpos('$modArr_AF_FLeague2_TeamName','Zelenogorsk College')] = modArr_AF_Temp['Zelenogorsk College'] / 15
  2282. end
  2283. end
  2284. if $ARGS[0] = 'FindGameweek':
  2285. 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'
  2286. if month >= 9 and day > 0 : modVar_AF_FBall_Gameweek = 1
  2287. if month >= 9 and day > 7 : modVar_AF_FBall_Gameweek = 2
  2288. if month >= 9 and day > 14 : modVar_AF_FBall_Gameweek = 3
  2289. if month >= 9 and day > 21 : modVar_AF_FBall_Gameweek = 4
  2290. if month >= 10 and day > 0 : modVar_AF_FBall_Gameweek = 5
  2291. if month >= 10 and day > 7 : modVar_AF_FBall_Gameweek = 6
  2292. if month >= 10 and day > 14 : modVar_AF_FBall_Gameweek = 7
  2293. if month >= 10 and day > 21 : modVar_AF_FBall_Gameweek = 8
  2294. if month >= 11 and day > 0 : modVar_AF_FBall_Gameweek = 9
  2295. if month >= 11 and day > 7 : modVar_AF_FBall_Gameweek = 10
  2296. if month >= 11 and day > 14 : modVar_AF_FBall_Gameweek = 11
  2297. if month >= 11 and day > 21 : modVar_AF_FBall_Gameweek = 12
  2298. if year = modVar_AF_FBall_GameYear + 1 and month >= 1 and day > 0 : modVar_AF_FBall_Gameweek = 13
  2299. if year = modVar_AF_FBall_GameYear + 1 and month >= 1 and day > 7 : modVar_AF_FBall_Gameweek = 14
  2300. if year = modVar_AF_FBall_GameYear + 1 and month >= 1 and day > 14 : modVar_AF_FBall_Gameweek = 15
  2301. if year = modVar_AF_FBall_GameYear + 1 and month >= 1 and day > 21 : modVar_AF_FBall_Gameweek = 16
  2302. if year = modVar_AF_FBall_GameYear + 1 and month >= 2 and day > 0 : modVar_AF_FBall_Gameweek = 17
  2303. if year = modVar_AF_FBall_GameYear + 1 and month >= 2 and day > 7 : modVar_AF_FBall_Gameweek = 18
  2304. if year = modVar_AF_FBall_GameYear + 1 and month >= 2 and day > 14 : modVar_AF_FBall_Gameweek = 19
  2305. if year = modVar_AF_FBall_GameYear + 1 and month >= 2 and day > 21 : modVar_AF_FBall_Gameweek = 20
  2306. if year = modVar_AF_FBall_GameYear + 1 and month >= 3 and day > 0 : modVar_AF_FBall_Gameweek = 21
  2307. if year = modVar_AF_FBall_GameYear + 1 and month >= 3 and day > 7 : modVar_AF_FBall_Gameweek = 22
  2308. if year = modVar_AF_FBall_GameYear + 1 and month >= 3 and day > 14 : modVar_AF_FBall_Gameweek = 23
  2309. if year = modVar_AF_FBall_GameYear + 1 and month >= 3 and day > 21 : modVar_AF_FBall_Gameweek = 24
  2310. if year = modVar_AF_FBall_GameYear + 1 and month >= 4 and day > 0 : modVar_AF_FBall_Gameweek = 25
  2311. if year = modVar_AF_FBall_GameYear + 1 and month >= 4 and day > 7 : modVar_AF_FBall_Gameweek = 26
  2312. if year = modVar_AF_FBall_GameYear + 1 and month >= 4 and day > 14 : modVar_AF_FBall_Gameweek = 27
  2313. if year = modVar_AF_FBall_GameYear + 1 and month >= 4 and day > 21 : modVar_AF_FBall_Gameweek = 28
  2314. if year = modVar_AF_FBall_GameYear + 1 and month >= 5 and day > 0 : modVar_AF_FBall_Gameweek = 29
  2315. if year = modVar_AF_FBall_GameYear + 1 and month >= 5 and day > 7 : modVar_AF_FBall_Gameweek = 30
  2316. if year = modVar_AF_FBall_GameYear + 1 and month >= 5 and day > 14 : modVar_AF_FBall_Gameweek = 31
  2317. end
  2318. if $ARGS[0] = 'RunGameweek':
  2319. KILLVAR '$modArr_AF_LastGameDay'
  2320. modVar_AF_Temp3 = 31
  2321. :simgameweekloopstart
  2322. simgameweekloopcount = modVar_AF_FBall_GameweekPlayed
  2323. if simgameweekloopcount >= 31 : jump 'simgameweekloopend'
  2324. if simgameweekloopcount >= modVar_AF_FBall_Gameweek : jump 'simgameweekloopend'
  2325. if simgameweekloopcount = (modVar_AF_FBall_Gameweek - 1) and $ARGS[1] ! 'Run' : jump 'simgameweekloopend'
  2326. 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:
  2327. 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'):
  2328. modVar_AF_Temp3 = simgameweekloopcount * 3
  2329. else
  2330. gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague1_MatchesA[simgameweekloopcount * 3] , $modArr_AF_FLeague1_MatchesB[simgameweekloopcount * 3] , 1
  2331. end
  2332. 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'):
  2333. modVar_AF_Temp3 = (simgameweekloopcount * 3) + 1
  2334. else
  2335. gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague1_MatchesA[(simgameweekloopcount * 3) + 1] , $modArr_AF_FLeague1_MatchesB[(simgameweekloopcount * 3) + 1] , 1
  2336. end
  2337. 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'):
  2338. modVar_AF_Temp3 = (simgameweekloopcount * 3) + 2
  2339. else
  2340. gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague1_MatchesA[(simgameweekloopcount * 3) + 2] , $modArr_AF_FLeague1_MatchesB[(simgameweekloopcount * 3) + 2] , 1
  2341. end
  2342. end
  2343. 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'):
  2344. modVar_AF_Temp3 = simgameweekloopcount * 8
  2345. else
  2346. gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[simgameweekloopcount * 8] , $modArr_AF_FLeague2_MatchesB[simgameweekloopcount * 8] , 2
  2347. end
  2348. 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'):
  2349. modVar_AF_Temp3 = (simgameweekloopcount * 8) + 1
  2350. else
  2351. gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 1] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 1] , 2
  2352. end
  2353. 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'):
  2354. modVar_AF_Temp3 = (simgameweekloopcount * 8) + 2
  2355. else
  2356. gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 2] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 2] , 2
  2357. end
  2358. 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'):
  2359. modVar_AF_Temp3 = (simgameweekloopcount * 8) + 3
  2360. else
  2361. gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 3] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 3] , 2
  2362. end
  2363. 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'):
  2364. modVar_AF_Temp3 = (simgameweekloopcount * 8) + 4
  2365. else
  2366. gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 4] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 4] , 2
  2367. end
  2368. 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'):
  2369. modVar_AF_Temp3 = (simgameweekloopcount * 8) + 5
  2370. else
  2371. gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 5] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 5] , 2
  2372. end
  2373. 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'):
  2374. modVar_AF_Temp3 = (simgameweekloopcount * 8) + 6
  2375. else
  2376. gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 6] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 6] , 2
  2377. end
  2378. 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'):
  2379. modVar_AF_Temp3 = (simgameweekloopcount * 8) + 7
  2380. else
  2381. gs 'mod_addedflavour_Football' , 'SimulateMatch' , $modArr_AF_FLeague2_MatchesA[(simgameweekloopcount * 8) + 7] , $modArr_AF_FLeague2_MatchesB[(simgameweekloopcount * 8) + 7] , 2
  2382. end
  2383. modVar_AF_FBall_GameweekPlayed += 1
  2384. if modVar_AF_Temp3 < 31 and modVar_AF_EventProgress['Football'] = 3:
  2385. gs 'mod_addedflavour_Football' , 'MatchSetup' , $modVar_AF_FBall_PosRequest , $modArr_AF_FLeague1_MatchesA[modVar_AF_Temp3] , $modArr_AF_FLeague1_MatchesB[modVar_AF_Temp3]
  2386. gt 'mod_addedflavour_Football' , 'MatchBuildup'
  2387. elseif modVar_AF_Temp3 < 31 and modVar_AF_EventProgress['Football'] = 2:
  2388. gs 'mod_addedflavour_Football' , 'MatchSetup' , $modVar_AF_FBall_PosRequest , $modArr_AF_FLeague2_MatchesA[modVar_AF_Temp3] , $modArr_AF_FLeague2_MatchesB[modVar_AF_Temp3]
  2389. gt 'mod_addedflavour_Football' , 'MatchBuildup'
  2390. end
  2391. jump 'simgameweekloopstart'
  2392. :simgameweekloopend
  2393. end
  2394. if $ARGS[0] = 'ChkMatch':
  2395. KILLVAR '$modVar_AF_TempStr'
  2396. if $ARGS[1] = 'League 1':
  2397. if $modArr_AF_FLeague1_MatchesA[modVar_AF_FBall_GameweekPlayed * 3] = 'Zenit Saint Petersburg' : $modVar_AF_TempStr = 'Home'
  2398. if $modArr_AF_FLeague1_MatchesA[(modVar_AF_FBall_GameweekPlayed * 3) + 1] = 'Zenit Saint Petersburg' : $modVar_AF_TempStr = 'Home'
  2399. if $modArr_AF_FLeague1_MatchesA[(modVar_AF_FBall_GameweekPlayed * 3) + 2] = 'Zenit Saint Petersburg' : $modVar_AF_TempStr = 'Home'
  2400. if $modArr_AF_FLeague1_MatchesB[modVar_AF_FBall_GameweekPlayed * 3] = 'Zenit Saint Petersburg' : $modVar_AF_TempStr = 'Away'
  2401. if $modArr_AF_FLeague1_MatchesB[(modVar_AF_FBall_GameweekPlayed * 3) + 1] = 'Zenit Saint Petersburg' : $modVar_AF_TempStr = 'Away'
  2402. if $modArr_AF_FLeague1_MatchesB[(modVar_AF_FBall_GameweekPlayed * 3) + 2] = 'Zenit Saint Petersburg' : $modVar_AF_TempStr = 'Away'
  2403. elseif $ARGS[1] = 'League 2':
  2404. if $modArr_AF_FLeague2_MatchesA[modVar_AF_FBall_GameweekPlayed * 8] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
  2405. if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 1] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
  2406. if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 2] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
  2407. if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 3] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
  2408. if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 4] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
  2409. if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 5] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
  2410. if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 6] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
  2411. if $modArr_AF_FLeague2_MatchesA[(modVar_AF_FBall_GameweekPlayed * 8) + 7] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Home'
  2412. if $modArr_AF_FLeague2_MatchesB[modVar_AF_FBall_GameweekPlayed * 8] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
  2413. if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 1] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
  2414. if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 2] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
  2415. if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 3] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
  2416. if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 4] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
  2417. if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 5] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
  2418. if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 6] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
  2419. if $modArr_AF_FLeague2_MatchesB[(modVar_AF_FBall_GameweekPlayed * 8) + 7] = 'Pavlovsk High' : $modVar_AF_TempStr = 'Away'
  2420. if $modVar_AF_TempStr = 'Home' : $modVar_AF_FBall_TravelMessage = 'Get to the School Sports Field by 3pm.'
  2421. 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.'
  2422. end
  2423. end
  2424. if $ARGS[0] = 'Advert':
  2425. *clr & cla
  2426. modVar_AF_EventProgress['Football'] = 1
  2427. if (year = 2017 and month > 5) or (year = 2018 and month <= 5):
  2428. modVar_AF_FBall_GameYear = 2017
  2429. else
  2430. modVar_AF_FBall_GameYear = 2016
  2431. end
  2432. gs 'mod_addedflavour_Football' , 'SetupLeagues'
  2433. gs 'mod_addedflavour_Football' , 'SetupMatches'
  2434. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Football/Advert.png"></center>'
  2435. *nl
  2436. '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!'
  2437. *nl
  2438. 'In any case, applications are handled by their Educational Facilities and you can find the scores on your laptop.'
  2439. act 'Return' : gt $loc, $loc_arg
  2440. end
  2441. if $ARGS[0] = 'DisplayLeagues':
  2442. *clr & cla
  2443. 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'
  2444. gs 'mod_addedflavour_Football' , 'FindGameweek'
  2445. gs 'mod_addedflavour_Football' , 'RunGameweek'
  2446. gs 'mod_addedflavour_Football' , 'SortRecords' , 'League'
  2447. KILLVAR '$modVar_AF_Row'
  2448. $modVar_AF_Row[] = '<tr><td><b>Team Name</b></td><td><b>Points</b></td><td><b>Goals For</b></td><td><b>Goals Against</b></td></tr>'
  2449. if $ARGS[1] = 'League 1':
  2450. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/system/LeftArrowGrey.png"><b><font size=50px> University League </font></b><a href="exec: gt ''mod_addedflavour_Football'' , ''DisplayLeagues'' , ''League 2'' "><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/system/RightArrow.png"></a></center>'
  2451. *nl
  2452. simleaguedisplayloopcount = 0
  2453. :simleaguedisplay1loopstart
  2454. if simleaguedisplayloopcount >= arrsize('$modArr_AF_FLeague1_TeamName') : jump 'simleaguedisplay1loopend'
  2455. $modVar_AF_Row[] = '<tr><td><<$modArr_AF_FLeague1_TeamName[simleaguedisplayloopcount]>></td><td><<modArr_AF_FLeague1_Points[simleaguedisplayloopcount]>></td><td><<modArr_AF_FLeague1_GoalsFor[simleaguedisplayloopcount]>></td><td><<modArr_AF_FLeague1_GoalsAgainst[simleaguedisplayloopcount]>></td></tr>'
  2456. simleaguedisplayloopcount += 1
  2457. jump 'simleaguedisplay1loopstart'
  2458. :simleaguedisplay1loopend
  2459. '<center><table border=1 style="width: 80%;text-align: center;"><<$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]>></table></center>'
  2460. elseif $ARGS[1] = 'League 2':
  2461. '<center><a href="exec: gt ''mod_addedflavour_Football'' , ''DisplayLeagues'' , ''League 1'' "><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/system/LeftArrow.png"></a><b><font size=50px> School League </font></b><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/system/RightArrowGrey.png"></center>'
  2462. *nl
  2463. simleaguedisplayloopcount = 0
  2464. :simleaguedisplay2loopstart
  2465. if simleaguedisplayloopcount >= arrsize('$modArr_AF_FLeague2_TeamName') : jump 'simleaguedisplay2loopend'
  2466. $modVar_AF_Row[] = '<tr><td><<$modArr_AF_FLeague2_TeamName[simleaguedisplayloopcount]>></td><td><<modArr_AF_FLeague2_Points[simleaguedisplayloopcount]>></td><td><<modArr_AF_FLeague2_GoalsFor[simleaguedisplayloopcount]>></td><td><<modArr_AF_FLeague2_GoalsAgainst[simleaguedisplayloopcount]>></td></tr>'
  2467. simleaguedisplayloopcount += 1
  2468. jump 'simleaguedisplay2loopstart'
  2469. :simleaguedisplay2loopend
  2470. '<center><table border=1 style="width: 80%;text-align: center;"><<$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]>></table></center>'
  2471. end
  2472. act 'Go Back' : gt 'komp', 'start'
  2473. if modVar_AF_EventProgress['Football'] >= 2:
  2474. act 'View Teams' : gs 'mod_addedflavour_Football' , 'SortRecords' , 'Players' & gt 'mod_addedflavour_Football' , 'ViewTeams' , 1
  2475. end
  2476. end
  2477. if $ARGS[0] = 'ViewTeams':
  2478. *clr & cla
  2479. modVar_AF_Temp = ARGS[1]
  2480. if modVar_AF_Temp > 6 :
  2481. $modVar_AF_TempStr = $modArr_AF_FLeague2_TeamName[modVar_AF_Temp - 7]
  2482. else
  2483. $modVar_AF_TempStr = $modArr_AF_FLeague1_TeamName[modVar_AF_Temp - 1]
  2484. end
  2485. '<center>' + iif(modVar_AF_Temp > 1,'<a href="exec: modVar_AF_Temp -= 1 & gt ''mod_addedflavour_Football'' , ''ViewTeams'' , modVar_AF_Temp "><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/system/LeftArrow.png"></a>','<img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/system/LeftArrowGrey.png">') + '<b><font size=50px> <<$modVar_AF_TempStr>> </font></b>' + iif(modVar_AF_Temp < 21,'<a href="exec: modVar_AF_Temp += 1 & gt ''mod_addedflavour_Football'' , ''ViewTeams'' , modVar_AF_Temp "><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/system/RightArrow.png"></a>','<img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/system/RightArrowGrey.png">') + '</center>'
  2486. *nl
  2487. viewteamplayersloopcount = 0
  2488. :viewteamplayersloopstart
  2489. if viewteamplayersloopcount >= arrsize('$modArr_AF_FBall_PlayerName') : jump 'viewteamplayersloopend'
  2490. if $modArr_AF_FBall_PlayerTeam[viewteamplayersloopcount] = $modVar_AF_TempStr : '<center><b><<$modArr_AF_FBall_PlayerName[viewteamplayersloopcount]>></b> (Rating : <<modArr_AF_FBall_PlayerSkill[viewteamplayersloopcount]>>)' + iif($modArr_AF_FBall_PlayerPosition[viewteamplayersloopcount] ! 'Any',' - <<$modArr_AF_FBall_PlayerPosition[viewteamplayersloopcount]>>','')
  2491. viewteamplayersloopcount += 1
  2492. jump 'viewteamplayersloopstart'
  2493. :viewteamplayersloopend
  2494. act 'Go Back' : gt 'mod_addedflavour_Football', 'DisplayLeagues' , 'League 1'
  2495. end
  2496. if $ARGS[0] = 'Join-L1':
  2497. *clr & cla
  2498. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/locations/city/island/university/UniCoach.jpg"></center>'
  2499. *nl
  2500. if $ARGS[1] = '':
  2501. '"Hello Sir. I''ve come to find you to request to be part of the University Women''s Football Team."'
  2502. *nl
  2503. if ftbll_lvl >= 50 or (modVar_AF_EventProgress['Football'] = 2 and SchoolAtestat = 1):
  2504. if modVar_AF_EventProgress['Football'] ! 2 : gs 'mod_addedflavour_Football' , 'SetupPlayers'
  2505. '<font color="Olive">"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?"</font>'
  2506. act 'Forward' : gt 'mod_addedflavour_Football' , 'Join-L1' , 'Forward'
  2507. act 'Midfielder' : gt 'mod_addedflavour_Football' , 'Join-L1' , 'Midfielder'
  2508. act 'Defender' : gt 'mod_addedflavour_Football' , 'Join-L1' , 'Defender'
  2509. else
  2510. '<font color="Olive">"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."</font>'
  2511. act 'Return' : gt $loc, $loc_arg
  2512. end
  2513. else
  2514. gs 'mod_addedflavour_Football' , 'SortRecords' , 'Players'
  2515. gs 'mod_addedflavour_Football' , 'AddPlayer-L1' , '<<$pcs_firstname>> <<$pcs_lastname>>' , $ARGS[1]
  2516. modVar_AF_Temp = arrpos('$modArr_AF_FBall_PlayerName','<<$pcs_firstname>> <<$pcs_lastname>>')
  2517. if modVar_AF_EventProgress['Football'] = 2 : $modArr_AF_FBall_PlayerName[modVar_AF_Temp] = 'Vtoroy Menya' & modArr_AF_FBall_PlayerSkill = rand(20,45)
  2518. gs 'mod_addedflavour_Football' , 'SortRecords' , 'Players'
  2519. modVar_AF_EventProgress['Football'] = 3
  2520. if $ARGS[1] = 'Forward' : '<font color="Olive">"Striker eh? No problem, been looking for someone to spice up the front."</font>'
  2521. if $ARGS[1] = 'Midfielder' : '<font color="Olive">"Want to play through the middle then? Fantastic, been wanting to mould someone into a Playmaker."</font>'
  2522. if $ARGS[1] = 'Defender' : '<font color="Olive">"Defender! Not too many people ask for that role that weren''t made for it. Still, can always use a good defender."</font>'
  2523. *nl
  2524. '<font color="Olive">"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."</font>'
  2525. *nl
  2526. '"Fantastic, you can trust me!"'
  2527. act 'Return' : gt $loc, $loc_arg
  2528. end
  2529. end
  2530. if $ARGS[0] = 'Join-L2':
  2531. *clr & cla
  2532. gs 'mod_addedflavour_A69_Functions' , 'config'
  2533. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="' + iif(version_minor >= 8 and version_revision >= 2 and version_patch >= 2,'images/characters/shared/photos/','images/pc/npc_headshots/') + 'big69.jpg"></center>'
  2534. *nl
  2535. '"Hello Mr Nikolaevich! I would like to join up with the School Football Team."'
  2536. *nl
  2537. if ftbll_lvl >= 20:
  2538. modVar_AF_EventProgress['Football'] = 2
  2539. gs 'mod_addedflavour_Football' , 'SetupPlayers'
  2540. gs 'mod_addedflavour_Football' , 'AddPlayer-L2' , '<<$pcs_firstname>> <<$pcs_lastname>>'
  2541. gs 'mod_addedflavour_Football' , 'SortRecords' , 'Players'
  2542. '<font color="<<$npc_fontcolor[''A69'']>>">"Well of course <<$pcs_firstname>>, we''d be glad to have you aboard. I''ll just quickly go through the arrangements..."</font>'
  2543. *nl
  2544. '<font color="<<$npc_fontcolor[''A69'']>>">"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."</font>'
  2545. *nl
  2546. '<i>... I guess I will have to take the Train, or get a lift from someone...</i>'
  2547. *nl
  2548. '<font color="<<$npc_fontcolor[''A69'']>>">"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."</font>'
  2549. *nl
  2550. '"That all sounds good Mr Nikolaevich, I''m looking forward to it already!"'
  2551. *nl
  2552. '<font color="<<$npc_fontcolor[''A69'']>>">"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!','.') + '"</font>'
  2553. else
  2554. '<font color="<<$npc_fontcolor[''A69'']>>">"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."</font>'
  2555. end
  2556. act 'Return' : gt $loc, $loc_arg
  2557. end
  2558. if $ARGS[0] = 'MatchStart':
  2559. *clr & cla
  2560. $modVar_AF_TempStr2 = $ARGS[1]
  2561. minut += 900 - ((hour * 60) + minut)
  2562. gs 'stat'
  2563. if $ARGS[1] = 'Locker':
  2564. modVar_AF_Rand = rand(10,30)
  2565. if modVar_AF_Rand <= 20 and modVar_AF_EventProgress['A142-Relationship'] >= 7:
  2566. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/characters/pavlovsk/school/girl/zinaida/Football<<rand(1,4)>>.jpg"></center>'
  2567. *nl
  2568. '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.'
  2569. else
  2570. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Football/LockerRoom.jpg"></center>'
  2571. *nl
  2572. '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.'
  2573. end
  2574. elseif $ARGS[1] = 'Train':
  2575. modVar_AF_Rand = rand(10,30)
  2576. if modVar_AF_Rand <= 20 and modVar_AF_EventProgress['A142-Relationship'] >= 7:
  2577. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Football/ZinaidaTravel.jpg"></center>'
  2578. *nl
  2579. '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.'
  2580. else
  2581. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Football/TrainTravel.jpg"></center>'
  2582. *nl
  2583. '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.'
  2584. end
  2585. elseif $ARGS[1] = 'Stepfather':
  2586. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Football/StepfatherTravel' + iif(modVar_AF_QSPVer = 1,'.gif','.webp') + '"></center>'
  2587. *nl
  2588. '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.'
  2589. elseif $ARGS[1] = 'Pitch':
  2590. gs 'mod_addedflavour_Football' , 'ChkMatch' , 'League 1'
  2591. pcs_energy += rand(45,55)
  2592. pcs_hydra += rand(70,90)
  2593. gs 'stat'
  2594. if $modVar_AF_TempStr = 'Home':
  2595. if ftbll_lvl <= 95 : ftbll_lvl += rand(1,5) & ftbll_lvlst = ftbll_lvl
  2596. $modVar_AF_FBall_TravelMessage = 'L1Home'
  2597. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Football/Pitch.jpg"></center>'
  2598. *nl
  2599. '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.'
  2600. elseif $modVar_AF_TempStr = 'Away':
  2601. $modVar_AF_FBall_TravelMessage = 'L1Away'
  2602. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Football/PlaneTravel.jpg"></center>'
  2603. *nl
  2604. '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.'
  2605. end
  2606. end
  2607. if modVar_AF_EventProgress['Football'] = 2:
  2608. *nl
  2609. '<b>Optional - Pick your Position</b>'
  2610. *nl
  2611. '(' + iif($modVar_AF_FBall_PosRequest = '','Random','<<$modVar_AF_FBall_PosRequest>>') + ')'
  2612. '[<a href="exec: $modVar_AF_FBall_PosRequest = ''Forward'' & gt ''mod_addedflavour_Football'' , ''MatchStart'' , $modVar_AF_TempStr2 ">Forward</a>][<a href="exec: $modVar_AF_FBall_PosRequest = ''Midfielder'' & gt ''mod_addedflavour_Football'' , ''MatchStart'' , $modVar_AF_TempStr2 ">Midfielder</a>][<a href="exec: $modVar_AF_FBall_PosRequest = ''Defender'' & gt ''mod_addedflavour_Football'' , ''MatchStart'' , $modVar_AF_TempStr2 ">Defender</a>][<a href="exec: KILLVAR ''$modVar_AF_FBall_PosRequest'' & gt ''mod_addedflavour_Football'' , ''MatchStart'' , $modVar_AF_TempStr2 ">Random</a>]'
  2613. end
  2614. act 'Start the Match' : gs 'mod_addedflavour_Football' , 'SortRecords' , 'Players' & gs 'mod_addedflavour_Football' , 'FindGameweek' & gt 'mod_addedflavour_Football' , 'RunGameweek' , 'Run'
  2615. end
  2616. if $ARGS[0] = 'MatchPost':
  2617. *clr & cla
  2618. '<center><u2><b>Today''s Matches</b></u2></center>'
  2619. listtodaysgamesloopcount = 0
  2620. :listtodaysgamesloopstart
  2621. if listtodaysgamesloopcount >= arrsize('$modArr_AF_LastGameDay') : jump 'listtodaysgamesloopend'
  2622. '<center><<$modArr_AF_LastGameDay[listtodaysgamesloopcount]>></center>'
  2623. listtodaysgamesloopcount += 1
  2624. jump 'listtodaysgamesloopstart'
  2625. :listtodaysgamesloopend
  2626. *nl
  2627. '<center><u2><b>Leaving the Match</b></u2></center>'
  2628. *nl
  2629. if $modVar_AF_FBall_TravelMessage = 'Get to the School Sports Field by 3pm.':
  2630. minut += rand(5,10)
  2631. '<center>With the game over you get changed and head back out into Pavlovsk</center>'
  2632. act 'Leave' : gt $loc, $loc_arg
  2633. elseif $modVar_AF_FBall_TravelMessage = 'Get to the Train Station by 1pm.':
  2634. minut += rand(120,150)
  2635. '<center>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.</center>'
  2636. act 'Get back to Pavlovsk' : gt $loc, $loc_arg
  2637. elseif $modVar_AF_FBall_TravelMessage = 'Leave with your Stepfather between 1pm and 2pm.':
  2638. '<center>With the game over you go and find your Stepfather in order to go home.</center>'
  2639. *nl
  2640. '<center><font color="<<$npc_fontcolor[''A28'']>>">"You ready to head off? Let''s get going."</font></center>'
  2641. if npc_sex['A28'] ! 0:
  2642. *nl
  2643. '<center><font color="<<$npc_fontcolor[''A28'']>>">"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?</center>'
  2644. act 'Go have some fun' : minut += rand(30,40) & gt 'mod_addedflavour_A28_Events' , 'A28-FootballEv-1'
  2645. act 'Let''s just get home' : minut += rand(60,75) & gt 'korrPar'
  2646. end
  2647. act 'Go home' : minut += rand(60,75) & gt 'korrPar'
  2648. elseif $modVar_AF_FBall_TravelMessage = 'L1Home':
  2649. minut += rand(15,20)
  2650. '<center>With the game over you get a quick debriefing then get changed and head out of the University</center>'
  2651. act 'Leave' : gt 'city_island'
  2652. elseif $modVar_AF_FBall_TravelMessage = 'L1Away':
  2653. minut += rand(300,360)
  2654. '<center>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.</center>'
  2655. act 'Leave' : gt 'city_island'
  2656. end
  2657. gs 'stat'
  2658. end
  2659. if $ARGS[0] = 'AddPlayer-L1':
  2660. addplayerloopcount = 0
  2661. :addplayerL1loopstart
  2662. if addplayerloopcount >= arrsize('$modArr_AF_FBall_PlayerTeam') : jump 'addplayerL1loopend'
  2663. 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
  2664. addplayerloopcount += 1
  2665. jump 'addplayerL1loopstart'
  2666. :addplayerL1loopend
  2667. $modArr_AF_FBall_PlayerName[modVar_AF_Temp] = $ARGS[1]
  2668. modArr_AF_FBall_PlayerSkill[modVar_AF_Temp] = pcs_ftbll
  2669. end
  2670. if $ARGS[0] = 'AddPlayer-L2':
  2671. addplayerloopcount = 0
  2672. :addplayerL2loopstart
  2673. if addplayerloopcount >= arrsize('$modArr_AF_FBall_PlayerTeam') : jump 'addplayerL2loopend'
  2674. if $modArr_AF_FBall_PlayerTeam[addplayerloopcount] = 'Pavlovsk High' and $modArr_AF_FBall_PlayerName[addplayerloopcount] ! '<<$pcs_firstname>> <<$pcs_lastname>>': modVar_AF_Temp = addplayerloopcount
  2675. addplayerloopcount += 1
  2676. jump 'addplayerL2loopstart'
  2677. :addplayerL2loopend
  2678. $modArr_AF_FBall_PlayerName[modVar_AF_Temp] = $ARGS[1]
  2679. if $ARGS[1] = 'Zinaida Alkaev':
  2680. modArr_AF_FBall_PlayerSkill[modVar_AF_Temp] = rand(35,40)
  2681. else
  2682. modArr_AF_FBall_PlayerSkill[modVar_AF_Temp] = pcs_ftbll
  2683. end
  2684. end
  2685. if $ARGS[0] = 'Training':
  2686. *clr & cla
  2687. modVar_AF_Temp = 0
  2688. minut += rand(55,65)
  2689. if ftbll_lvl < 100 : ftbll_lvl += 1 & ftbll_lvlst = ftbll_lvl
  2690. if $loc = 'mod_addedflavour_city_upitch' and rand(1,difficulty) = 1 and modVar_AF_EventLock['A4-MeetEva'] ! daystart : modVar_AF_Temp = 1
  2691. gs 'stat'
  2692. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Football/Training<<rand(1,3)>>.jpg"></center>'
  2693. *nl
  2694. 'You join up with whoever is around and do some Training & Drills doing so to the best of your ability.'
  2695. if modVar_AF_Temp = 1:
  2696. act 'Finish up' : gt 'mod_addedflavour_A4_Events' , 'A4-MeetEvaEv-X1'
  2697. else
  2698. act 'Finish up' : gt $loc, $loc_arg
  2699. end
  2700. end
  2701. --- mod_addedflavour_Football ---------------------------------