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