mod_addedflavour_Volleyball.qsrc 124 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021
  1. # mod_addedflavour_Volleyball
  2. if $ARGS[0] = 'Match':
  3. if sound = 0 : PLAY 'mod/addedflavour/sound/<<$modVar_AF_Music>>.mp3'
  4. gs 'stat'
  5. '<center><b>' + iif($modVar_AF_MatchBallTeam = 'A','<u>','') + '<<$modVar_AF_TeamA_PlayerTeam>>' + iif($modVar_AF_MatchBallTeam = 'A','</u>','') + '</b> - <<modVar_AF_MatchPointsA>> -vs- <<modVar_AF_MatchPointsB>> - <b>' + iif($modVar_AF_MatchBallTeam = 'B','<u>','') + '<<$modVar_AF_TeamB_PlayerTeam>>' + iif($modVar_AF_MatchBallTeam = 'B','</u>','') + '</b></center>'
  6. KILLVAR '$modArr_AF_MatchAIOptions'
  7. gs 'mod_addedflavour_Volleyball' , 'AIStance'
  8. gs 'mod_addedflavour_Volleyball' , 'BallAction'
  9. gs 'mod_addedflavour_Volleyball' , 'ManageStamina' , 'Event'
  10. gs 'mod_addedflavour_Volleyball' , 'PlayerKnowledge'
  11. if $modVar_AF_MatchPlayerLoc ! 'AX' and $modVar_AF_MatchPlayerLoc ! 'BX':
  12. if $modVar_AF_MatchAction ! 'Fumble' and $modVar_AF_MatchPlayerLoc ! $modVar_AF_MatchBall:
  13. if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Defend':
  14. if strpos($modVar_AF_MatchPlayerLoc,'1') ! 0 :
  15. act 'Go Wide' : $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Wide' & gs 'mod_addedflavour_Volleyball' , 'AIAction'
  16. elseif strpos($modVar_AF_MatchPlayerLoc,'3') ! 0 :
  17. act 'Go Wide' : $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Wide' & gs 'mod_addedflavour_Volleyball' , 'AIAction'
  18. elseif strpos($modVar_AF_MatchPlayerLoc,'4') ! 0 :
  19. act 'Move Forward' : $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Attack' & gs 'mod_addedflavour_Volleyball' , 'AIAction'
  20. elseif strpos($modVar_AF_MatchPlayerLoc,'5') ! 0 :
  21. act 'Move Forward' : $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Attack' & gs 'mod_addedflavour_Volleyball' , 'AIAction'
  22. elseif strpos($modVar_AF_MatchPlayerLoc,'6') ! 0 :
  23. act 'Move Forward' : $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Attack' & gs 'mod_addedflavour_Volleyball' , 'AIAction'
  24. end
  25. end
  26. if $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Attack' or $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Wide':
  27. act 'Return Defensive' : $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Defend' & gs 'mod_addedflavour_Volleyball' , 'AIAction'
  28. end
  29. act 'Just Watch the Play' : gs 'mod_addedflavour_Volleyball' , 'AIAction'
  30. end
  31. elseif $modVar_AF_MatchAction ! 'Fumble':
  32. act 'Just Watch the Play' : gs 'mod_addedflavour_Volleyball' , 'AIAction'
  33. end
  34. *nl
  35. '<a href="exec: gs ''mod_addedflavour_Volleyball'' , ''ChangeMusic'' ">Change Music</a>'
  36. *nl
  37. end
  38. if $ARGS[0] = 'ChangeMusic':
  39. if $modVar_AF_Music = 'VolleyballPractice':
  40. $modVar_AF_Music = 'VolleyballTournament'
  41. elseif $modVar_AF_Music = 'VolleyballTournament':
  42. $modVar_AF_Music = 'VolleyballFinal'
  43. elseif $modVar_AF_Music = 'VolleyballFinal':
  44. $modVar_AF_Music = 'No Music'
  45. elseif $modVar_AF_Music = 'No Music':
  46. $modVar_AF_Music = 'VolleyballPractice'
  47. end
  48. 'Backing Track is currently set to - "<<$modVar_AF_Music>>"'
  49. CLOSE ALL
  50. PLAY 'mod/addedflavour/sound/<<$modVar_AF_Music>>.mp3'
  51. end
  52. if $ARGS[0] = 'BallAction':
  53. if $modVar_AF_MatchAction = 'Serve':
  54. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Volleyball/Serve<<rand(1,4)>>.jpg"></center>'
  55. *nl
  56. modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>']
  57. if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
  58. if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
  59. '<center><b><<$modVar_AF_TempStr>></b> prepares to Serve the Ball...</center>'
  60. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  61. act 'Serve to Zone 1' : gs 'mod_addedflavour_Volleyball' , 'ServeAction' , '1'
  62. else
  63. $modArr_AF_MatchAIOptions[] = 'Serve-1'
  64. end
  65. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  66. act 'Serve to Zone 2' : gs 'mod_addedflavour_Volleyball' , 'ServeAction' , '2'
  67. else
  68. $modArr_AF_MatchAIOptions[] = 'Serve-2'
  69. end
  70. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  71. act 'Serve to Zone 3' : gs 'mod_addedflavour_Volleyball' , 'ServeAction' , '3'
  72. else
  73. $modArr_AF_MatchAIOptions[] = 'Serve-3'
  74. end
  75. end
  76. if $modVar_AF_MatchAction = 'Pass':
  77. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Volleyball/Pass<<rand(1,4)>>.jpg"></center>'
  78. *nl
  79. modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>']
  80. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchBallPrev>>']
  81. if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
  82. if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
  83. if strpos($modVar_AF_MatchBallPrev,'A') ! 0 and $modVar_AF_MatchBallTeam = 'B':
  84. $modVar_AF_TempStr2 = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]
  85. elseif strpos($modVar_AF_MatchBallPrev,'B') ! 0 and $modVar_AF_MatchBallTeam = 'A':
  86. $modVar_AF_TempStr2 = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]
  87. else
  88. if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr2 = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]
  89. if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr2 = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]
  90. end
  91. '<center><b><<$modVar_AF_TempStr2>></b> hits the Ball to <b><<$modVar_AF_TempStr>></b>...</center>'
  92. if strpos($modVar_AF_MatchBall,'1') ! 0:
  93. if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>3'] = 'Wide':
  94. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  95. act 'Pass to Zone 3' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '3'
  96. else
  97. $modArr_AF_MatchAIOptions[] = 'Pass-3'
  98. end
  99. end
  100. if modVar_AF_MatchTouches < 2:
  101. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  102. act 'Pass to Zone 4' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '4'
  103. else
  104. $modArr_AF_MatchAIOptions[] = 'Pass-4'
  105. end
  106. end
  107. if modVar_AF_MatchTouches < 2:
  108. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  109. act 'Pass to Zone 5' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '5'
  110. else
  111. $modArr_AF_MatchAIOptions[] = 'Pass-5'
  112. end
  113. end
  114. if modVar_AF_MatchTouches < 2:
  115. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  116. act 'Pass to Zone 6' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '6'
  117. else
  118. $modArr_AF_MatchAIOptions[] = 'Pass-6'
  119. end
  120. end
  121. if modVar_AF_MatchTouches > 1 or $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>1'] = 'Wide':
  122. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  123. act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction'
  124. else
  125. $modArr_AF_MatchAIOptions[] = 'SpikeAttack'
  126. end
  127. end
  128. elseif strpos($modVar_AF_MatchBall,'2') ! 0:
  129. if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>1'] = 'Wide':
  130. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  131. act 'Pass to Zone 1' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '1'
  132. else
  133. $modArr_AF_MatchAIOptions[] = 'Pass-1'
  134. end
  135. end
  136. if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>3'] = 'Wide':
  137. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  138. act 'Pass to Zone 3' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '3'
  139. else
  140. $modArr_AF_MatchAIOptions[] = 'Pass-3'
  141. end
  142. end
  143. if modVar_AF_MatchTouches < 2:
  144. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  145. act 'Pass to Zone 4' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '4'
  146. else
  147. $modArr_AF_MatchAIOptions[] = 'Pass-4'
  148. end
  149. end
  150. if modVar_AF_MatchTouches < 2:
  151. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  152. act 'Pass to Zone 5' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '5'
  153. else
  154. $modArr_AF_MatchAIOptions[] = 'Pass-5'
  155. end
  156. end
  157. if modVar_AF_MatchTouches < 2:
  158. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  159. act 'Pass to Zone 6' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '6'
  160. else
  161. $modArr_AF_MatchAIOptions[] = 'Pass-6'
  162. end
  163. end
  164. if modVar_AF_MatchTouches > 1:
  165. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  166. act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction'
  167. else
  168. $modArr_AF_MatchAIOptions[] = 'SpikeAttack'
  169. end
  170. end
  171. elseif strpos($modVar_AF_MatchBall,'3') ! 0:
  172. if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>1'] = 'Wide':
  173. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  174. act 'Pass to Zone 1' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '1'
  175. else
  176. $modArr_AF_MatchAIOptions[] = 'Pass-1'
  177. end
  178. end
  179. if modVar_AF_MatchTouches < 2:
  180. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  181. act 'Pass to Zone 4' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '4'
  182. else
  183. $modArr_AF_MatchAIOptions[] = 'Pass-4'
  184. end
  185. end
  186. if modVar_AF_MatchTouches < 2:
  187. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  188. act 'Pass to Zone 5' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '5'
  189. else
  190. $modArr_AF_MatchAIOptions[] = 'Pass-5'
  191. end
  192. end
  193. if modVar_AF_MatchTouches < 2:
  194. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  195. act 'Pass to Zone 6' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '6'
  196. else
  197. $modArr_AF_MatchAIOptions[] = 'Pass-6'
  198. end
  199. end
  200. if modVar_AF_MatchTouches > 1 or $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>3'] = 'Wide':
  201. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  202. act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction'
  203. else
  204. $modArr_AF_MatchAIOptions[] = 'SpikeAttack'
  205. end
  206. end
  207. elseif strpos($modVar_AF_MatchBall,'4') ! 0:
  208. if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>1'] = 'Wide':
  209. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  210. act 'Pass to Zone 1' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '1'
  211. else
  212. $modArr_AF_MatchAIOptions[] = 'Pass-1'
  213. end
  214. end
  215. if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>3'] = 'Wide':
  216. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  217. act 'Pass to Zone 3' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '3'
  218. else
  219. $modArr_AF_MatchAIOptions[] = 'Pass-3'
  220. end
  221. end
  222. if modVar_AF_MatchTouches < 2:
  223. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  224. act 'Pass to Zone 5' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '5'
  225. else
  226. $modArr_AF_MatchAIOptions[] = 'Pass-5'
  227. end
  228. end
  229. if modVar_AF_MatchTouches < 2:
  230. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  231. act 'Pass to Zone 6' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '6'
  232. else
  233. $modArr_AF_MatchAIOptions[] = 'Pass-6'
  234. end
  235. end
  236. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  237. act 'Tip Attack (Front Row)' : gs 'mod_addedflavour_Volleyball' , 'TipAction'
  238. else
  239. $modArr_AF_MatchAIOptions[] = 'TipAttack'
  240. end
  241. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  242. act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction'
  243. else
  244. $modArr_AF_MatchAIOptions[] = 'SpikeAttack'
  245. end
  246. elseif strpos($modVar_AF_MatchBall,'5') ! 0:
  247. if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>1'] = 'Wide':
  248. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  249. act 'Pass to Zone 1' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '1'
  250. else
  251. $modArr_AF_MatchAIOptions[] = 'Pass-1'
  252. end
  253. end
  254. if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>3'] = 'Wide':
  255. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  256. act 'Pass to Zone 3' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '3'
  257. else
  258. $modArr_AF_MatchAIOptions[] = 'Pass-3'
  259. end
  260. end
  261. if modVar_AF_MatchTouches < 2:
  262. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  263. act 'Pass to Zone 4' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '4'
  264. else
  265. $modArr_AF_MatchAIOptions[] = 'Pass-4'
  266. end
  267. end
  268. if modVar_AF_MatchTouches < 2:
  269. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  270. act 'Pass to Zone 6' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '6'
  271. else
  272. $modArr_AF_MatchAIOptions[] = 'Pass-6'
  273. end
  274. end
  275. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  276. act 'Tip Attack (Front Row)' : gs 'mod_addedflavour_Volleyball' , 'TipAction'
  277. else
  278. $modArr_AF_MatchAIOptions[] = 'TipAttack'
  279. end
  280. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  281. act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction'
  282. else
  283. $modArr_AF_MatchAIOptions[] = 'SpikeAttack'
  284. end
  285. elseif strpos($modVar_AF_MatchBall,'6') ! 0:
  286. if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>1'] = 'Wide':
  287. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  288. act 'Pass to Zone 1' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '1'
  289. else
  290. $modArr_AF_MatchAIOptions[] = 'Pass-1'
  291. end
  292. end
  293. if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>3'] = 'Wide':
  294. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  295. act 'Pass to Zone 3' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '3'
  296. else
  297. $modArr_AF_MatchAIOptions[] = 'Pass-3'
  298. end
  299. end
  300. if modVar_AF_MatchTouches < 2:
  301. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  302. act 'Pass to Zone 4' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '4'
  303. else
  304. $modArr_AF_MatchAIOptions[] = 'Pass-4'
  305. end
  306. end
  307. if modVar_AF_MatchTouches < 2:
  308. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  309. act 'Pass to Zone 5' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '5'
  310. else
  311. $modArr_AF_MatchAIOptions[] = 'Pass-5'
  312. end
  313. end
  314. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  315. act 'Tip Attack (Front Row)' : gs 'mod_addedflavour_Volleyball' , 'TipAction'
  316. else
  317. $modArr_AF_MatchAIOptions[] = 'TipAttack'
  318. end
  319. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  320. act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction'
  321. else
  322. $modArr_AF_MatchAIOptions[] = 'SpikeAttack'
  323. end
  324. end
  325. end
  326. if $modVar_AF_MatchAction = 'Tip':
  327. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Volleyball/Tip<<rand(1,4)>>.jpg"></center>'
  328. *nl
  329. modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>']
  330. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchBallPrev>>']
  331. if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
  332. if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
  333. if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr2 = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]
  334. if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr2 = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]
  335. '<center><b><<$modVar_AF_TempStr2>></b> Tips the Ball! <b><<$modVar_AF_TempStr>></b> is nearest to intercept...</center>'
  336. if strpos($modVar_AF_MatchBall,'4') ! 0:
  337. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  338. act 'Block' : gs 'mod_addedflavour_Volleyball' , 'BlockAction'
  339. else
  340. $modArr_AF_MatchAIOptions[] = 'Block'
  341. end
  342. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  343. act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction'
  344. else
  345. $modArr_AF_MatchAIOptions[] = 'SpikeAttack'
  346. end
  347. elseif strpos($modVar_AF_MatchBall,'5') ! 0:
  348. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  349. act 'Block' : gs 'mod_addedflavour_Volleyball' , 'BlockAction'
  350. else
  351. $modArr_AF_MatchAIOptions[] = 'Block'
  352. end
  353. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  354. act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction'
  355. else
  356. $modArr_AF_MatchAIOptions[] = 'SpikeAttack'
  357. end
  358. elseif strpos($modVar_AF_MatchBall,'6') ! 0:
  359. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  360. act 'Block' : gs 'mod_addedflavour_Volleyball' , 'BlockAction'
  361. else
  362. $modArr_AF_MatchAIOptions[] = 'Block'
  363. end
  364. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  365. act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction'
  366. else
  367. $modArr_AF_MatchAIOptions[] = 'SpikeAttack'
  368. end
  369. end
  370. end
  371. if $modVar_AF_MatchAction = 'Spike':
  372. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Volleyball/Spike<<rand(1,4)>>.jpg"></center>'
  373. *nl
  374. modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>']
  375. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchBallPrev>>']
  376. if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
  377. if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
  378. if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr2 = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]
  379. if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr2 = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]
  380. '<center><b><<$modVar_AF_TempStr2>></b> Spikes the Ball! <b><<$modVar_AF_TempStr>></b> is nearest to intercept...</center>'
  381. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  382. act 'Block' : gs 'mod_addedflavour_Volleyball' , 'BlockAction'
  383. else
  384. $modArr_AF_MatchAIOptions[] = 'Block'
  385. end
  386. end
  387. if $modVar_AF_MatchAction = 'Block':
  388. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Volleyball/Block<<rand(1,4)>>.jpg"></center>'
  389. *nl
  390. modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>']
  391. if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
  392. if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
  393. '<center><b><<$modVar_AF_TempStr>></b> Blocks the Ball!</center>'
  394. if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall:
  395. act 'Rebound' : gs 'mod_addedflavour_Volleyball' , 'ReboundAction'
  396. else
  397. $modArr_AF_MatchAIOptions[] = 'Rebound'
  398. end
  399. end
  400. if $modVar_AF_MatchAction = 'Fumble':
  401. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Volleyball/Fumble<<rand(1,2)>>.jpg"></center>'
  402. *nl
  403. modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>']
  404. if $modVar_AF_MatchBallTeam = 'A':
  405. $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp]
  406. $modVar_AF_TempStr2 = $modVar_AF_TeamB_PlayerTeam
  407. modVar_AF_MatchPointsB += 1
  408. elseif $modVar_AF_MatchBallTeam = 'B':
  409. $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp]
  410. $modVar_AF_TempStr2 = $modVar_AF_TeamA_PlayerTeam
  411. modVar_AF_MatchPointsA += 1
  412. end
  413. modVar_AF_MatchRound += 1
  414. '<center><b><<$modVar_AF_TempStr>></b> Fumbles! Point to <b><<$modVar_AF_TempStr2>></b></center>'
  415. gs 'mod_addedflavour_Volleyball' , 'FumbleAction'
  416. end
  417. end
  418. if $ARGS[0] = 'ServeAction':
  419. if $ARGS[1] = '1':
  420. if $modVar_AF_MatchBallTeam = 'A':
  421. $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallTeam = 'B' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B1' & gt 'mod_addedflavour_Volleyball' , 'Match'
  422. else
  423. $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallTeam = 'A' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A1' & gt 'mod_addedflavour_Volleyball' , 'Match'
  424. end
  425. elseif $ARGS[1] = '2':
  426. if $modVar_AF_MatchBallTeam = 'A':
  427. $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallTeam = 'B' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  428. else
  429. $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallTeam = 'A' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  430. end
  431. elseif $ARGS[1] = '3':
  432. if $modVar_AF_MatchBallTeam = 'A':
  433. $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallTeam = 'B' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B3' & gt 'mod_addedflavour_Volleyball' , 'Match'
  434. else
  435. $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallTeam = 'A' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A3' & gt 'mod_addedflavour_Volleyball' , 'Match'
  436. end
  437. end
  438. end
  439. if $ARGS[0] = 'PassAction':
  440. if $ARGS[1] = '1':
  441. if $modVar_AF_MatchBallTeam = 'A':
  442. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A1' & gt 'mod_addedflavour_Volleyball' , 'Match'
  443. else
  444. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B1' & gt 'mod_addedflavour_Volleyball' , 'Match'
  445. end
  446. elseif $ARGS[1] = '2':
  447. if $modVar_AF_MatchBallTeam = 'A':
  448. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  449. else
  450. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  451. end
  452. elseif $ARGS[1] = '3':
  453. if $modVar_AF_MatchBallTeam = 'A':
  454. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A3' & gt 'mod_addedflavour_Volleyball' , 'Match'
  455. else
  456. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B3' & gt 'mod_addedflavour_Volleyball' , 'Match'
  457. end
  458. elseif $ARGS[1] = '4':
  459. if $modVar_AF_MatchBallTeam = 'A':
  460. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A4' & gt 'mod_addedflavour_Volleyball' , 'Match'
  461. else
  462. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B4' & gt 'mod_addedflavour_Volleyball' , 'Match'
  463. end
  464. elseif $ARGS[1] = '5':
  465. if $modVar_AF_MatchBallTeam = 'A':
  466. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  467. else
  468. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  469. end
  470. elseif $ARGS[1] = '6':
  471. if $modVar_AF_MatchBallTeam = 'A':
  472. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A6' & gt 'mod_addedflavour_Volleyball' , 'Match'
  473. else
  474. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B6' & gt 'mod_addedflavour_Volleyball' , 'Match'
  475. end
  476. end
  477. end
  478. if $ARGS[0] = 'TipAction':
  479. modVar_AF_Rand = rand(1,150)
  480. if modVar_AF_Rand < 50:
  481. if $modVar_AF_MatchBallTeam = 'A':
  482. modVar_AF_MatchTouches = 0 & $modVar_AF_MatchAction = 'Tip' & $modVar_AF_MatchBallTeam = 'B' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B4' & gt 'mod_addedflavour_Volleyball' , 'Match'
  483. else
  484. modVar_AF_MatchTouches = 0 & $modVar_AF_MatchAction = 'Tip' & $modVar_AF_MatchBallTeam = 'A' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A4' & gt 'mod_addedflavour_Volleyball' , 'Match'
  485. end
  486. elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100:
  487. if $modVar_AF_MatchBallTeam = 'A':
  488. modVar_AF_MatchTouches = 0 & $modVar_AF_MatchAction = 'Tip' & $modVar_AF_MatchBallTeam = 'B' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  489. else
  490. modVar_AF_MatchTouches = 0 & $modVar_AF_MatchAction = 'Tip' & $modVar_AF_MatchBallTeam = 'A' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  491. end
  492. elseif modVar_AF_Rand > 100:
  493. if $modVar_AF_MatchBallTeam = 'A':
  494. modVar_AF_MatchTouches = 0 & $modVar_AF_MatchAction = 'Tip' & $modVar_AF_MatchBallTeam = 'B' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B6' & gt 'mod_addedflavour_Volleyball' , 'Match'
  495. else
  496. modVar_AF_MatchTouches = 0 & $modVar_AF_MatchAction = 'Tip' & $modVar_AF_MatchBallTeam = 'A' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A6' & gt 'mod_addedflavour_Volleyball' , 'Match'
  497. end
  498. end
  499. end
  500. if $ARGS[0] = 'SpikeAction':
  501. if $modVar_AF_MatchAction = 'Tip':
  502. gs 'mod_addedflavour_Volleyball' , 'CalcEvent' , $modVar_AF_MatchAction
  503. if $modVar_AF_TempStr = 'Fail' : $modVar_AF_MatchAction = 'Fumble' & gt 'mod_addedflavour_Volleyball' , 'Match'
  504. end
  505. modVar_AF_Rand = rand(1,150)
  506. if modVar_AF_Rand < 50:
  507. if $modVar_AF_MatchBallTeam = 'A':
  508. modVar_AF_MatchTouches = 0 & $modVar_AF_MatchAction = 'Spike' & $modVar_AF_MatchBallTeam = 'B' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B1' & gt 'mod_addedflavour_Volleyball' , 'Match'
  509. else
  510. modVar_AF_MatchTouches = 0 & $modVar_AF_MatchAction = 'Spike' & $modVar_AF_MatchBallTeam = 'A' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A1' & gt 'mod_addedflavour_Volleyball' , 'Match'
  511. end
  512. elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100:
  513. if $modVar_AF_MatchBallTeam = 'A':
  514. modVar_AF_MatchTouches = 0 & $modVar_AF_MatchAction = 'Spike' & $modVar_AF_MatchBallTeam = 'B' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  515. else
  516. modVar_AF_MatchTouches = 0 & $modVar_AF_MatchAction = 'Spike' & $modVar_AF_MatchBallTeam = 'A' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  517. end
  518. elseif modVar_AF_Rand > 100:
  519. if $modVar_AF_MatchBallTeam = 'A':
  520. modVar_AF_MatchTouches = 0 & $modVar_AF_MatchAction = 'Spike' & $modVar_AF_MatchBallTeam = 'B' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B3' & gt 'mod_addedflavour_Volleyball' , 'Match'
  521. else
  522. modVar_AF_MatchTouches = 0 & $modVar_AF_MatchAction = 'Spike' & $modVar_AF_MatchBallTeam = 'A' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A3' & gt 'mod_addedflavour_Volleyball' , 'Match'
  523. end
  524. end
  525. end
  526. if $ARGS[0] = 'BlockAction':
  527. gs 'mod_addedflavour_Volleyball' , 'CalcEvent' , $modVar_AF_MatchAction
  528. if $modVar_AF_TempStr = 'Success':
  529. $modVar_AF_MatchAction = 'Block' & gt 'mod_addedflavour_Volleyball' , 'Match'
  530. elseif $modVar_AF_TempStr = 'Fail':
  531. $modVar_AF_MatchAction = 'Fumble' & gt 'mod_addedflavour_Volleyball' , 'Match'
  532. end
  533. end
  534. if $ARGS[0] = 'ReboundAction':
  535. modVar_AF_Rand = rand(1,150)
  536. if strpos($modVar_AF_MatchBall,'1') ! 0:
  537. if modVar_AF_Rand < 50:
  538. if $modVar_AF_MatchBallTeam = 'A':
  539. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  540. else
  541. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  542. end
  543. elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100:
  544. if $modVar_AF_MatchBallTeam = 'A':
  545. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  546. else
  547. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  548. end
  549. elseif modVar_AF_Rand > 100:
  550. if $modVar_AF_MatchBallTeam = 'A':
  551. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A6' & gt 'mod_addedflavour_Volleyball' , 'Match'
  552. else
  553. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B6' & gt 'mod_addedflavour_Volleyball' , 'Match'
  554. end
  555. end
  556. elseif strpos($modVar_AF_MatchBall,'2') ! 0:
  557. if modVar_AF_Rand < 50:
  558. if $modVar_AF_MatchBallTeam = 'A':
  559. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A1' & gt 'mod_addedflavour_Volleyball' , 'Match'
  560. else
  561. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B1' & gt 'mod_addedflavour_Volleyball' , 'Match'
  562. end
  563. elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100:
  564. if $modVar_AF_MatchBallTeam = 'A':
  565. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A3' & gt 'mod_addedflavour_Volleyball' , 'Match'
  566. else
  567. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B3' & gt 'mod_addedflavour_Volleyball' , 'Match'
  568. end
  569. elseif modVar_AF_Rand > 100:
  570. if $modVar_AF_MatchBallTeam = 'A':
  571. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  572. else
  573. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  574. end
  575. end
  576. elseif strpos($modVar_AF_MatchBall,'3') ! 0:
  577. if modVar_AF_Rand < 50:
  578. if $modVar_AF_MatchBallTeam = 'A':
  579. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  580. else
  581. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  582. end
  583. elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100:
  584. if $modVar_AF_MatchBallTeam = 'A':
  585. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A4' & gt 'mod_addedflavour_Volleyball' , 'Match'
  586. else
  587. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B4' & gt 'mod_addedflavour_Volleyball' , 'Match'
  588. end
  589. elseif modVar_AF_Rand > 100:
  590. if $modVar_AF_MatchBallTeam = 'A':
  591. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  592. else
  593. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  594. end
  595. end
  596. elseif strpos($modVar_AF_MatchBall,'4') ! 0:
  597. if modVar_AF_Rand < 50:
  598. if $modVar_AF_MatchBallTeam = 'A':
  599. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  600. else
  601. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  602. end
  603. elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100:
  604. if $modVar_AF_MatchBallTeam = 'A':
  605. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A3' & gt 'mod_addedflavour_Volleyball' , 'Match'
  606. else
  607. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B3' & gt 'mod_addedflavour_Volleyball' , 'Match'
  608. end
  609. elseif modVar_AF_Rand > 100:
  610. if $modVar_AF_MatchBallTeam = 'A':
  611. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  612. else
  613. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  614. end
  615. end
  616. elseif strpos($modVar_AF_MatchBall,'5') ! 0:
  617. if modVar_AF_Rand < 50:
  618. if $modVar_AF_MatchBallTeam = 'A':
  619. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  620. else
  621. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  622. end
  623. elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100:
  624. if $modVar_AF_MatchBallTeam = 'A':
  625. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A4' & gt 'mod_addedflavour_Volleyball' , 'Match'
  626. else
  627. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B4' & gt 'mod_addedflavour_Volleyball' , 'Match'
  628. end
  629. elseif modVar_AF_Rand > 100:
  630. if $modVar_AF_MatchBallTeam = 'A':
  631. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A6' & gt 'mod_addedflavour_Volleyball' , 'Match'
  632. else
  633. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B6' & gt 'mod_addedflavour_Volleyball' , 'Match'
  634. end
  635. end
  636. elseif strpos($modVar_AF_MatchBall,'6') ! 0:
  637. if modVar_AF_Rand < 50:
  638. if $modVar_AF_MatchBallTeam = 'A':
  639. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A1' & gt 'mod_addedflavour_Volleyball' , 'Match'
  640. else
  641. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B1' & gt 'mod_addedflavour_Volleyball' , 'Match'
  642. end
  643. elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100:
  644. if $modVar_AF_MatchBallTeam = 'A':
  645. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  646. else
  647. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match'
  648. end
  649. elseif modVar_AF_Rand > 100:
  650. if $modVar_AF_MatchBallTeam = 'A':
  651. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  652. else
  653. modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B5' & gt 'mod_addedflavour_Volleyball' , 'Match'
  654. end
  655. end
  656. end
  657. end
  658. if $ARGS[0] = 'FumbleAction':
  659. modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBallPrev>>']
  660. if $modVar_AF_MatchBallTeam = 'A' : modArr_AF_MatchBScorers[modVar_AF_Temp] += 1
  661. if $modVar_AF_MatchBallTeam = 'B' : modArr_AF_MatchAScorers[modVar_AF_Temp] += 1
  662. if modVar_AF_MatchRound = 13 and modVar_AF_MatchPointsA = modVar_AF_MatchPointsB:
  663. *nl
  664. '<b>Tie Break!</b> There is one extra round to decide the winner!'
  665. end
  666. if modVar_AF_MatchRound = 7:
  667. act 'Half-Time Break' : gs 'mod_addedflavour_Volleyball' , 'NewRound' & gt 'mod_addedflavour_Volleyball' , 'HalfTime'
  668. elseif modVar_AF_MatchRound >= 13 and modVar_AF_MatchPointsA ! modVar_AF_MatchPointsB:
  669. act 'See Result' : gt 'mod_addedflavour_Volleyball' , 'FullTime'
  670. else
  671. act 'Next Round' : gs 'mod_addedflavour_Volleyball' , 'NewRound' & gt 'mod_addedflavour_Volleyball' , 'Match'
  672. end
  673. end
  674. if $ARGS[0] = 'CalcEvent':
  675. modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>']
  676. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchBallPrev>>']
  677. if $modVar_AF_MatchBallTeam = 'A':
  678. modVar_AF_MatchAttackValue = modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]
  679. modVar_AF_MatchDefendValue = modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]
  680. else
  681. modVar_AF_MatchAttackValue = modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]
  682. modVar_AF_MatchDefendValue = modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]
  683. end
  684. if $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallPrev>>'] = 'Attack' : modVar_AF_MatchAttackValue += rand(5,15)
  685. if $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallPrev>>'] = 'Wide' : modVar_AF_MatchAttackValue += rand(10,20)
  686. if $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBall>>'] ! 'Defend' : modVar_AF_MatchDefendValue -= rand(5,10)
  687. if $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBall>>'] ! 'Defend' : modVar_AF_MatchDefendValue -= rand(5,10)
  688. if $ARGS[1] = 'Tip':
  689. if $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBall>>'] = 'Attack' : modVar_AF_MatchDefendValue += rand(5,10)
  690. elseif $ARGS[1] = 'Spike':
  691. if $modVar_AF_MatchBall = 'A1' : $modVar_AF_TempStr = 'A6'
  692. if $modVar_AF_MatchBall = 'A2' : $modVar_AF_TempStr = 'A5'
  693. if $modVar_AF_MatchBall = 'A3' : $modVar_AF_TempStr = 'A4'
  694. if $modVar_AF_MatchBall = 'B1' : $modVar_AF_TempStr = 'B6'
  695. if $modVar_AF_MatchBall = 'B2' : $modVar_AF_TempStr = 'B5'
  696. if $modVar_AF_MatchBall = 'B3' : $modVar_AF_TempStr = 'B4'
  697. if $modVar_AF_MatchGridAction['<<$modVar_AF_TempStr>>'] = 'Attack' : modVar_AF_MatchDefendValue -= rand(10,20)
  698. end
  699. modVar_AF_MatchAttackValue += modVar_AF_MatchAttackValue * 2
  700. modVar_AF_MatchDefendValue += modVar_AF_MatchDefendValue * 2
  701. !Repeated to flush out oddities in the Random Number Generator
  702. modVar_AF_Rand = rand(1,(modVar_AF_MatchAttackValue + modVar_AF_MatchDefendValue))
  703. modVar_AF_Rand = rand(1,(modVar_AF_MatchAttackValue + modVar_AF_MatchDefendValue))
  704. modVar_AF_Rand = rand(1,(modVar_AF_MatchAttackValue + modVar_AF_MatchDefendValue))
  705. if modVar_AF_Rand >= modVar_AF_MatchAttackValue:
  706. $modVar_AF_TempStr = 'Success'
  707. else
  708. $modVar_AF_TempStr = 'Fail'
  709. end
  710. end
  711. if $ARGS[0] = 'ManageStamina':
  712. if $ARGS[1] = 'Event':
  713. modVar_AF_Temp = modVar_AF_MatchZones['A1']
  714. modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= rand(0,1)
  715. modVar_AF_Temp = modVar_AF_MatchZones['A2']
  716. modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= rand(0,1)
  717. modVar_AF_Temp = modVar_AF_MatchZones['A3']
  718. modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= rand(0,1)
  719. modVar_AF_Temp = modVar_AF_MatchZones['A4']
  720. modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= rand(0,1)
  721. modVar_AF_Temp = modVar_AF_MatchZones['A5']
  722. modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= rand(0,1)
  723. modVar_AF_Temp = modVar_AF_MatchZones['A6']
  724. modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= rand(0,1)
  725. if $modVar_AF_MatchBallTeam = 'A':
  726. modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>']
  727. modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= 3
  728. end
  729. modVar_AF_Temp = modVar_AF_MatchZones['B1']
  730. modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= rand(0,1)
  731. modVar_AF_Temp = modVar_AF_MatchZones['B2']
  732. modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= rand(0,1)
  733. modVar_AF_Temp = modVar_AF_MatchZones['B3']
  734. modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= rand(0,1)
  735. modVar_AF_Temp = modVar_AF_MatchZones['B4']
  736. modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= rand(0,1)
  737. modVar_AF_Temp = modVar_AF_MatchZones['B5']
  738. modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= rand(0,1)
  739. modVar_AF_Temp = modVar_AF_MatchZones['B6']
  740. modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= rand(0,1)
  741. if $modVar_AF_MatchBallTeam = 'B':
  742. modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>']
  743. modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= 3
  744. end
  745. elseif $ARGS[1] = 'Gain':
  746. modVar_AF_Temp = modVar_AF_MatchZones['A1']
  747. modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] += $ARGS[2]
  748. modVar_AF_Temp = modVar_AF_MatchZones['A2']
  749. modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] += $ARGS[2]
  750. modVar_AF_Temp = modVar_AF_MatchZones['A3']
  751. modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] += $ARGS[2]
  752. modVar_AF_Temp = modVar_AF_MatchZones['A4']
  753. modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] += $ARGS[2]
  754. modVar_AF_Temp = modVar_AF_MatchZones['A5']
  755. modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] += $ARGS[2]
  756. modVar_AF_Temp = modVar_AF_MatchZones['A6']
  757. modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] += $ARGS[2]
  758. modVar_AF_Temp = modVar_AF_MatchZones['B1']
  759. modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] += $ARGS[2]
  760. modVar_AF_Temp = modVar_AF_MatchZones['B2']
  761. modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] += $ARGS[2]
  762. modVar_AF_Temp = modVar_AF_MatchZones['B3']
  763. modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] += $ARGS[2]
  764. modVar_AF_Temp = modVar_AF_MatchZones['B4']
  765. modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] += $ARGS[2]
  766. modVar_AF_Temp = modVar_AF_MatchZones['B5']
  767. modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] += $ARGS[2]
  768. modVar_AF_Temp = modVar_AF_MatchZones['B6']
  769. modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] += $ARGS[2]
  770. end
  771. modVar_AF_Temp = modVar_AF_MatchZones['A1']
  772. if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 0
  773. if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 100
  774. modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] = modVar_AF_TeamA_PlayerBaseSkill[modVar_AF_Temp] - ((modVar_AF_TeamA_PlayerBaseSkill[modVar_AF_Temp] * (100 - modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp])) / 100) / 2
  775. modVar_AF_Temp = modVar_AF_MatchZones['A2']
  776. if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 0
  777. if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 100
  778. modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] = modVar_AF_TeamA_PlayerBaseSkill[modVar_AF_Temp] - ((modVar_AF_TeamA_PlayerBaseSkill[modVar_AF_Temp] * (100 - modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp])) / 100) / 2
  779. modVar_AF_Temp = modVar_AF_MatchZones['A3']
  780. if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 0
  781. if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 100
  782. modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] = modVar_AF_TeamA_PlayerBaseSkill[modVar_AF_Temp] - ((modVar_AF_TeamA_PlayerBaseSkill[modVar_AF_Temp] * (100 - modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp])) / 100) / 2
  783. modVar_AF_Temp = modVar_AF_MatchZones['A4']
  784. if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 0
  785. if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 100
  786. modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] = modVar_AF_TeamA_PlayerBaseSkill[modVar_AF_Temp] - ((modVar_AF_TeamA_PlayerBaseSkill[modVar_AF_Temp] * (100 - modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp])) / 100) / 2
  787. modVar_AF_Temp = modVar_AF_MatchZones['A5']
  788. if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 0
  789. if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 100
  790. modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] = modVar_AF_TeamA_PlayerBaseSkill[modVar_AF_Temp] - ((modVar_AF_TeamA_PlayerBaseSkill[modVar_AF_Temp] * (100 - modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp])) / 100) / 2
  791. modVar_AF_Temp = modVar_AF_MatchZones['A6']
  792. if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 0
  793. if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 100
  794. modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] = modVar_AF_TeamA_PlayerBaseSkill[modVar_AF_Temp] - ((modVar_AF_TeamA_PlayerBaseSkill[modVar_AF_Temp] * (100 - modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp])) / 100) / 2
  795. modVar_AF_Temp = modVar_AF_MatchZones['B1']
  796. if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 0
  797. if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 100
  798. modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] = modVar_AF_TeamB_PlayerBaseSkill[modVar_AF_Temp] - ((modVar_AF_TeamB_PlayerBaseSkill[modVar_AF_Temp] * (100 - modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp])) / 100) / 2
  799. modVar_AF_Temp = modVar_AF_MatchZones['B2']
  800. if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 0
  801. if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 100
  802. modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] = modVar_AF_TeamB_PlayerBaseSkill[modVar_AF_Temp] - ((modVar_AF_TeamB_PlayerBaseSkill[modVar_AF_Temp] * (100 - modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp])) / 100) / 2
  803. modVar_AF_Temp = modVar_AF_MatchZones['B3']
  804. if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 0
  805. if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 100
  806. modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] = modVar_AF_TeamB_PlayerBaseSkill[modVar_AF_Temp] - ((modVar_AF_TeamB_PlayerBaseSkill[modVar_AF_Temp] * (100 - modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp])) / 100) / 2
  807. modVar_AF_Temp = modVar_AF_MatchZones['B4']
  808. if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 0
  809. if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 100
  810. modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] = modVar_AF_TeamB_PlayerBaseSkill[modVar_AF_Temp] - ((modVar_AF_TeamB_PlayerBaseSkill[modVar_AF_Temp] * (100 - modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp])) / 100) / 2
  811. modVar_AF_Temp = modVar_AF_MatchZones['B5']
  812. if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 0
  813. if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 100
  814. modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] = modVar_AF_TeamB_PlayerBaseSkill[modVar_AF_Temp] - ((modVar_AF_TeamB_PlayerBaseSkill[modVar_AF_Temp] * (100 - modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp])) / 100) / 2
  815. modVar_AF_Temp = modVar_AF_MatchZones['B6']
  816. if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 0
  817. if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 100
  818. modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] = modVar_AF_TeamB_PlayerBaseSkill[modVar_AF_Temp] - ((modVar_AF_TeamB_PlayerBaseSkill[modVar_AF_Temp] * (100 - modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp])) / 100) / 2
  819. end
  820. if $ARGS[0] = 'NewRound':
  821. gs 'mod_addedflavour_Volleyball' , 'ManageStamina' , 'Gain' , 10
  822. modVar_AF_MatchTouches = 0
  823. $modVar_AF_MatchAction = 'Serve'
  824. $modVar_AF_MatchBallPrev = 'XX'
  825. if $modVar_AF_MatchBallTeam = 'A':
  826. $modVar_AF_MatchBallTeam = 'B'
  827. $modVar_AF_MatchBall = 'B1'
  828. else
  829. $modVar_AF_MatchBallTeam = 'A'
  830. $modVar_AF_MatchBall = 'A1'
  831. end
  832. $modVar_AF_MatchGridAction['A1'] = 'Defend'
  833. $modVar_AF_MatchGridAction['A2'] = 'Defend'
  834. $modVar_AF_MatchGridAction['A3'] = 'Defend'
  835. $modVar_AF_MatchGridAction['A4'] = 'Defend'
  836. $modVar_AF_MatchGridAction['A5'] = 'Defend'
  837. $modVar_AF_MatchGridAction['A6'] = 'Defend'
  838. $modVar_AF_MatchGridAction['B1'] = 'Defend'
  839. $modVar_AF_MatchGridAction['B2'] = 'Defend'
  840. $modVar_AF_MatchGridAction['B3'] = 'Defend'
  841. $modVar_AF_MatchGridAction['B4'] = 'Defend'
  842. $modVar_AF_MatchGridAction['B5'] = 'Defend'
  843. $modVar_AF_MatchGridAction['B6'] = 'Defend'
  844. modVar_AF_MatchZones['XX'] = modVar_AF_MatchZones['A6']
  845. modVar_AF_MatchZones['A6'] = modVar_AF_MatchZones['A5']
  846. modVar_AF_MatchZones['A5'] = modVar_AF_MatchZones['A4']
  847. modVar_AF_MatchZones['A4'] = modVar_AF_MatchZones['A3']
  848. modVar_AF_MatchZones['A3'] = modVar_AF_MatchZones['A2']
  849. modVar_AF_MatchZones['A2'] = modVar_AF_MatchZones['A1']
  850. modVar_AF_MatchZones['A1'] = modVar_AF_MatchZones['XX']
  851. modVar_AF_MatchZones['XX'] = modVar_AF_MatchZones['B6']
  852. modVar_AF_MatchZones['B6'] = modVar_AF_MatchZones['B5']
  853. modVar_AF_MatchZones['B5'] = modVar_AF_MatchZones['B4']
  854. modVar_AF_MatchZones['B4'] = modVar_AF_MatchZones['B3']
  855. modVar_AF_MatchZones['B3'] = modVar_AF_MatchZones['B2']
  856. modVar_AF_MatchZones['B2'] = modVar_AF_MatchZones['B1']
  857. modVar_AF_MatchZones['B1'] = modVar_AF_MatchZones['XX']
  858. if $modVar_AF_MatchPlayerLoc = 'A1':
  859. $modVar_AF_MatchPlayerLoc = 'A2'
  860. elseif $modVar_AF_MatchPlayerLoc = 'A2':
  861. $modVar_AF_MatchPlayerLoc = 'A3'
  862. elseif $modVar_AF_MatchPlayerLoc = 'A3':
  863. $modVar_AF_MatchPlayerLoc = 'A4'
  864. elseif $modVar_AF_MatchPlayerLoc = 'A4':
  865. $modVar_AF_MatchPlayerLoc = 'A5'
  866. elseif $modVar_AF_MatchPlayerLoc = 'A5':
  867. $modVar_AF_MatchPlayerLoc = 'A6'
  868. elseif $modVar_AF_MatchPlayerLoc = 'A6':
  869. $modVar_AF_MatchPlayerLoc = 'A1'
  870. elseif $modVar_AF_MatchPlayerLoc = 'B1':
  871. $modVar_AF_MatchPlayerLoc = 'B2'
  872. elseif $modVar_AF_MatchPlayerLoc = 'B2':
  873. $modVar_AF_MatchPlayerLoc = 'B3'
  874. elseif $modVar_AF_MatchPlayerLoc = 'B3':
  875. $modVar_AF_MatchPlayerLoc = 'B4'
  876. elseif $modVar_AF_MatchPlayerLoc = 'B4':
  877. $modVar_AF_MatchPlayerLoc = 'B5'
  878. elseif $modVar_AF_MatchPlayerLoc = 'B5':
  879. $modVar_AF_MatchPlayerLoc = 'B6'
  880. elseif $modVar_AF_MatchPlayerLoc = 'B6':
  881. $modVar_AF_MatchPlayerLoc = 'B1'
  882. end
  883. end
  884. if $ARGS[0] = 'HalfTime':
  885. gs 'mod_addedflavour_Volleyball' , 'ManageStamina' , 'Gain' , 30
  886. gs 'stat'
  887. '<center><b>' + iif($modVar_AF_MatchBallTeam = 'A','<u>','') + '<<$modVar_AF_TeamA_PlayerTeam>>' + iif($modVar_AF_MatchBallTeam = 'A','</u>','') + '</b> - <<modVar_AF_MatchPointsA>> -vs- <<modVar_AF_MatchPointsB>> - <b>' + iif($modVar_AF_MatchBallTeam = 'B','<u>','') + '<<$modVar_AF_TeamB_PlayerTeam>>' + iif($modVar_AF_MatchBallTeam = 'B','</u>','') + '</b></center>'
  888. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Volleyball/Huddle<<rand(1,4)>>.jpg"></center>'
  889. *nl
  890. 'All the players huddle in for a half-time break. After everyone has regained their composure you all take your places...'
  891. *nl
  892. '<b><<$modVar_AF_TeamA_PlayerTeam>> Makes the Following Substitutions:</b>'
  893. *nl
  894. makesubscount = 6
  895. :makesubscountAloopstart
  896. if makesubscount = 10 : jump 'makesubscountAloopend'
  897. KILLVAR 'modArr_AF_Rand'
  898. modArr_AF_Rand[] = 1
  899. modArr_AF_Rand[] = 2
  900. modArr_AF_Rand[] = 3
  901. modArr_AF_Rand[] = 4
  902. modArr_AF_Rand[] = 5
  903. modArr_AF_Rand[] = 6
  904. modVar_AF_Rand = (rand(1,arrsize('modArr_AF_Rand'))) - 1
  905. modVar_AF_Temp = modArr_AF_Rand[modVar_AF_Rand]
  906. modVar_AF_Temp2 = modVar_AF_MatchZones['A<<modVar_AF_Temp>>']
  907. if modVar_AF_TeamA_PlayerSkill[makesubscount] > modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] or (modVar_AF_MatchPracticeSub = 1 and $modVar_AF_TeamA_PlayerName[makesubscount] = '<<$pcs_firstname>> <<$pcs_lastname>>'):
  908. KILLVAR 'modArr_AF_Rand' , modVar_AF_Rand
  909. '<<$modVar_AF_TeamA_PlayerName[makesubscount]>> - <font color="Green">IN</font> / <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>> - <font color="Red">OUT</font>'
  910. if $modVar_AF_TeamA_PlayerName[makesubscount] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A<<modVar_AF_Temp>>'
  911. if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp2] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'AX'
  912. modVar_AF_MatchZones['A<<modVar_AF_Temp>>'] = makesubscount
  913. end
  914. makesubscount += 1
  915. jump 'makesubscountAloopstart'
  916. :makesubscountAloopend
  917. *nl
  918. '<b><<$modVar_AF_TeamB_PlayerTeam>> Makes the Following Substitutions:</b>'
  919. *nl
  920. makesubscount = 6
  921. :makesubscountBloopstart
  922. if makesubscount = 10 : jump 'makesubscountBloopend'
  923. KILLVAR 'modArr_AF_Rand'
  924. modArr_AF_Rand[] = 1
  925. modArr_AF_Rand[] = 2
  926. modArr_AF_Rand[] = 3
  927. modArr_AF_Rand[] = 4
  928. modArr_AF_Rand[] = 5
  929. modArr_AF_Rand[] = 6
  930. modVar_AF_Rand = (rand(1,arrsize('modArr_AF_Rand'))) - 1
  931. modVar_AF_Temp = modArr_AF_Rand[modVar_AF_Rand]
  932. modVar_AF_Temp2 = modVar_AF_MatchZones['B<<modVar_AF_Temp>>']
  933. if modVar_AF_TeamB_PlayerSkill[makesubscount] > modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] or (modVar_AF_MatchPracticeSub = 1 and $modVar_AF_TeamB_PlayerName[makesubscount] = '<<$pcs_firstname>> <<$pcs_lastname>>'):
  934. KILLVAR 'modArr_AF_Rand' , modVar_AF_Rand
  935. '<<$modVar_AF_TeamB_PlayerName[makesubscount]>> - <font color="Green">IN</font> / <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> - <font color="Red">OUT</font>'
  936. if $modVar_AF_TeamB_PlayerName[makesubscount] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B<<modVar_AF_Temp>>'
  937. if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp2] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'BX'
  938. modVar_AF_MatchZones['B<<modVar_AF_Temp>>'] = makesubscount
  939. end
  940. makesubscount += 1
  941. jump 'makesubscountBloopstart'
  942. :makesubscountBloopend
  943. act 'Get to your Zone' : gt 'mod_addedflavour_Volleyball' , 'Match'
  944. end
  945. if $ARGS[0] = 'FullTime':
  946. CLOSE ALL
  947. minut += rand(55,70)
  948. gs 'stat'
  949. Enable_FaceTurn = modVar_AF_MatchFaceSetting
  950. KILLVAR 'modVar_AF_MatchFaceSetting'
  951. '<center><b>' + iif($modVar_AF_MatchBallTeam = 'A','<u>','') + '<<$modVar_AF_TeamA_PlayerTeam>>' + iif($modVar_AF_MatchBallTeam = 'A','</u>','') + '</b> - <<modVar_AF_MatchPointsA>> -vs- <<modVar_AF_MatchPointsB>> - <b>' + iif($modVar_AF_MatchBallTeam = 'B','<u>','') + '<<$modVar_AF_TeamB_PlayerTeam>>' + iif($modVar_AF_MatchBallTeam = 'B','</u>','') + '</b></center>'
  952. modVar_AF_Temp = 0
  953. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  954. if modVar_AF_MatchPointsA > modVar_AF_MatchPointsB : modVar_AF_Temp = 1
  955. else
  956. if modVar_AF_MatchPointsB > modVar_AF_MatchPointsA : modVar_AF_Temp = 1
  957. end
  958. if modVar_AF_Temp = 1:
  959. vball_lvl += 3 & vball_lvlst = vball_lvl
  960. pcs_mood += 20
  961. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Volleyball/Win<<rand(1,4)>>.jpg"></center>'
  962. *nl
  963. 'Your Team has WON the match!!!'
  964. else
  965. vball_lvl += 1 & vball_lvlst = vball_lvl
  966. pcs_mood -= 10
  967. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Volleyball/Loss<<rand(1,2)>>.jpg"></center>'
  968. *nl
  969. 'Your Team has Lost the match...'
  970. end
  971. *nl
  972. '<b>Points Scored:</b>'
  973. *nl
  974. if modArr_AF_MatchAScorers[0] > 0 : '<<$modVar_AF_TeamA_PlayerName[0]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <<modArr_AF_MatchAScorers[0]>>'
  975. if modArr_AF_MatchAScorers[1] > 0 : '<<$modVar_AF_TeamA_PlayerName[1]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <<modArr_AF_MatchAScorers[1]>>'
  976. if modArr_AF_MatchAScorers[2] > 0 : '<<$modVar_AF_TeamA_PlayerName[2]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <<modArr_AF_MatchAScorers[2]>>'
  977. if modArr_AF_MatchAScorers[3] > 0 : '<<$modVar_AF_TeamA_PlayerName[3]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <<modArr_AF_MatchAScorers[3]>>'
  978. if modArr_AF_MatchAScorers[4] > 0 : '<<$modVar_AF_TeamA_PlayerName[4]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <<modArr_AF_MatchAScorers[4]>>'
  979. if modArr_AF_MatchAScorers[5] > 0 : '<<$modVar_AF_TeamA_PlayerName[5]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <<modArr_AF_MatchAScorers[5]>>'
  980. if modArr_AF_MatchAScorers[6] > 0 : '<<$modVar_AF_TeamA_PlayerName[6]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <<modArr_AF_MatchAScorers[6]>>'
  981. if modArr_AF_MatchAScorers[7] > 0 : '<<$modVar_AF_TeamA_PlayerName[7]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <<modArr_AF_MatchAScorers[7]>>'
  982. if modArr_AF_MatchAScorers[8] > 0 : '<<$modVar_AF_TeamA_PlayerName[8]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <<modArr_AF_MatchAScorers[8]>>'
  983. if modArr_AF_MatchAScorers[9] > 0 : '<<$modVar_AF_TeamA_PlayerName[9]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <<modArr_AF_MatchAScorers[9]>>'
  984. if modArr_AF_MatchBScorers[0] > 0 : '<<$modVar_AF_TeamB_PlayerName[0]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <<modArr_AF_MatchBScorers[0]>>'
  985. if modArr_AF_MatchBScorers[1] > 0 : '<<$modVar_AF_TeamB_PlayerName[1]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <<modArr_AF_MatchBScorers[1]>>'
  986. if modArr_AF_MatchBScorers[2] > 0 : '<<$modVar_AF_TeamB_PlayerName[2]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <<modArr_AF_MatchBScorers[2]>>'
  987. if modArr_AF_MatchBScorers[3] > 0 : '<<$modVar_AF_TeamB_PlayerName[3]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <<modArr_AF_MatchBScorers[3]>>'
  988. if modArr_AF_MatchBScorers[4] > 0 : '<<$modVar_AF_TeamB_PlayerName[4]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <<modArr_AF_MatchBScorers[4]>>'
  989. if modArr_AF_MatchBScorers[5] > 0 : '<<$modVar_AF_TeamB_PlayerName[5]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <<modArr_AF_MatchBScorers[5]>>'
  990. if modArr_AF_MatchBScorers[6] > 0 : '<<$modVar_AF_TeamB_PlayerName[6]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <<modArr_AF_MatchBScorers[6]>>'
  991. if modArr_AF_MatchBScorers[7] > 0 : '<<$modVar_AF_TeamB_PlayerName[7]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <<modArr_AF_MatchBScorers[7]>>'
  992. if modArr_AF_MatchBScorers[8] > 0 : '<<$modVar_AF_TeamB_PlayerName[8]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <<modArr_AF_MatchBScorers[8]>>'
  993. if modArr_AF_MatchBScorers[9] > 0 : '<<$modVar_AF_TeamB_PlayerName[9]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <<modArr_AF_MatchBScorers[9]>>'
  994. if modVar_AF_EventProgress['A69-LeagueMatches'] = 1:
  995. act 'Leave Court' : gt 'mod_addedflavour_A69_Events' , 'A69-Saturday-5'
  996. elseif modVar_AF_EventProgress['A69-LeagueMatches'] = 2:
  997. act 'Leave Court' : gt 'mod_addedflavour_A69_Events' , 'A69-Saturday-7'
  998. elseif modVar_AF_EventProgress['A69-LeagueMatches'] = 3:
  999. act 'Leave Court' : gt 'mod_addedflavour_A69_Events' , 'A69-Saturday-9'
  1000. elseif modVar_AF_EventProgress['A69-KnockoutMatches'] = 1:
  1001. act 'Leave Court' : gt 'mod_addedflavour_A69_Events' , 'A69-Sunday-5'
  1002. elseif modVar_AF_EventProgress['A69-KnockoutMatches'] = 2:
  1003. act 'Leave Court' : gt 'mod_addedflavour_A69_Events' , 'A69-Sunday-7'
  1004. else
  1005. act 'Leave Court' : gt $loc, $loc_arg
  1006. end
  1007. end
  1008. if $ARGS[0] = 'PlayerKnowledge':
  1009. *nl
  1010. '<b>What you know:</b>'
  1011. *nl
  1012. modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>']
  1013. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  1014. modVar_AF_Temp2 = modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]
  1015. else
  1016. modVar_AF_Temp2 = modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]
  1017. end
  1018. $modVar_AF_TempStr = $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>']
  1019. if $modVar_AF_MatchPlayerLoc ! 'AX' and $modVar_AF_MatchPlayerLoc ! 'BX' : 'You(<<modVar_AF_Temp2>>) - <<$modVar_AF_TempStr>> (<<$modVar_AF_MatchPlayerLoc>>)'
  1020. view 'mod/addedflavour/images/shared/Volleyball/<<$modVar_AF_MatchBall>>.png'
  1021. *nl
  1022. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  1023. modVar_AF_Temp = modVar_AF_MatchZones['B1']
  1024. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>']
  1025. 'Opponent Zone 1 - ' + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] + 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],'<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>>','Unknown') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' (<<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>)','') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''B1'']>>','')
  1026. else
  1027. modVar_AF_Temp = modVar_AF_MatchZones['A1']
  1028. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>']
  1029. 'Opponent Zone 1 - ' + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] + 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],'<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>>','Unknown') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' (<<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>)','') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''A1'']>>','')
  1030. end
  1031. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  1032. modVar_AF_Temp = modVar_AF_MatchZones['B2']
  1033. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>']
  1034. 'Opponent Zone 2 - ' + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] + 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],'<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>>','Unknown') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' (<<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>)','') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''B2'']>>','')
  1035. else
  1036. modVar_AF_Temp = modVar_AF_MatchZones['A2']
  1037. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>']
  1038. 'Opponent Zone 2 - ' + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] + 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],'<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>>','Unknown') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' (<<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>)','') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''A2'']>>','')
  1039. end
  1040. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  1041. modVar_AF_Temp = modVar_AF_MatchZones['B3']
  1042. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>']
  1043. 'Opponent Zone 3 - ' + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] + 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],'<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>>','Unknown') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' (<<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>)','') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''B3'']>>','')
  1044. else
  1045. modVar_AF_Temp = modVar_AF_MatchZones['A3']
  1046. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>']
  1047. 'Opponent Zone 3 - ' + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] + 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],'<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>>','Unknown') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' (<<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>)','') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''A3'']>>','')
  1048. end
  1049. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  1050. modVar_AF_Temp = modVar_AF_MatchZones['B4']
  1051. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>']
  1052. 'Opponent Zone 4 - ' + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] + 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],'<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>>','Unknown') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' (<<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>)','') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''B4'']>>','')
  1053. else
  1054. modVar_AF_Temp = modVar_AF_MatchZones['A4']
  1055. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>']
  1056. 'Opponent Zone 4 - ' + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] + 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],'<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>>','Unknown') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' (<<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>)','') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''A4'']>>','')
  1057. end
  1058. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  1059. modVar_AF_Temp = modVar_AF_MatchZones['B5']
  1060. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>']
  1061. 'Opponent Zone 5 - ' + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] + 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],'<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>>','Unknown') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' (<<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>)','') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''B5'']>>','')
  1062. else
  1063. modVar_AF_Temp = modVar_AF_MatchZones['A5']
  1064. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>']
  1065. 'Opponent Zone 5 - ' + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] + 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],'<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>>','Unknown') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' (<<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>)','') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''A5'']>>','')
  1066. end
  1067. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  1068. modVar_AF_Temp = modVar_AF_MatchZones['B6']
  1069. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>']
  1070. 'Opponent Zone 6 - ' + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] + 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],'<<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>>','Unknown') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' (<<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>)','') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''B6'']>>','')
  1071. else
  1072. modVar_AF_Temp = modVar_AF_MatchZones['A6']
  1073. modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>']
  1074. 'Opponent Zone 6 - ' + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] + 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],'<<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>>','Unknown') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' (<<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>)','') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''A6'']>>','')
  1075. end
  1076. *nl
  1077. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  1078. if ($modVar_AF_MatchPlayerLoc ! 'A1' and $modVar_AF_MatchPlayerLoc = 'A2') or $modVar_AF_MatchPlayerLoc = 'AX':
  1079. modVar_AF_Temp = modVar_AF_MatchZones['A1']
  1080. 'Team Zone 1 - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (<<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>) - Current State: <<$modVar_AF_MatchGridAction[''A1'']>>'
  1081. end
  1082. else
  1083. if ($modVar_AF_MatchPlayerLoc ! 'B1' and $modVar_AF_MatchPlayerLoc = 'B2') or $modVar_AF_MatchPlayerLoc = 'BX':
  1084. modVar_AF_Temp = modVar_AF_MatchZones['B1']
  1085. 'Team Zone 1 - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (<<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>) - Current State: <<$modVar_AF_MatchGridAction[''B1'']>>'
  1086. end
  1087. end
  1088. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  1089. if ($modVar_AF_MatchPlayerLoc ! 'A2' and ($modVar_AF_MatchPlayerLoc = 'A1' or $modVar_AF_MatchPlayerLoc = 'A3')) or $modVar_AF_MatchPlayerLoc = 'AX':
  1090. modVar_AF_Temp = modVar_AF_MatchZones['A2']
  1091. 'Team Zone 2 - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (<<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>) - Current State: <<$modVar_AF_MatchGridAction[''A2'']>>'
  1092. end
  1093. else
  1094. if ($modVar_AF_MatchPlayerLoc ! 'B2' and ($modVar_AF_MatchPlayerLoc = 'B1' or $modVar_AF_MatchPlayerLoc = 'B3')) or $modVar_AF_MatchPlayerLoc = 'BX':
  1095. modVar_AF_Temp = modVar_AF_MatchZones['B2']
  1096. 'Team Zone 2 - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (<<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>) - Current State: <<$modVar_AF_MatchGridAction[''B2'']>>'
  1097. end
  1098. end
  1099. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  1100. if ($modVar_AF_MatchPlayerLoc ! 'A3' and $modVar_AF_MatchPlayerLoc = 'A2') or $modVar_AF_MatchPlayerLoc = 'AX':
  1101. modVar_AF_Temp = modVar_AF_MatchZones['A3']
  1102. 'Team Zone 3 - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (<<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>) - Current State: <<$modVar_AF_MatchGridAction[''A3'']>>'
  1103. end
  1104. else
  1105. if ($modVar_AF_MatchPlayerLoc ! 'B3' and $modVar_AF_MatchPlayerLoc = 'B2') or $modVar_AF_MatchPlayerLoc = 'BX':
  1106. modVar_AF_Temp = modVar_AF_MatchZones['B3']
  1107. 'Team Zone 3 - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (<<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>) - Current State: <<$modVar_AF_MatchGridAction[''B3'']>>'
  1108. end
  1109. end
  1110. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  1111. if ($modVar_AF_MatchPlayerLoc ! 'A4' and ($modVar_AF_MatchPlayerLoc = 'A1' or $modVar_AF_MatchPlayerLoc = 'A2' or $modVar_AF_MatchPlayerLoc = 'A3' or $modVar_AF_MatchPlayerLoc = 'A5')) or $modVar_AF_MatchPlayerLoc = 'AX':
  1112. modVar_AF_Temp = modVar_AF_MatchZones['A4']
  1113. 'Team Zone 4 - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (<<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>) - Current State: <<$modVar_AF_MatchGridAction[''A4'']>>'
  1114. end
  1115. else
  1116. if ($modVar_AF_MatchPlayerLoc ! 'B4' and ($modVar_AF_MatchPlayerLoc = 'B1' or $modVar_AF_MatchPlayerLoc = 'B2' or $modVar_AF_MatchPlayerLoc = 'B3' or $modVar_AF_MatchPlayerLoc = 'B5')) or $modVar_AF_MatchPlayerLoc = 'BX':
  1117. modVar_AF_Temp = modVar_AF_MatchZones['B4']
  1118. 'Team Zone 4 - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (<<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>) - Current State: <<$modVar_AF_MatchGridAction[''B4'']>>'
  1119. end
  1120. end
  1121. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  1122. if ($modVar_AF_MatchPlayerLoc ! 'A5' and ($modVar_AF_MatchPlayerLoc = 'A1' or $modVar_AF_MatchPlayerLoc = 'A2' or $modVar_AF_MatchPlayerLoc = 'A3' or $modVar_AF_MatchPlayerLoc = 'A4' or $modVar_AF_MatchPlayerLoc = 'A6')) or $modVar_AF_MatchPlayerLoc = 'AX':
  1123. modVar_AF_Temp = modVar_AF_MatchZones['A5']
  1124. 'Team Zone 5 - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (<<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>) - Current State: <<$modVar_AF_MatchGridAction[''A5'']>>'
  1125. end
  1126. else
  1127. if ($modVar_AF_MatchPlayerLoc ! 'B5' and ($modVar_AF_MatchPlayerLoc = 'B1' or $modVar_AF_MatchPlayerLoc = 'B2' or $modVar_AF_MatchPlayerLoc = 'B3' or $modVar_AF_MatchPlayerLoc = 'B4' or $modVar_AF_MatchPlayerLoc = 'B6')) or $modVar_AF_MatchPlayerLoc = 'BX':
  1128. modVar_AF_Temp = modVar_AF_MatchZones['B5']
  1129. 'Team Zone 5 - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (<<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>) - Current State: <<$modVar_AF_MatchGridAction[''B5'']>>'
  1130. end
  1131. end
  1132. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0:
  1133. if ($modVar_AF_MatchPlayerLoc ! 'A6' and ($modVar_AF_MatchPlayerLoc = 'A1' or $modVar_AF_MatchPlayerLoc = 'A2' or $modVar_AF_MatchPlayerLoc = 'A3' or $modVar_AF_MatchPlayerLoc = 'A5')) or $modVar_AF_MatchPlayerLoc = 'AX':
  1134. modVar_AF_Temp = modVar_AF_MatchZones['A6']
  1135. 'Team Zone 6 - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (<<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>) - Current State: <<$modVar_AF_MatchGridAction[''A6'']>>'
  1136. end
  1137. else
  1138. if ($modVar_AF_MatchPlayerLoc ! 'B6' and ($modVar_AF_MatchPlayerLoc = 'B1' or $modVar_AF_MatchPlayerLoc = 'B2' or $modVar_AF_MatchPlayerLoc = 'B3' or $modVar_AF_MatchPlayerLoc = 'B5')) or $modVar_AF_MatchPlayerLoc = 'BX':
  1139. modVar_AF_Temp = modVar_AF_MatchZones['B6']
  1140. 'Team Zone 6 - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (<<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>) - Current State: <<$modVar_AF_MatchGridAction[''B6'']>>'
  1141. end
  1142. end
  1143. end
  1144. if $ARGS[0] = 'AIAction':
  1145. modVar_AF_Temp = (rand(1,arrsize('$modArr_AF_MatchAIOptions'))) - 1
  1146. $modVar_AF_MatchAIChoice = $modArr_AF_MatchAIOptions[modVar_AF_Temp]
  1147. if $modVar_AF_MatchAIChoice = 'Rebound':
  1148. gs 'mod_addedflavour_Volleyball' , 'ReboundAction'
  1149. elseif $modVar_AF_MatchAIChoice = 'Block':
  1150. gs 'mod_addedflavour_Volleyball' , 'BlockAction'
  1151. elseif $modVar_AF_MatchAIChoice = 'SpikeAttack':
  1152. gs 'mod_addedflavour_Volleyball' , 'SpikeAction'
  1153. elseif $modVar_AF_MatchAIChoice = 'TipAttack':
  1154. gs 'mod_addedflavour_Volleyball' , 'TipAction'
  1155. elseif $modVar_AF_MatchAIChoice = 'Pass-1':
  1156. gs 'mod_addedflavour_Volleyball' , 'PassAction' , '1'
  1157. elseif $modVar_AF_MatchAIChoice = 'Pass-2':
  1158. gs 'mod_addedflavour_Volleyball' , 'PassAction' , '2'
  1159. elseif $modVar_AF_MatchAIChoice = 'Pass-3':
  1160. gs 'mod_addedflavour_Volleyball' , 'PassAction' , '3'
  1161. elseif $modVar_AF_MatchAIChoice = 'Pass-4':
  1162. gs 'mod_addedflavour_Volleyball' , 'PassAction' , '4'
  1163. elseif $modVar_AF_MatchAIChoice = 'Pass-5':
  1164. gs 'mod_addedflavour_Volleyball' , 'PassAction' , '5'
  1165. elseif $modVar_AF_MatchAIChoice = 'Pass-6':
  1166. gs 'mod_addedflavour_Volleyball' , 'PassAction' , '6'
  1167. elseif $modVar_AF_MatchAIChoice = 'Serve-1':
  1168. gs 'mod_addedflavour_Volleyball' , 'ServeAction' , '1'
  1169. elseif $modVar_AF_MatchAIChoice = 'Serve-2':
  1170. gs 'mod_addedflavour_Volleyball' , 'ServeAction' , '2'
  1171. elseif $modVar_AF_MatchAIChoice = 'Serve-3':
  1172. gs 'mod_addedflavour_Volleyball' , 'ServeAction' , '3'
  1173. end
  1174. end
  1175. if $ARGS[0] = 'AIStance':
  1176. if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['A1'] and $modVar_AF_MatchPlayerLoc ! 'A1':
  1177. modVar_AF_Temp = modVar_AF_MatchZones['A1']
  1178. if modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 55:
  1179. if strpos($modVar_AF_MatchBall,'A') ! 0:
  1180. if $modVar_AF_MatchGridAction['A1'] = 'Defend' : $modVar_AF_MatchGridAction['A1'] = 'Wide'
  1181. else
  1182. if $modVar_AF_MatchGridAction['A1'] = 'Wide' : $modVar_AF_MatchGridAction['A1'] = 'Defend'
  1183. end
  1184. elseif modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25:
  1185. if $modVar_AF_MatchGridAction['A1'] = 'Defend' : $modVar_AF_MatchGridAction['A1'] = 'Wide'
  1186. if $modVar_AF_MatchGridAction['A1'] = 'Wide' : $modVar_AF_MatchGridAction['A1'] = 'Defend'
  1187. end
  1188. end
  1189. if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['A3'] and $modVar_AF_MatchPlayerLoc ! 'A3':
  1190. modVar_AF_Temp = modVar_AF_MatchZones['A3']
  1191. if modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 55:
  1192. if strpos($modVar_AF_MatchBall,'A') ! 0:
  1193. if $modVar_AF_MatchGridAction['A3'] = 'Defend' : $modVar_AF_MatchGridAction['A3'] = 'Wide'
  1194. else
  1195. if $modVar_AF_MatchGridAction['A3'] = 'Wide' : $modVar_AF_MatchGridAction['A3'] = 'Defend'
  1196. end
  1197. elseif modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25:
  1198. if $modVar_AF_MatchGridAction['A3'] = 'Defend' : $modVar_AF_MatchGridAction['A3'] = 'Wide'
  1199. if $modVar_AF_MatchGridAction['A3'] = 'Wide' : $modVar_AF_MatchGridAction['A3'] = 'Defend'
  1200. end
  1201. end
  1202. if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['A4'] and $modVar_AF_MatchPlayerLoc ! 'A4':
  1203. modVar_AF_Temp = modVar_AF_MatchZones['A4']
  1204. if modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 55:
  1205. if $modVar_AF_MatchBallTeam = 'B' and (strpos($modVar_AF_MatchBall,'4') ! 0 or strpos($modVar_AF_MatchBall,'5') ! 0 or strpos($modVar_AF_MatchBall,'6') ! 0):
  1206. if $modVar_AF_MatchGridAction['A4'] = 'Defend' : $modVar_AF_MatchGridAction['A4'] = 'Attack'
  1207. else
  1208. if $modVar_AF_MatchGridAction['A4'] = 'Attack' : $modVar_AF_MatchGridAction['A4'] = 'Defend'
  1209. end
  1210. elseif modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25:
  1211. if $modVar_AF_MatchGridAction['A4'] = 'Defend' : $modVar_AF_MatchGridAction['A4'] = 'Attack'
  1212. if $modVar_AF_MatchGridAction['A4'] = 'Attack' : $modVar_AF_MatchGridAction['A4'] = 'Defend'
  1213. end
  1214. end
  1215. if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['A5'] and $modVar_AF_MatchPlayerLoc ! 'A5':
  1216. modVar_AF_Temp = modVar_AF_MatchZones['A5']
  1217. if modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 55:
  1218. if $modVar_AF_MatchBallTeam = 'B' and (strpos($modVar_AF_MatchBall,'4') ! 0 or strpos($modVar_AF_MatchBall,'5') ! 0 or strpos($modVar_AF_MatchBall,'6') ! 0):
  1219. if $modVar_AF_MatchGridAction['A5'] = 'Defend' : $modVar_AF_MatchGridAction['A5'] = 'Attack'
  1220. else
  1221. if $modVar_AF_MatchGridAction['A5'] = 'Attack' : $modVar_AF_MatchGridAction['A5'] = 'Defend'
  1222. end
  1223. elseif modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25:
  1224. if $modVar_AF_MatchGridAction['A5'] = 'Defend' : $modVar_AF_MatchGridAction['A5'] = 'Attack'
  1225. if $modVar_AF_MatchGridAction['A5'] = 'Attack' : $modVar_AF_MatchGridAction['A5'] = 'Defend'
  1226. end
  1227. end
  1228. if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['A4'] and $modVar_AF_MatchPlayerLoc ! 'A6':
  1229. modVar_AF_Temp = modVar_AF_MatchZones['A6']
  1230. if modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 55:
  1231. if $modVar_AF_MatchBallTeam = 'B' and (strpos($modVar_AF_MatchBall,'4') ! 0 or strpos($modVar_AF_MatchBall,'5') ! 0 or strpos($modVar_AF_MatchBall,'6') ! 0):
  1232. if $modVar_AF_MatchGridAction['A6'] = 'Defend' : $modVar_AF_MatchGridAction['A6'] = 'Attack'
  1233. else
  1234. if $modVar_AF_MatchGridAction['A6'] = 'Attack' : $modVar_AF_MatchGridAction['A6'] = 'Defend'
  1235. end
  1236. elseif modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25:
  1237. if $modVar_AF_MatchGridAction['A6'] = 'Defend' : $modVar_AF_MatchGridAction['A6'] = 'Attack'
  1238. if $modVar_AF_MatchGridAction['A6'] = 'Attack' : $modVar_AF_MatchGridAction['A6'] = 'Defend'
  1239. end
  1240. end
  1241. if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['B1'] and $modVar_AF_MatchPlayerLoc ! 'B1':
  1242. modVar_AF_Temp = modVar_AF_MatchZones['B1']
  1243. if modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 55:
  1244. if strpos($modVar_AF_MatchBall,'B') ! 0:
  1245. if $modVar_AF_MatchGridAction['B1'] = 'Defend' : $modVar_AF_MatchGridAction['B1'] = 'Wide'
  1246. else
  1247. if $modVar_AF_MatchGridAction['B1'] = 'Wide' : $modVar_AF_MatchGridAction['B1'] = 'Defend'
  1248. end
  1249. elseif modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25:
  1250. if $modVar_AF_MatchGridAction['B1'] = 'Defend' : $modVar_AF_MatchGridAction['B1'] = 'Wide'
  1251. if $modVar_AF_MatchGridAction['B1'] = 'Wide' : $modVar_AF_MatchGridAction['B1'] = 'Defend'
  1252. end
  1253. end
  1254. if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['B3'] and $modVar_AF_MatchPlayerLoc ! 'B3':
  1255. modVar_AF_Temp = modVar_AF_MatchZones['B3']
  1256. if modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 55:
  1257. if strpos($modVar_AF_MatchBall,'B') ! 0:
  1258. if $modVar_AF_MatchGridAction['B3'] = 'Defend' : $modVar_AF_MatchGridAction['B3'] = 'Wide'
  1259. else
  1260. if $modVar_AF_MatchGridAction['B3'] = 'Wide' : $modVar_AF_MatchGridAction['B3'] = 'Defend'
  1261. end
  1262. elseif modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25:
  1263. if $modVar_AF_MatchGridAction['B3'] = 'Defend' : $modVar_AF_MatchGridAction['B3'] = 'Wide'
  1264. if $modVar_AF_MatchGridAction['B3'] = 'Wide' : $modVar_AF_MatchGridAction['B3'] = 'Defend'
  1265. end
  1266. end
  1267. if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['B4'] and $modVar_AF_MatchPlayerLoc ! 'B4':
  1268. modVar_AF_Temp = modVar_AF_MatchZones['B4']
  1269. if modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 55:
  1270. if $modVar_AF_MatchBallTeam = 'A' and (strpos($modVar_AF_MatchBall,'4') ! 0 or strpos($modVar_AF_MatchBall,'5') ! 0 or strpos($modVar_AF_MatchBall,'6') ! 0):
  1271. if $modVar_AF_MatchGridAction['B4'] = 'Defend' : $modVar_AF_MatchGridAction['B4'] = 'Attack'
  1272. else
  1273. if $modVar_AF_MatchGridAction['B4'] = 'Attack' : $modVar_AF_MatchGridAction['B4'] = 'Defend'
  1274. end
  1275. elseif modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25:
  1276. if $modVar_AF_MatchGridAction['B4'] = 'Defend' : $modVar_AF_MatchGridAction['B4'] = 'Attack'
  1277. if $modVar_AF_MatchGridAction['B4'] = 'Attack' : $modVar_AF_MatchGridAction['B4'] = 'Defend'
  1278. end
  1279. end
  1280. if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['B5'] and $modVar_AF_MatchPlayerLoc ! 'B5':
  1281. modVar_AF_Temp = modVar_AF_MatchZones['B5']
  1282. if modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 55:
  1283. if $modVar_AF_MatchBallTeam = 'A' and (strpos($modVar_AF_MatchBall,'4') ! 0 or strpos($modVar_AF_MatchBall,'5') ! 0 or strpos($modVar_AF_MatchBall,'6') ! 0):
  1284. if $modVar_AF_MatchGridAction['B5'] = 'Defend' : $modVar_AF_MatchGridAction['B5'] = 'Attack'
  1285. else
  1286. if $modVar_AF_MatchGridAction['B5'] = 'Attack' : $modVar_AF_MatchGridAction['B5'] = 'Defend'
  1287. end
  1288. elseif modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25:
  1289. if $modVar_AF_MatchGridAction['B5'] = 'Defend' : $modVar_AF_MatchGridAction['B5'] = 'Attack'
  1290. if $modVar_AF_MatchGridAction['B5'] = 'Attack' : $modVar_AF_MatchGridAction['B5'] = 'Defend'
  1291. end
  1292. end
  1293. if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['B4'] and $modVar_AF_MatchPlayerLoc ! 'B6':
  1294. modVar_AF_Temp = modVar_AF_MatchZones['B6']
  1295. if modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 55:
  1296. if $modVar_AF_MatchBallTeam = 'A' and (strpos($modVar_AF_MatchBall,'4') ! 0 or strpos($modVar_AF_MatchBall,'5') ! 0 or strpos($modVar_AF_MatchBall,'6') ! 0):
  1297. if $modVar_AF_MatchGridAction['B6'] = 'Defend' : $modVar_AF_MatchGridAction['B6'] = 'Attack'
  1298. else
  1299. if $modVar_AF_MatchGridAction['B6'] = 'Attack' : $modVar_AF_MatchGridAction['B6'] = 'Defend'
  1300. end
  1301. elseif modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25:
  1302. if $modVar_AF_MatchGridAction['B6'] = 'Defend' : $modVar_AF_MatchGridAction['B6'] = 'Attack'
  1303. if $modVar_AF_MatchGridAction['B6'] = 'Attack' : $modVar_AF_MatchGridAction['B6'] = 'Defend'
  1304. end
  1305. end
  1306. end
  1307. if $ARGS[0] = 'MatchBuildup':
  1308. *clr & cla
  1309. $location_type = 'public_indoors'
  1310. gs 'stat'
  1311. menu_off = 1
  1312. KILLVAR 'modArr_AF_MatchZones'
  1313. KILLVAR 'modArr_AF_Rand'
  1314. modArr_AF_Rand[] = 1
  1315. modArr_AF_Rand[] = 2
  1316. modArr_AF_Rand[] = 3
  1317. modArr_AF_Rand[] = 4
  1318. modArr_AF_Rand[] = 5
  1319. modArr_AF_Rand[] = 6
  1320. matchbuilduprandomcount = 0
  1321. :matchbuilduprandomAstart
  1322. if matchbuilduprandomcount >= 6 : jump 'matchbuilduprandomAend'
  1323. modVar_AF_Rand = (rand(1,arrsize('modArr_AF_Rand'))) - 1
  1324. modVar_AF_Temp = modArr_AF_Rand[modVar_AF_Rand]
  1325. KILLVAR 'modArr_AF_Rand' , modVar_AF_Rand
  1326. modVar_AF_MatchZones['A<<modVar_AF_Temp>>'] = matchbuilduprandomcount
  1327. matchbuilduprandomcount += 1
  1328. jump 'matchbuilduprandomAstart'
  1329. :matchbuilduprandomAend
  1330. KILLVAR 'modArr_AF_Rand'
  1331. modArr_AF_Rand[] = 1
  1332. modArr_AF_Rand[] = 2
  1333. modArr_AF_Rand[] = 3
  1334. modArr_AF_Rand[] = 4
  1335. modArr_AF_Rand[] = 5
  1336. modArr_AF_Rand[] = 6
  1337. matchbuilduprandomcount = 0
  1338. :matchbuilduprandomBstart
  1339. if matchbuilduprandomcount >= 6 : jump 'matchbuilduprandomBend'
  1340. modVar_AF_Rand = (rand(1,arrsize('modArr_AF_Rand'))) - 1
  1341. modVar_AF_Temp = modArr_AF_Rand[modVar_AF_Rand]
  1342. KILLVAR 'modArr_AF_Rand' , modVar_AF_Rand
  1343. modVar_AF_MatchZones['B<<modVar_AF_Temp>>'] = matchbuilduprandomcount
  1344. matchbuilduprandomcount += 1
  1345. jump 'matchbuilduprandomBstart'
  1346. :matchbuilduprandomBend
  1347. modVar_AF_MatchZones['AX'] = 10
  1348. modVar_AF_MatchZones['BX'] = 10
  1349. modVar_AF_TeamA_PlayerSkill[] = 100
  1350. modVar_AF_TeamB_PlayerSkill[] = 100
  1351. '<center><h2>Teams</h2>'
  1352. '<b><<$modVar_AF_TeamA_PlayerTeam>></b>'
  1353. *nl
  1354. modVar_AF_Temp = modVar_AF_MatchZones['A1']
  1355. 'Zone 1 : <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (Skill - <<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>)'
  1356. if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A1' & modVar_AF_Temp2 = modVar_AF_Temp
  1357. modVar_AF_Temp = modVar_AF_MatchZones['A2']
  1358. 'Zone 2 : <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (Skill - <<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>)'
  1359. if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A2' & modVar_AF_Temp2 = modVar_AF_Temp
  1360. modVar_AF_Temp = modVar_AF_MatchZones['A3']
  1361. 'Zone 3 : <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (Skill - <<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>)'
  1362. if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A3' & modVar_AF_Temp2 = modVar_AF_Temp
  1363. modVar_AF_Temp = modVar_AF_MatchZones['A4']
  1364. 'Zone 4 : <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (Skill - <<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>)'
  1365. if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A4' & modVar_AF_Temp2 = modVar_AF_Temp
  1366. modVar_AF_Temp = modVar_AF_MatchZones['A5']
  1367. 'Zone 5 : <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (Skill - <<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>)'
  1368. if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A5' & modVar_AF_Temp2 = modVar_AF_Temp
  1369. modVar_AF_Temp = modVar_AF_MatchZones['A6']
  1370. 'Zone 6 : <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (Skill - <<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp]>>)'
  1371. if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A6' & modVar_AF_Temp2 = modVar_AF_Temp
  1372. *nl
  1373. 'Sub - <<$modVar_AF_TeamA_PlayerName[6]>> (Skill - <<modVar_AF_TeamA_PlayerSkill[6]>>)'
  1374. if $modVar_AF_TeamA_PlayerName[6] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'AX' & modVar_AF_Temp2 = 6
  1375. 'Sub - <<$modVar_AF_TeamA_PlayerName[7]>> (Skill - <<modVar_AF_TeamA_PlayerSkill[7]>>)'
  1376. if $modVar_AF_TeamA_PlayerName[7] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'AX' & modVar_AF_Temp2 = 7
  1377. 'Sub - <<$modVar_AF_TeamA_PlayerName[8]>> (Skill - <<modVar_AF_TeamA_PlayerSkill[8]>>)'
  1378. if $modVar_AF_TeamA_PlayerName[8] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'AX' & modVar_AF_Temp2 = 8
  1379. 'Sub - <<$modVar_AF_TeamA_PlayerName[9]>> (Skill - <<modVar_AF_TeamA_PlayerSkill[9]>>)'
  1380. if $modVar_AF_TeamA_PlayerName[9] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'AX' & modVar_AF_Temp2 = 9
  1381. *nl
  1382. '<b><<$modVar_AF_TeamB_PlayerTeam>></b>'
  1383. *nl
  1384. modVar_AF_Temp = modVar_AF_MatchZones['B1']
  1385. 'Zone 1 : <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (Skill - <<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>)'
  1386. if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B1' & modVar_AF_Temp2 = modVar_AF_Temp
  1387. modVar_AF_Temp = modVar_AF_MatchZones['B2']
  1388. 'Zone 2 : <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (Skill - <<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>)'
  1389. if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B2' & modVar_AF_Temp2 = modVar_AF_Temp
  1390. modVar_AF_Temp = modVar_AF_MatchZones['B3']
  1391. 'Zone 3 : <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (Skill - <<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>)'
  1392. if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B3' & modVar_AF_Temp2 = modVar_AF_Temp
  1393. modVar_AF_Temp = modVar_AF_MatchZones['B4']
  1394. 'Zone 4 : <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (Skill - <<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>)'
  1395. if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B4' & modVar_AF_Temp2 = modVar_AF_Temp
  1396. modVar_AF_Temp = modVar_AF_MatchZones['B5']
  1397. 'Zone 5 : <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (Skill - <<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>)'
  1398. if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B5' & modVar_AF_Temp2 = modVar_AF_Temp
  1399. modVar_AF_Temp = modVar_AF_MatchZones['B6']
  1400. 'Zone 6 : <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (Skill - <<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp]>>)'
  1401. if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B6' & modVar_AF_Temp2 = modVar_AF_Temp
  1402. *nl
  1403. 'Sub - <<$modVar_AF_TeamB_PlayerName[6]>> (Skill - <<modVar_AF_TeamB_PlayerSkill[6]>>)'
  1404. if $modVar_AF_TeamB_PlayerName[6] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'BX' & modVar_AF_Temp2 = 6
  1405. 'Sub - <<$modVar_AF_TeamB_PlayerName[7]>> (Skill - <<modVar_AF_TeamB_PlayerSkill[7]>>)'
  1406. if $modVar_AF_TeamB_PlayerName[7] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'BX' & modVar_AF_Temp2 = 7
  1407. 'Sub - <<$modVar_AF_TeamB_PlayerName[8]>> (Skill - <<modVar_AF_TeamB_PlayerSkill[8]>>)'
  1408. if $modVar_AF_TeamB_PlayerName[8] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'BX' & modVar_AF_Temp2 = 8
  1409. 'Sub - <<$modVar_AF_TeamB_PlayerName[9]>> (Skill - <<modVar_AF_TeamB_PlayerSkill[9]>>)</center>'
  1410. if $modVar_AF_TeamB_PlayerName[9] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'BX' & modVar_AF_Temp2 = 9
  1411. KILLVAR '$modVar_AF_MatchGridAction'
  1412. KILLVAR 'modVar_AF_MatchTouches'
  1413. KILLVAR '$modVar_AF_MatchBall'
  1414. KILLVAR '$modVar_AF_MatchBallPrev'
  1415. KILLVAR '$modVar_AF_MatchBallTeam'
  1416. modVar_AF_MatchTouches = 0
  1417. $modVar_AF_MatchGridAction['A1'] = 'Defend'
  1418. $modVar_AF_MatchGridAction['A2'] = 'Defend'
  1419. $modVar_AF_MatchGridAction['A3'] = 'Defend'
  1420. $modVar_AF_MatchGridAction['A4'] = 'Defend'
  1421. $modVar_AF_MatchGridAction['A5'] = 'Defend'
  1422. $modVar_AF_MatchGridAction['A6'] = 'Defend'
  1423. $modVar_AF_MatchGridAction['B1'] = 'Defend'
  1424. $modVar_AF_MatchGridAction['B2'] = 'Defend'
  1425. $modVar_AF_MatchGridAction['B3'] = 'Defend'
  1426. $modVar_AF_MatchGridAction['B4'] = 'Defend'
  1427. $modVar_AF_MatchGridAction['B5'] = 'Defend'
  1428. $modVar_AF_MatchGridAction['B6'] = 'Defend'
  1429. $modVar_AF_MatchBallPrev = 'XX'
  1430. $modVar_AF_MatchAction = 'Serve'
  1431. modVar_AF_MatchPointsA = 0
  1432. modVar_AF_MatchPointsB = 0
  1433. modVar_AF_MatchRound = 1
  1434. if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0 and modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] < 50:
  1435. modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] = rand(50,60)
  1436. *nl
  1437. '<b>Your Enthusiasm for the game has temporarily raised your Skill Level to <<modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2]>></b>'
  1438. elseif strpos($modVar_AF_MatchPlayerLoc,'B') ! 0 and modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] < 50:
  1439. modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] = rand(50,60)
  1440. *nl
  1441. '<b>Your Enthusiasm for the game has temporarily raised your Skill Level to <<modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]>></b>'
  1442. end
  1443. *nl
  1444. '<b>Quick Rules:</b>'
  1445. *nl
  1446. '* Your position indicates where on the court you are playing with each Team having 6 Zones (A Map showing the Zones and where the Ball is is shown in the Image Window)'
  1447. '* After the initial Serve; each Team keeps trying to get the ball onto the floor of the other Teams court until successful'
  1448. '* After a Round is completed each Player rotates into their next zone'
  1449. '* Zones 4, 5 & 6 are the Front Row; Players in this row can Move Forward into an Attacking Stance which increases their Attack Chance and Intercept Chance but hurts the Defense Chance of the Player in the Zone behind them'
  1450. '* Zones 1, 2 & 4 are the Back Row; Players on the Side can Go Wide to make themselves available for a powerful Spike Attack but at a risk to their Defense Chance'
  1451. '* Half Time is called after a Full Rotation (6 Rounds) whereupons Substitutions can be made'
  1452. '* Full Time is called after Two Full Rotations (12 Rounds) unless the Game is a Tie, whereupon a Tie Break Round is run'
  1453. '* Each Player has a Skill Level and a Stamina Level; having a greater Skill Level then your Opponent allows you to see more information about them'
  1454. '* Player Stamina reduces with each Play which in turn lowers their Skill as they tire, but is raised during each break'
  1455. '* Having a Higher Skill Level results in a Higher Chance of Succeeding in Actions (Passing and Serving are always successful)'
  1456. '* If you are playing in a Practice Match then your Skill Level is automatically raised to be competitive and you will always be subbed on'
  1457. act 'Start Match':
  1458. *clr & cla
  1459. '<center><h2>Coin Toss</h2></center>'
  1460. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Volleyball/CoinToss' + iif(modVar_AF_QSPVer = 1,'.gif','.webp') + '"></center>'
  1461. *nl
  1462. '<center>Flipping to see which team serves first...</center>'
  1463. modVar_AF_MatchFaceSetting = Enable_FaceTurn
  1464. act 'See Result':
  1465. *clr & cla
  1466. CLOSE ALL
  1467. modVar_AF_Rand = rand(1,1000)
  1468. if modVar_AF_Rand > 500:
  1469. $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerTeam
  1470. $modVar_AF_MatchBall = 'B1'
  1471. $modVar_AF_MatchBallTeam = 'B'
  1472. act 'Get to your zone':
  1473. gt 'mod_addedflavour_Volleyball' , 'Match'
  1474. end
  1475. else
  1476. $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerTeam
  1477. $modVar_AF_MatchBall = 'A1'
  1478. $modVar_AF_MatchBallTeam = 'A'
  1479. act 'Get to your zone':
  1480. gt 'mod_addedflavour_Volleyball' , 'Match'
  1481. end
  1482. end
  1483. Enable_FaceTurn = 4
  1484. '<center><h2>Coin Toss</h2></center>'
  1485. '<center><img style="<<$modVar_AF_ImageRestrictions>>" src="mod/addedflavour/images/shared/Volleyball/CoinToss' + iif(modVar_AF_QSPVer = 1,'.gif','.webp') + '"></center>'
  1486. *nl
  1487. '<center><<$modVar_AF_TempStr>> will serve first!</center>'
  1488. end
  1489. end
  1490. end
  1491. if $ARGS[0] = 'MatchSetup':
  1492. !Arg 1 = Type; Arg 2 = Team A; Arg 3 = Team B; Arg 4 = Simulate
  1493. KILLVAR '$modVar_AF_TeamA_PlayerName'
  1494. KILLVAR '$modVar_AF_TeamA_PlayerTeam'
  1495. KILLVAR 'modVar_AF_TeamA_PlayerSkill'
  1496. KILLVAR 'modVar_AF_TeamA_PlayerBaseSkill'
  1497. KILLVAR 'modVar_AF_TeamA_PlayerStamina'
  1498. KILLVAR '$modVar_AF_TeamB_PlayerName'
  1499. KILLVAR '$modVar_AF_TeamB_PlayerTeam'
  1500. KILLVAR 'modVar_AF_TeamB_PlayerSkill'
  1501. KILLVAR 'modVar_AF_TeamB_PlayerBaseSkill'
  1502. KILLVAR 'modVar_AF_TeamB_PlayerStamina'
  1503. KILLVAR 'modVar_AF_MatchPracticeSub'
  1504. KILLVAR 'modVar_AF_MatchPointsA'
  1505. KILLVAR 'modVar_AF_MatchPointsB'
  1506. KILLVAR 'modArr_AF_MatchAScorers'
  1507. KILLVAR 'modArr_AF_MatchBScorers'
  1508. $modVar_AF_TeamA_PlayerTeam = $ARGS[2]
  1509. $modVar_AF_TeamB_PlayerTeam = $ARGS[3]
  1510. if $ARGS[1] = 'Tournament':
  1511. matchsetuploopcount = 0
  1512. :matchsetuploopstart
  1513. if matchsetuploopcount >= arrsize('$modArr_AF_VBallT_PlayerName') : jump 'matchsetuploopend'
  1514. if $modArr_AF_VBallT_PlayerTeam[matchsetuploopcount] = $modVar_AF_TeamA_PlayerTeam:
  1515. $modVar_AF_TeamA_PlayerName[] = $modArr_AF_VBallT_PlayerName[matchsetuploopcount]
  1516. modVar_AF_TeamA_PlayerSkill[] = modArr_AF_VBallT_PlayerSkill[matchsetuploopcount]
  1517. modVar_AF_TeamA_PlayerBaseSkill[] = modArr_AF_VBallT_PlayerSkill[matchsetuploopcount]
  1518. modVar_AF_TeamA_PlayerStamina[] = 100
  1519. modArr_AF_MatchAScorers[] = 0
  1520. elseif $modArr_AF_VBallT_PlayerTeam[matchsetuploopcount] = $modVar_AF_TeamB_PlayerTeam:
  1521. $modVar_AF_TeamB_PlayerName[] = $modArr_AF_VBallT_PlayerName[matchsetuploopcount]
  1522. modVar_AF_TeamB_PlayerSkill[] = modArr_AF_VBallT_PlayerSkill[matchsetuploopcount]
  1523. modVar_AF_TeamB_PlayerBaseSkill[] = modArr_AF_VBallT_PlayerSkill[matchsetuploopcount]
  1524. modVar_AF_TeamB_PlayerStamina[] = 100
  1525. modArr_AF_MatchBScorers[] = 0
  1526. end
  1527. matchsetuploopcount += 1
  1528. jump 'matchsetuploopstart'
  1529. :matchsetuploopend
  1530. :matchsetupsortA
  1531. matchsetupsortcount = 0
  1532. matchsetupbubblecount = 0
  1533. :matchsetupbubbleAstart
  1534. if matchsetupbubblecount >= 10 : jump 'matchsetupbubbleAend'
  1535. if modVar_AF_TeamA_PlayerSkill[matchsetupbubblecount] < modVar_AF_TeamA_PlayerSkill[matchsetupbubblecount + 1]:
  1536. $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[matchsetupbubblecount]
  1537. modVar_AF_Temp = modVar_AF_TeamA_PlayerSkill[matchsetupbubblecount]
  1538. modVar_AF_Temp2 = modVar_AF_TeamA_PlayerBaseSkill[matchsetupbubblecount]
  1539. $modVar_AF_TeamA_PlayerName[matchsetupbubblecount] = $modVar_AF_TeamA_PlayerName[matchsetupbubblecount + 1]
  1540. modVar_AF_TeamA_PlayerSkill[matchsetupbubblecount] = modVar_AF_TeamA_PlayerSkill[matchsetupbubblecount + 1]
  1541. modVar_AF_TeamA_PlayerBaseSkill[matchsetupbubblecount] = modVar_AF_TeamA_PlayerBaseSkill[matchsetupbubblecount + 1]
  1542. $modVar_AF_TeamA_PlayerName[matchsetupbubblecount + 1] = $modVar_AF_TempStr
  1543. modVar_AF_TeamA_PlayerSkill[matchsetupbubblecount + 1] = modVar_AF_Temp
  1544. modVar_AF_TeamA_PlayerBaseSkill[matchsetupbubblecount + 1] = modVar_AF_Temp2
  1545. matchsetupsortcount += 1
  1546. end
  1547. matchsetupbubblecount += 1
  1548. jump 'matchsetupbubbleAstart'
  1549. :matchsetupbubbleAend
  1550. if matchsetupsortcount > 0 : jump 'matchsetupsortA'
  1551. :matchsetupsortB
  1552. matchsetupsortcount = 0
  1553. matchsetupbubblecount = 0
  1554. :matchsetupbubbleBstart
  1555. if matchsetupbubblecount >= 10 : jump 'matchsetupbubbleBend'
  1556. if modVar_AF_TeamB_PlayerSkill[matchsetupbubblecount] < modVar_AF_TeamB_PlayerSkill[matchsetupbubblecount + 1]:
  1557. $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[matchsetupbubblecount]
  1558. modVar_AF_Temp = modVar_AF_TeamB_PlayerSkill[matchsetupbubblecount]
  1559. modVar_AF_Temp2 = modVar_AF_TeamB_PlayerBaseSkill[matchsetupbubblecount]
  1560. $modVar_AF_TeamB_PlayerName[matchsetupbubblecount] = $modVar_AF_TeamB_PlayerName[matchsetupbubblecount + 1]
  1561. modVar_AF_TeamB_PlayerSkill[matchsetupbubblecount] = modVar_AF_TeamB_PlayerSkill[matchsetupbubblecount + 1]
  1562. modVar_AF_TeamB_PlayerBaseSkill[matchsetupbubblecount] = modVar_AF_TeamB_PlayerBaseSkill[matchsetupbubblecount + 1]
  1563. $modVar_AF_TeamB_PlayerName[matchsetupbubblecount + 1] = $modVar_AF_TempStr
  1564. modVar_AF_TeamB_PlayerSkill[matchsetupbubblecount + 1] = modVar_AF_Temp
  1565. modVar_AF_TeamB_PlayerBaseSkill[matchsetupbubblecount + 1] = modVar_AF_Temp2
  1566. matchsetupsortcount += 1
  1567. end
  1568. matchsetupbubblecount += 1
  1569. jump 'matchsetupbubbleBstart'
  1570. :matchsetupbubbleBend
  1571. if matchsetupsortcount > 0 : jump 'matchsetupsortB'
  1572. if $ARGS[4] = 'Simulate' : gs 'mod_addedflavour_Volleyball' , 'SimulateMatch'
  1573. elseif $ARGS[1] = 'Practice':
  1574. modVar_AF_MatchPracticeSub = 1
  1575. matchsetupPloopcount = 0
  1576. :matchsetupPloopstart
  1577. if matchsetupPloopcount >= arrsize('$modArr_AF_VBall_PlayerName') : jump 'matchsetupPloopend'
  1578. if $modArr_AF_VBall_PlayerTeam[matchsetupPloopcount] = $modVar_AF_TeamA_PlayerTeam:
  1579. $modVar_AF_TeamA_PlayerName[] = $modArr_AF_VBall_PlayerName[matchsetupPloopcount]
  1580. modVar_AF_TeamA_PlayerSkill[] = modArr_AF_VBall_PlayerSkill[matchsetupPloopcount]
  1581. modVar_AF_TeamA_PlayerBaseSkill[] = modArr_AF_VBall_PlayerSkill[matchsetupPloopcount]
  1582. modVar_AF_TeamA_PlayerStamina[] = 100
  1583. modArr_AF_MatchAScorers[] = 0
  1584. elseif $modArr_AF_VBall_PlayerTeam[matchsetupPloopcount] = $modVar_AF_TeamB_PlayerTeam:
  1585. $modVar_AF_TeamB_PlayerName[] = $modArr_AF_VBall_PlayerName[matchsetupPloopcount]
  1586. modVar_AF_TeamB_PlayerSkill[] = modArr_AF_VBall_PlayerSkill[matchsetupPloopcount]
  1587. modVar_AF_TeamB_PlayerBaseSkill[] = modArr_AF_VBall_PlayerSkill[matchsetupPloopcount]
  1588. modVar_AF_TeamB_PlayerStamina[] = 100
  1589. modArr_AF_MatchBScorers[] = 0
  1590. end
  1591. matchsetupPloopcount += 1
  1592. jump 'matchsetupPloopstart'
  1593. :matchsetupPloopend
  1594. :matchsetupPsortA
  1595. matchsetupPsortcount = 0
  1596. matchsetupPbubblecount = 0
  1597. :matchsetupPbubbleAstart
  1598. if matchsetupPbubblecount >= 10 : jump 'matchsetupPbubbleAend'
  1599. if modVar_AF_TeamA_PlayerSkill[matchsetupPbubblecount] < modVar_AF_TeamA_PlayerSkill[matchsetupPbubblecount + 1]:
  1600. $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[matchsetupPbubblecount]
  1601. modVar_AF_Temp = modVar_AF_TeamA_PlayerSkill[matchsetupPbubblecount]
  1602. modVar_AF_Temp2 = modVar_AF_TeamA_PlayerBaseSkill[matchsetupPbubblecount]
  1603. $modVar_AF_TeamA_PlayerName[matchsetupPbubblecount] = $modVar_AF_TeamA_PlayerName[matchsetupPbubblecount + 1]
  1604. modVar_AF_TeamA_PlayerSkill[matchsetupPbubblecount] = modVar_AF_TeamA_PlayerSkill[matchsetupPbubblecount + 1]
  1605. modVar_AF_TeamA_PlayerBaseSkill[matchsetupPbubblecount] = modVar_AF_TeamA_PlayerBaseSkill[matchsetupPbubblecount + 1]
  1606. $modVar_AF_TeamA_PlayerName[matchsetupPbubblecount + 1] = $modVar_AF_TempStr
  1607. modVar_AF_TeamA_PlayerSkill[matchsetupPbubblecount + 1] = modVar_AF_Temp
  1608. modVar_AF_TeamA_PlayerBaseSkill[matchsetupPbubblecount + 1] = modVar_AF_Temp2
  1609. matchsetupPsortcount += 1
  1610. end
  1611. matchsetupPbubblecount += 1
  1612. jump 'matchsetupPbubbleAstart'
  1613. :matchsetupPbubbleAend
  1614. if matchsetupPsortcount > 0 : jump 'matchsetupPsortA'
  1615. :matchsetupPsortB
  1616. matchsetupPsortcount = 0
  1617. matchsetupPbubblecount = 0
  1618. :matchsetupPbubbleBstart
  1619. if matchsetupPbubblecount >= 10 : jump 'matchsetupPbubbleBend'
  1620. if modVar_AF_TeamB_PlayerSkill[matchsetupPbubblecount] < modVar_AF_TeamB_PlayerSkill[matchsetupPbubblecount + 1]:
  1621. $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[matchsetupPbubblecount]
  1622. modVar_AF_Temp = modVar_AF_TeamB_PlayerSkill[matchsetupPbubblecount]
  1623. modVar_AF_Temp2 = modVar_AF_TeamB_PlayerBaseSkill[matchsetupPbubblecount]
  1624. $modVar_AF_TeamB_PlayerName[matchsetupPbubblecount] = $modVar_AF_TeamB_PlayerName[matchsetupPbubblecount + 1]
  1625. modVar_AF_TeamB_PlayerSkill[matchsetupPbubblecount] = modVar_AF_TeamB_PlayerSkill[matchsetupPbubblecount + 1]
  1626. modVar_AF_TeamB_PlayerBaseSkill[matchsetupPbubblecount] = modVar_AF_TeamB_PlayerBaseSkill[matchsetupPbubblecount + 1]
  1627. $modVar_AF_TeamB_PlayerName[matchsetupPbubblecount + 1] = $modVar_AF_TempStr
  1628. modVar_AF_TeamB_PlayerSkill[matchsetupPbubblecount + 1] = modVar_AF_Temp
  1629. modVar_AF_TeamB_PlayerBaseSkill[matchsetupPbubblecount + 1] = modVar_AF_Temp2
  1630. matchsetupPsortcount += 1
  1631. end
  1632. matchsetupPbubblecount += 1
  1633. jump 'matchsetupPbubbleBstart'
  1634. :matchsetupPbubbleBend
  1635. if matchsetupPsortcount > 0 : jump 'matchsetupPsortB'
  1636. end
  1637. end
  1638. if $ARGS[0] = 'SimulateMatch':
  1639. KILLVAR 'modArr_AF_Rand'
  1640. simmatcherrorcount = 0
  1641. matchsimplayercount = 0
  1642. modVar_AF_RandUpper = 0
  1643. :matchsimplayerloopstart
  1644. if simmatcherrorcount >= 1000 : $modVar_AF_LoopErrorLoc = 'Volleyball Sim PlayerLoop' & jump 'matchsimplayerloopend'
  1645. if matchsimplayercount >= 20 : jump'matchsimplayerloopend'
  1646. if matchsimplayercount < 10:
  1647. modVar_AF_RandUpper += modVar_AF_TeamA_PlayerSkill[matchsimplayercount]
  1648. else
  1649. modVar_AF_Temp2 = matchsimplayercount - 10
  1650. modVar_AF_RandUpper += modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]
  1651. end
  1652. matchsimplayercount += 1
  1653. simmatcherrorcount += 1
  1654. jump 'matchsimplayerloopstart'
  1655. :matchsimplayerloopend
  1656. matchsimresultcount = 1
  1657. :matchsimresultloopstart
  1658. modVar_AF_Temp = 0
  1659. if simmatcherrorcount >= 1000 : $modVar_AF_LoopErrorLoc = 'Volleyball Sim ScorerLoop' & jump 'matchsimresultloopend'
  1660. simmatcherrorcount += 1
  1661. if matchsimresultcount >= 13 and modVar_AF_MatchPointsA ! modVar_AF_MatchPointsB : jump 'matchsimresultloopend'
  1662. !Repeated to flush out Random Number Generator
  1663. modVar_AF_Rand = rand(1,modVar_AF_RandUpper)
  1664. modVar_AF_Rand = rand(1,modVar_AF_RandUpper)
  1665. modVar_AF_Rand = rand(1,modVar_AF_RandUpper)
  1666. modVar_AF_RandLower = modVar_AF_Rand
  1667. matchsimfindscorercount = 0
  1668. :matchsimfindscorerloopstart
  1669. if simmatcherrorcount >= 1000 : $modVar_AF_LoopErrorLoc = 'Volleyball Sim ScorerLoop' & jump 'matchsimresultloopend'
  1670. simmatcherrorcount += 1
  1671. if matchsimfindscorercount < 10:
  1672. modVar_AF_Rand -= modVar_AF_TeamA_PlayerSkill[matchsimfindscorercount]
  1673. else
  1674. modVar_AF_Temp2 = matchsimfindscorercount - 10
  1675. modVar_AF_Rand -= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2]
  1676. end
  1677. if modVar_AF_Rand <= modVar_AF_Temp:
  1678. if matchsimfindscorercount < 10:
  1679. modVar_AF_MatchPointsA += 1
  1680. modArr_AF_MatchAScorers[matchsimfindscorercount] += 1
  1681. else
  1682. modVar_AF_Temp2 = matchsimfindscorercount - 10
  1683. modVar_AF_MatchPointsB += 1
  1684. modArr_AF_MatchBScorers[modVar_AF_Temp2] += 1
  1685. end
  1686. matchsimresultcount += 1
  1687. jump 'matchsimresultloopstart'
  1688. else
  1689. matchsimfindscorercount += 1
  1690. jump 'matchsimfindscorerloopstart'
  1691. end
  1692. :matchsimresultloopend
  1693. end
  1694. if $ARGS[0] = 'SortTournamentPlayers':
  1695. :sortplayerssortstart
  1696. sortplayerssortcount = 0
  1697. sortplayerssortbubblecount = 0
  1698. :sortplayerssortbubblestart
  1699. if sortplayerssortbubblecount >= arrsize('$modArr_AF_VBallT_PlayerName') : jump 'sortplayerssortbubbleend'
  1700. if modArr_AF_VBallT_PlayerSkill[sortplayerssortbubblecount] < modArr_AF_VBallT_PlayerSkill[sortplayerssortbubblecount + 1]:
  1701. $modVar_AF_TempStr = $modArr_AF_VBallT_PlayerName[sortplayerssortbubblecount]
  1702. $modArr_AF_VBallT_PlayerName[sortplayerssortbubblecount] = $modArr_AF_VBallT_PlayerName[sortplayerssortbubblecount + 1]
  1703. $modArr_AF_VBallT_PlayerName[sortplayerssortbubblecount + 1] = $modVar_AF_TempStr
  1704. $modVar_AF_TempStr = $modArr_AF_VBallT_PlayerTeam[sortplayerssortbubblecount]
  1705. $modArr_AF_VBallT_PlayerTeam[sortplayerssortbubblecount] = $modArr_AF_VBallT_PlayerTeam[sortplayerssortbubblecount + 1]
  1706. $modArr_AF_VBallT_PlayerTeam[sortplayerssortbubblecount + 1] = $modVar_AF_TempStr
  1707. modVar_AF_Temp = modArr_AF_VBallT_PlayerSkill[sortplayerssortbubblecount]
  1708. modArr_AF_VBallT_PlayerSkill[sortplayerssortbubblecount] = modArr_AF_VBallT_PlayerSkill[sortplayerssortbubblecount + 1]
  1709. modArr_AF_VBallT_PlayerSkill[sortplayerssortbubblecount + 1] = modVar_AF_Temp
  1710. sortplayerssortcount += 1
  1711. end
  1712. sortplayerssortbubblecount += 1
  1713. jump 'sortplayerssortbubblestart'
  1714. :sortplayerssortbubbleend
  1715. if sortplayerssortcount > 0 : jump 'sortplayerssortstart'
  1716. end
  1717. if $ARGS[0] = 'SortLeagues':
  1718. if modArr_AF_VLeagueA_Wins[0] + modArr_AF_VLeagueA_Wins[1] + modArr_AF_VLeagueA_Wins[2] + modArr_AF_VLeagueA_Wins[3] = 0 : jump 'sortleaguesskipsort'
  1719. :sortleaguesAsortstart
  1720. sortleaguessortcount = 0
  1721. sortleaguessortbubblecount = 0
  1722. :sortleaguesAsortbubblestart
  1723. if sortleaguessortbubblecount >= arrsize('$modArr_AF_VLeagueA_TeamName') : jump 'sortleaguesAsortbubbleend'
  1724. if modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] < modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1]:
  1725. $modVar_AF_TempStr = $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount]
  1726. modVar_AF_Temp = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount]
  1727. modVar_AF_Temp2 = modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount]
  1728. modVar_AF_Temp3 = modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount]
  1729. $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount] = $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount + 1]
  1730. modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1]
  1731. modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1]
  1732. modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount] = modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount + 1]
  1733. $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr
  1734. modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1] = modVar_AF_Temp
  1735. modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2
  1736. modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3
  1737. sortleaguessortcount += 1
  1738. elseif modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1] and modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount] < modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1]:
  1739. $modVar_AF_TempStr = $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount]
  1740. modVar_AF_Temp = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount]
  1741. modVar_AF_Temp2 = modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount]
  1742. modVar_AF_Temp3 = modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount]
  1743. $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount] = $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount + 1]
  1744. modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1]
  1745. modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1]
  1746. modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount] = modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount + 1]
  1747. $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr
  1748. modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1] = modVar_AF_Temp
  1749. modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2
  1750. modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3
  1751. sortleaguessortcount += 1
  1752. elseif modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1] and modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1] and modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount] > modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount + 1]:
  1753. $modVar_AF_TempStr = $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount]
  1754. modVar_AF_Temp = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount]
  1755. modVar_AF_Temp2 = modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount]
  1756. modVar_AF_Temp3 = modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount]
  1757. $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount] = $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount + 1]
  1758. modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1]
  1759. modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1]
  1760. modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount] = modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount + 1]
  1761. $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr
  1762. modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1] = modVar_AF_Temp
  1763. modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2
  1764. modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3
  1765. sortleaguessortcount += 1
  1766. end
  1767. sortleaguessortbubblecount += 1
  1768. jump 'sortleaguesAsortbubblestart'
  1769. :sortleaguesAsortbubbleend
  1770. if sortleaguessortcount > 0 : jump 'sortleaguesAsortstart'
  1771. :sortleaguesBsortstart
  1772. sortleaguessortcount = 0
  1773. sortleaguessortbubblecount = 0
  1774. :sortleaguesBsortbubblestart
  1775. if sortleaguessortbubblecount >= arrsize('$modArr_AF_VLeagueB_TeamName') : jump 'sortleaguesBsortbubbleend'
  1776. if modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] < modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1]:
  1777. $modVar_AF_TempStr = $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount]
  1778. modVar_AF_Temp = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount]
  1779. modVar_AF_Temp2 = modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount]
  1780. modVar_AF_Temp3 = modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount]
  1781. $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount] = $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount + 1]
  1782. modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1]
  1783. modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1]
  1784. modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount] = modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount + 1]
  1785. $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr
  1786. modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1] = modVar_AF_Temp
  1787. modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2
  1788. modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3
  1789. sortleaguessortcount += 1
  1790. elseif modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1] and modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount] < modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1]:
  1791. $modVar_AF_TempStr = $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount]
  1792. modVar_AF_Temp = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount]
  1793. modVar_AF_Temp2 = modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount]
  1794. modVar_AF_Temp3 = modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount]
  1795. $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount] = $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount + 1]
  1796. modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1]
  1797. modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1]
  1798. modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount] = modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount + 1]
  1799. $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr
  1800. modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1] = modVar_AF_Temp
  1801. modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2
  1802. modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3
  1803. sortleaguessortcount += 1
  1804. elseif modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1] and modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1] and modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount] > modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount + 1]:
  1805. $modVar_AF_TempStr = $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount]
  1806. modVar_AF_Temp = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount]
  1807. modVar_AF_Temp2 = modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount]
  1808. modVar_AF_Temp3 = modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount]
  1809. $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount] = $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount + 1]
  1810. modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1]
  1811. modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1]
  1812. modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount] = modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount + 1]
  1813. $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr
  1814. modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1] = modVar_AF_Temp
  1815. modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2
  1816. modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3
  1817. sortleaguessortcount += 1
  1818. end
  1819. sortleaguessortbubblecount += 1
  1820. jump 'sortleaguesBsortbubblestart'
  1821. :sortleaguesBsortbubbleend
  1822. if sortleaguessortcount > 0 : jump 'sortleaguesBsortstart'
  1823. :sortleaguesskipsort
  1824. end
  1825. if $ARGS[0] = 'SetupPractice':
  1826. KILLVAR '$modArr_AF_VBall_PlayerName'
  1827. KILLVAR '$modArr_AF_VBall_PlayerTeam'
  1828. KILLVAR 'modArr_AF_VBall_PlayerSkill'
  1829. KILLVAR 'modArr_AF_Rand'
  1830. modArr_AF_Rand[] = rand(1,2)
  1831. modArr_AF_Rand[] = rand(1,2)
  1832. modArr_AF_Rand[] = rand(1,2)
  1833. modArr_AF_Rand[] = rand(1,2)
  1834. $tempname = $ARGS[1]
  1835. vballpracticecount = 0
  1836. :vballpracticeloopstart
  1837. gs 'mod_addedflavour_GameFunctions' , 'SetupTeam' , $tempname , 2 , 10 , 50 , 80
  1838. if (modArr_AF_Rand[0] = 1 and $tempname = $ARGS[1]) or (modArr_AF_Rand[0] = 2 and $tempname = $ARGS[2]): $modArr_AF_PlayerNameTemp[0] = '<<$pcs_firstname>> <<$pcs_lastname>>'
  1839. if (modArr_AF_Rand[0] = 1 and $tempname = $ARGS[1]) or (modArr_AF_Rand[0] = 2 and $tempname = $ARGS[2]): modArr_AF_PlayerSkillTemp[0] = pcs_vball
  1840. if (modArr_AF_Rand[1] = 1 and $tempname = 'Pavlovsk Falcons A') or (modArr_AF_Rand[1] = 2 and $tempname = 'Pavlovsk Falcons B'): $modArr_AF_PlayerNameTemp[1] = 'Christina Zvernava'
  1841. if (modArr_AF_Rand[1] = 1 and $tempname = 'Pavlovsk Falcons A') or (modArr_AF_Rand[1] = 2 and $tempname = 'Pavlovsk Falcons B'): modArr_AF_PlayerSkillTemp[1] = 70
  1842. if (modArr_AF_Rand[2] = 1 and $tempname = 'Pavlovsk Falcons A') or (modArr_AF_Rand[2] = 2 and $tempname = 'Pavlovsk Falcons B'): $modArr_AF_PlayerNameTemp[2] = 'Avelina Starov'
  1843. if (modArr_AF_Rand[2] = 1 and $tempname = 'Pavlovsk Falcons A') or (modArr_AF_Rand[2] = 2 and $tempname = 'Pavlovsk Falcons B'): modArr_AF_PlayerSkillTemp[2] = 55
  1844. if (modArr_AF_Rand[3] = 1 and $tempname = 'Pavlovsk Falcons A') or (modArr_AF_Rand[3] = 2 and $tempname = 'Pavlovsk Falcons B'): $modArr_AF_PlayerNameTemp[3] = 'Lariska Gruzdeva'
  1845. if (modArr_AF_Rand[3] = 1 and $tempname = 'Pavlovsk Falcons A') or (modArr_AF_Rand[3] = 2 and $tempname = 'Pavlovsk Falcons B'): modArr_AF_PlayerSkillTemp[3] = 80
  1846. vballpracticesubcount = 0
  1847. :vballpracticesubloopstart
  1848. if vballpracticesubcount >= 10 : jump 'vballpracticesubloopend'
  1849. $modArr_AF_VBall_PlayerName[] = $modArr_AF_PlayerNameTemp[vballpracticesubcount]
  1850. $modArr_AF_VBall_PlayerTeam[] = $modArr_AF_PlayerTeamTemp[vballpracticesubcount]
  1851. modArr_AF_VBall_PlayerSkill[] = modArr_AF_PlayerSkillTemp[vballpracticesubcount]
  1852. vballpracticesubcount += 1
  1853. jump 'vballpracticesubloopstart'
  1854. :vballpracticesubloopend
  1855. if $tempname = $ARGS[1] : $tempname = $ARGS[2] & jump 'vballpracticeloopstart'
  1856. $modVar_AF_Music = 'VolleyballPractice'
  1857. end
  1858. if $ARGS[0] = 'SetupTournament':
  1859. KILLVAR '$modArr_AF_VBallT_PlayerName'
  1860. KILLVAR '$modArr_AF_VBallT_PlayerTeam'
  1861. KILLVAR 'modArr_AF_VBallT_PlayerSkill'
  1862. $tempname = 'Pavlovsk Falcons'
  1863. vballtournamentcount = 0
  1864. :vballtournamentloopstart
  1865. gs 'mod_addedflavour_GameFunctions' , 'SetupTeam' , $tempname , 2 , 10 , 50 , 80
  1866. if $tempname = 'Pavlovsk Falcons':
  1867. $modArr_AF_PlayerNameTemp[0] = '<<$pcs_firstname>> <<$pcs_lastname>>'
  1868. modArr_AF_PlayerSkillTemp[0] = pcs_vball
  1869. $modArr_AF_PlayerNameTemp[1] = 'Avelina Starov'
  1870. modArr_AF_PlayerSkillTemp[1] = 55
  1871. $modArr_AF_PlayerNameTemp[2] = 'Christina Zvernava'
  1872. modArr_AF_PlayerSkillTemp[2] = 70
  1873. $modArr_AF_PlayerNameTemp[3] = 'Lariska Gruzdeva'
  1874. modArr_AF_PlayerSkillTemp[3] = 80
  1875. end
  1876. vballtournamentsubcount = 0
  1877. :vballtournamentsubloopstart
  1878. if vballtournamentsubcount >= 10 : jump 'vballtournamentsubloopend'
  1879. $modArr_AF_VBallT_PlayerName[] = $modArr_AF_PlayerNameTemp[vballtournamentsubcount]
  1880. $modArr_AF_VBallT_PlayerTeam[] = $modArr_AF_PlayerTeamTemp[vballtournamentsubcount]
  1881. modArr_AF_VBallT_PlayerSkill[] = modArr_AF_PlayerSkillTemp[vballtournamentsubcount]
  1882. vballtournamentsubcount += 1
  1883. jump 'vballtournamentsubloopstart'
  1884. :vballtournamentsubloopend
  1885. if $tempname = 'Pavlovsk Falcons' : $tempname = 'Gatchina Chiefs' & jump 'vballtournamentloopstart'
  1886. if $tempname = 'Gatchina Chiefs' : $tempname = 'Kolpino Panthers' & jump 'vballtournamentloopstart'
  1887. if $tempname = 'Kolpino Panthers' : $tempname = 'Bor Bears' & jump 'vballtournamentloopstart'
  1888. if $tempname = 'Bor Bears' : $tempname = 'Vsevolozhsk Jets' & jump 'vballtournamentloopstart'
  1889. if $tempname = 'Vsevolozhsk Jets' : $tempname = 'Olkhovsky Warriors' & jump 'vballtournamentloopstart'
  1890. if $tempname = 'Olkhovsky Warriors' : $tempname = 'Bolshaya Chargers' & jump 'vballtournamentloopstart'
  1891. if $tempname = 'Bolshaya Chargers' : $tempname = 'Primorsky Predators' & jump 'vballtournamentloopstart'
  1892. gs 'mod_addedflavour_Volleyball' , 'ApplyTournamentBias'
  1893. $modVar_AF_Music = 'VolleyballTournament'
  1894. KILLVAR '$modArr_AF_PlayerNameTemp'
  1895. KILLVAR '$modArr_AF_PlayerTeamTemp'
  1896. KILLVAR 'modArr_AF_PlayerSkillTemp'
  1897. KILLVAR '$modArr_AF_FNamePool'
  1898. KILLVAR '$modArr_AF_LNamePool'
  1899. end
  1900. if $ARGS[0] = 'SetupLeagues':
  1901. KILLVAR '$modArr_AF_VLeagueA_TeamName'
  1902. KILLVAR 'modArr_AF_VLeagueA_Wins'
  1903. KILLVAR 'modArr_AF_VLeagueA_PointsFor'
  1904. KILLVAR 'modArr_AF_VLeagueA_PointsAgainst'
  1905. KILLVAR '$modArr_AF_VLeagueA_Games'
  1906. KILLVAR '$modArr_AF_VLeagueB_TeamName'
  1907. KILLVAR 'modArr_AF_VLeagueB_Wins'
  1908. KILLVAR 'modArr_AF_VLeagueB_PointsFor'
  1909. KILLVAR 'modArr_AF_VLeagueB_PointsAgainst'
  1910. KILLVAR '$modArr_AF_VLeagueB_Games'
  1911. KILLVAR '$modArr_AF_Rand'
  1912. $modArr_AF_Rand[] = 'Gatchina Chiefs'
  1913. $modArr_AF_Rand[] = 'Kolpino Panthers'
  1914. $modArr_AF_Rand[] = 'Vsevolozhsk Jets'
  1915. $modArr_AF_Rand[] = 'Olkhovsky Warriors'
  1916. $modArr_AF_Rand[] = 'Bolshaya Chargers'
  1917. $modArr_AF_Rand[] = 'Primorsky Predators'
  1918. $modArr_AF_VLeagueA_TeamName[] = 'Pavlovsk Falcons'
  1919. modArr_AF_VLeagueA_Wins[] = 0
  1920. modArr_AF_VLeagueA_PointsFor[] = 0
  1921. modArr_AF_VLeagueA_PointsAgainst[] = 0
  1922. $modArr_AF_VLeagueB_TeamName[] = 'Bor Bears'
  1923. modArr_AF_VLeagueB_Wins[] = 0
  1924. modArr_AF_VLeagueB_PointsFor[] = 0
  1925. modArr_AF_VLeagueB_PointsAgainst[] = 0
  1926. setupleaguesloopcount = 0
  1927. modVar_AF_Temp2 = 1
  1928. :setupleaguesloopstart
  1929. if setupleaguesloopcount = 6 : jump 'setupleaguesloopend'
  1930. modVar_AF_Rand = rand(1,arrsize('$modArr_AF_Rand')) - 1
  1931. $modVar_AF_TempStr = $modArr_AF_Rand[modVar_AF_Rand]
  1932. KILLVAR '$modArr_AF_Rand' , modVar_AF_Rand
  1933. if modVar_AF_Temp2 = 1:
  1934. $modArr_AF_VLeagueA_TeamName[] = $modVar_AF_TempStr
  1935. modArr_AF_VLeagueA_Wins[] = 0
  1936. modArr_AF_VLeagueA_PointsFor[] = 0
  1937. modArr_AF_VLeagueA_PointsAgainst[] = 0
  1938. elseif modVar_AF_Temp2 = 2:
  1939. $modArr_AF_VLeagueB_TeamName[] = $modVar_AF_TempStr
  1940. modArr_AF_VLeagueB_Wins[] = 0
  1941. modArr_AF_VLeagueB_PointsFor[] = 0
  1942. modArr_AF_VLeagueB_PointsAgainst[] = 0
  1943. end
  1944. if modVar_AF_Temp2 = 1:
  1945. modVar_AF_Temp2 = 2
  1946. elseif modVar_AF_Temp2 = 2:
  1947. modVar_AF_Temp2 = 1
  1948. end
  1949. setupleaguesloopcount += 1
  1950. jump 'setupleaguesloopstart'
  1951. :setupleaguesloopend
  1952. $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[0]
  1953. $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[1]
  1954. $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[2]
  1955. $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[3]
  1956. $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[0]
  1957. $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[2]
  1958. $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[1]
  1959. $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[3]
  1960. $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[0]
  1961. $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[3]
  1962. $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[1]
  1963. $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[2]
  1964. $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[0]
  1965. $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[1]
  1966. $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[2]
  1967. $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[3]
  1968. $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[0]
  1969. $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[2]
  1970. $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[1]
  1971. $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[3]
  1972. $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[0]
  1973. $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[3]
  1974. $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[1]
  1975. $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[2]
  1976. end
  1977. if $ARGS[0] = 'ApplyTournamentBias':
  1978. vballtournamentbiasloopcount = 0
  1979. modVar_AF_Temp = (20 * ((volsesonwin * 100) / volsesongame)) / 100
  1980. :vballtournamentbiasloopstart
  1981. if vballtournamentbiasloopcount >= arrsize('$modArr_AF_VBallT_PlayerName') : jump 'vballtournamentbiasloopend'
  1982. if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Pavlovsk Falcons' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand((modVar_AF_Temp - 10),(modVar_AF_Temp + 10))
  1983. if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Gatchina Chiefs' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(-8,12)
  1984. if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Kolpino Panthers' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(-5,15)
  1985. if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Bor Bears' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(10,20)
  1986. if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Vsevolozhsk Jets' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(-2,18)
  1987. if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Olkhovsky Warriors' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(-7,13)
  1988. if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Bolshaya Chargers' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(-4,16)
  1989. if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Primorsky Predators' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(-5,15)
  1990. vballtournamentbiasloopcount += 1
  1991. jump 'vballtournamentbiasloopstart'
  1992. :vballtournamentbiasloopend
  1993. end
  1994. --- mod_addedflavour_Volleyball ---------------------------------