# mod_addedflavour_Volleyball if $ARGS[0] = 'Match': if sound = 0 : PLAY 'mod/addedflavour/sound/<<$modVar_AF_Music>>.mp3' gs 'stat' '
' + iif($modVar_AF_MatchBallTeam = 'A','','') + '<<$modVar_AF_TeamA_PlayerTeam>>' + iif($modVar_AF_MatchBallTeam = 'A','','') + ' - <> -vs- <> - ' + iif($modVar_AF_MatchBallTeam = 'B','','') + '<<$modVar_AF_TeamB_PlayerTeam>>' + iif($modVar_AF_MatchBallTeam = 'B','','') + '
' KILLVAR '$modArr_AF_MatchAIOptions' gs 'mod_addedflavour_Volleyball' , 'AIStance' gs 'mod_addedflavour_Volleyball' , 'BallAction' gs 'mod_addedflavour_Volleyball' , 'ManageStamina' , 'Event' gs 'mod_addedflavour_Volleyball' , 'PlayerKnowledge' if $modVar_AF_MatchPlayerLoc ! 'AX' and $modVar_AF_MatchPlayerLoc ! 'BX': if $modVar_AF_MatchAction ! 'Fumble' and $modVar_AF_MatchPlayerLoc ! $modVar_AF_MatchBall: if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Defend': if strpos($modVar_AF_MatchPlayerLoc,'1') ! 0 : act 'Go Wide' : $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Wide' & gs 'mod_addedflavour_Volleyball' , 'AIAction' elseif strpos($modVar_AF_MatchPlayerLoc,'3') ! 0 : act 'Go Wide' : $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Wide' & gs 'mod_addedflavour_Volleyball' , 'AIAction' elseif strpos($modVar_AF_MatchPlayerLoc,'4') ! 0 : act 'Move Forward' : $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Attack' & gs 'mod_addedflavour_Volleyball' , 'AIAction' elseif strpos($modVar_AF_MatchPlayerLoc,'5') ! 0 : act 'Move Forward' : $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Attack' & gs 'mod_addedflavour_Volleyball' , 'AIAction' elseif strpos($modVar_AF_MatchPlayerLoc,'6') ! 0 : act 'Move Forward' : $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Attack' & gs 'mod_addedflavour_Volleyball' , 'AIAction' end end if $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Attack' or $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Wide': act 'Return Defensive' : $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] = 'Defend' & gs 'mod_addedflavour_Volleyball' , 'AIAction' end act 'Just Watch the Play' : gs 'mod_addedflavour_Volleyball' , 'AIAction' end elseif $modVar_AF_MatchAction ! 'Fumble': act 'Just Watch the Play' : gs 'mod_addedflavour_Volleyball' , 'AIAction' end *nl 'Change Music' *nl end if $ARGS[0] = 'ChangeMusic': if $modVar_AF_Music = 'VolleyballPractice': $modVar_AF_Music = 'VolleyballTournament' elseif $modVar_AF_Music = 'VolleyballTournament': $modVar_AF_Music = 'VolleyballFinal' elseif $modVar_AF_Music = 'VolleyballFinal': $modVar_AF_Music = 'No Music' elseif $modVar_AF_Music = 'No Music': $modVar_AF_Music = 'VolleyballPractice' end 'Backing Track is currently set to - "<<$modVar_AF_Music>>"' CLOSE ALL PLAY 'mod/addedflavour/sound/<<$modVar_AF_Music>>.mp3' end if $ARGS[0] = 'BallAction': if $modVar_AF_MatchAction = 'Serve': '
' *nl modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>'] if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] '
<<$modVar_AF_TempStr>> prepares to Serve the Ball...
' if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Serve to Zone 1' : gs 'mod_addedflavour_Volleyball' , 'ServeAction' , '1' else $modArr_AF_MatchAIOptions[] = 'Serve-1' end if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Serve to Zone 2' : gs 'mod_addedflavour_Volleyball' , 'ServeAction' , '2' else $modArr_AF_MatchAIOptions[] = 'Serve-2' end if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Serve to Zone 3' : gs 'mod_addedflavour_Volleyball' , 'ServeAction' , '3' else $modArr_AF_MatchAIOptions[] = 'Serve-3' end end if $modVar_AF_MatchAction = 'Pass': '
' *nl modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchBallPrev>>'] if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] if strpos($modVar_AF_MatchBallPrev,'A') ! 0 and $modVar_AF_MatchBallTeam = 'B': $modVar_AF_TempStr2 = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp2] elseif strpos($modVar_AF_MatchBallPrev,'B') ! 0 and $modVar_AF_MatchBallTeam = 'A': $modVar_AF_TempStr2 = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp2] else if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr2 = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp2] if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr2 = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp2] end '
<<$modVar_AF_TempStr2>> hits the Ball to <<$modVar_AF_TempStr>>...
' if strpos($modVar_AF_MatchBall,'1') ! 0: if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>3'] = 'Wide': if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 3' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '3' else $modArr_AF_MatchAIOptions[] = 'Pass-3' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 4' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '4' else $modArr_AF_MatchAIOptions[] = 'Pass-4' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 5' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '5' else $modArr_AF_MatchAIOptions[] = 'Pass-5' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 6' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '6' else $modArr_AF_MatchAIOptions[] = 'Pass-6' end end if modVar_AF_MatchTouches > 1 or $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>1'] = 'Wide': if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction' else $modArr_AF_MatchAIOptions[] = 'SpikeAttack' end end elseif strpos($modVar_AF_MatchBall,'2') ! 0: if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>1'] = 'Wide': if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 1' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '1' else $modArr_AF_MatchAIOptions[] = 'Pass-1' end end if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>3'] = 'Wide': if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 3' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '3' else $modArr_AF_MatchAIOptions[] = 'Pass-3' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 4' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '4' else $modArr_AF_MatchAIOptions[] = 'Pass-4' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 5' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '5' else $modArr_AF_MatchAIOptions[] = 'Pass-5' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 6' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '6' else $modArr_AF_MatchAIOptions[] = 'Pass-6' end end if modVar_AF_MatchTouches > 1: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction' else $modArr_AF_MatchAIOptions[] = 'SpikeAttack' end end elseif strpos($modVar_AF_MatchBall,'3') ! 0: if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>1'] = 'Wide': if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 1' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '1' else $modArr_AF_MatchAIOptions[] = 'Pass-1' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 4' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '4' else $modArr_AF_MatchAIOptions[] = 'Pass-4' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 5' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '5' else $modArr_AF_MatchAIOptions[] = 'Pass-5' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 6' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '6' else $modArr_AF_MatchAIOptions[] = 'Pass-6' end end if modVar_AF_MatchTouches > 1 or $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>3'] = 'Wide': if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction' else $modArr_AF_MatchAIOptions[] = 'SpikeAttack' end end elseif strpos($modVar_AF_MatchBall,'4') ! 0: if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>1'] = 'Wide': if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 1' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '1' else $modArr_AF_MatchAIOptions[] = 'Pass-1' end end if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>3'] = 'Wide': if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 3' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '3' else $modArr_AF_MatchAIOptions[] = 'Pass-3' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 5' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '5' else $modArr_AF_MatchAIOptions[] = 'Pass-5' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 6' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '6' else $modArr_AF_MatchAIOptions[] = 'Pass-6' end end if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Tip Attack (Front Row)' : gs 'mod_addedflavour_Volleyball' , 'TipAction' else $modArr_AF_MatchAIOptions[] = 'TipAttack' end if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction' else $modArr_AF_MatchAIOptions[] = 'SpikeAttack' end elseif strpos($modVar_AF_MatchBall,'5') ! 0: if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>1'] = 'Wide': if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 1' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '1' else $modArr_AF_MatchAIOptions[] = 'Pass-1' end end if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>3'] = 'Wide': if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 3' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '3' else $modArr_AF_MatchAIOptions[] = 'Pass-3' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 4' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '4' else $modArr_AF_MatchAIOptions[] = 'Pass-4' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 6' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '6' else $modArr_AF_MatchAIOptions[] = 'Pass-6' end end if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Tip Attack (Front Row)' : gs 'mod_addedflavour_Volleyball' , 'TipAction' else $modArr_AF_MatchAIOptions[] = 'TipAttack' end if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction' else $modArr_AF_MatchAIOptions[] = 'SpikeAttack' end elseif strpos($modVar_AF_MatchBall,'6') ! 0: if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>1'] = 'Wide': if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 1' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '1' else $modArr_AF_MatchAIOptions[] = 'Pass-1' end end if modVar_AF_MatchTouches < 2 and $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallTeam>>3'] = 'Wide': if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 3' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '3' else $modArr_AF_MatchAIOptions[] = 'Pass-3' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 4' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '4' else $modArr_AF_MatchAIOptions[] = 'Pass-4' end end if modVar_AF_MatchTouches < 2: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Pass to Zone 5' : gs 'mod_addedflavour_Volleyball' , 'PassAction' , '5' else $modArr_AF_MatchAIOptions[] = 'Pass-5' end end if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Tip Attack (Front Row)' : gs 'mod_addedflavour_Volleyball' , 'TipAction' else $modArr_AF_MatchAIOptions[] = 'TipAttack' end if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction' else $modArr_AF_MatchAIOptions[] = 'SpikeAttack' end end end if $modVar_AF_MatchAction = 'Tip': '
' *nl modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchBallPrev>>'] if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr2 = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp2] if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr2 = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp2] '
<<$modVar_AF_TempStr2>> Tips the Ball! <<$modVar_AF_TempStr>> is nearest to intercept...
' if strpos($modVar_AF_MatchBall,'4') ! 0: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Block' : gs 'mod_addedflavour_Volleyball' , 'BlockAction' else $modArr_AF_MatchAIOptions[] = 'Block' end if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction' else $modArr_AF_MatchAIOptions[] = 'SpikeAttack' end elseif strpos($modVar_AF_MatchBall,'5') ! 0: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Block' : gs 'mod_addedflavour_Volleyball' , 'BlockAction' else $modArr_AF_MatchAIOptions[] = 'Block' end if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction' else $modArr_AF_MatchAIOptions[] = 'SpikeAttack' end elseif strpos($modVar_AF_MatchBall,'6') ! 0: if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Block' : gs 'mod_addedflavour_Volleyball' , 'BlockAction' else $modArr_AF_MatchAIOptions[] = 'Block' end if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Spike Attack (Back Row)' : gs 'mod_addedflavour_Volleyball' , 'SpikeAction' else $modArr_AF_MatchAIOptions[] = 'SpikeAttack' end end end if $modVar_AF_MatchAction = 'Spike': '
' *nl modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchBallPrev>>'] if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr2 = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp2] if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr2 = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp2] '
<<$modVar_AF_TempStr2>> Spikes the Ball! <<$modVar_AF_TempStr>> is nearest to intercept...
' if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Block' : gs 'mod_addedflavour_Volleyball' , 'BlockAction' else $modArr_AF_MatchAIOptions[] = 'Block' end end if $modVar_AF_MatchAction = 'Block': '
' *nl modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>'] if $modVar_AF_MatchBallTeam = 'A' : $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] if $modVar_AF_MatchBallTeam = 'B' : $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] '
<<$modVar_AF_TempStr>> Blocks the Ball!
' if $modVar_AF_MatchPlayerLoc = $modVar_AF_MatchBall: act 'Rebound' : gs 'mod_addedflavour_Volleyball' , 'ReboundAction' else $modArr_AF_MatchAIOptions[] = 'Rebound' end end if $modVar_AF_MatchAction = 'Fumble': '
' *nl modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>'] if $modVar_AF_MatchBallTeam = 'A': $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] $modVar_AF_TempStr2 = $modVar_AF_TeamB_PlayerTeam modVar_AF_MatchPointsB += 1 elseif $modVar_AF_MatchBallTeam = 'B': $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] $modVar_AF_TempStr2 = $modVar_AF_TeamA_PlayerTeam modVar_AF_MatchPointsA += 1 end modVar_AF_MatchRound += 1 '
<<$modVar_AF_TempStr>> Fumbles! Point to <<$modVar_AF_TempStr2>>
' gs 'mod_addedflavour_Volleyball' , 'FumbleAction' end end if $ARGS[0] = 'ServeAction': if $ARGS[1] = '1': if $modVar_AF_MatchBallTeam = 'A': $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallTeam = 'B' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B1' & gt 'mod_addedflavour_Volleyball' , 'Match' else $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallTeam = 'A' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A1' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif $ARGS[1] = '2': if $modVar_AF_MatchBallTeam = 'A': $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallTeam = 'B' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match' else $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallTeam = 'A' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif $ARGS[1] = '3': if $modVar_AF_MatchBallTeam = 'A': $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallTeam = 'B' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B3' & gt 'mod_addedflavour_Volleyball' , 'Match' else $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallTeam = 'A' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A3' & gt 'mod_addedflavour_Volleyball' , 'Match' end end end if $ARGS[0] = 'PassAction': if $ARGS[1] = '1': if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A1' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B1' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif $ARGS[1] = '2': if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif $ARGS[1] = '3': if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A3' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B3' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif $ARGS[1] = '4': if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A4' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B4' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif $ARGS[1] = '5': if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A5' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B5' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif $ARGS[1] = '6': if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A6' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B6' & gt 'mod_addedflavour_Volleyball' , 'Match' end end end if $ARGS[0] = 'TipAction': modVar_AF_Rand = rand(1,150) if modVar_AF_Rand < 50: if $modVar_AF_MatchBallTeam = 'A': 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' else 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' end elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100: if $modVar_AF_MatchBallTeam = 'A': 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' else 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' end elseif modVar_AF_Rand > 100: if $modVar_AF_MatchBallTeam = 'A': 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' else 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' end end end if $ARGS[0] = 'SpikeAction': if $modVar_AF_MatchAction = 'Tip': gs 'mod_addedflavour_Volleyball' , 'CalcEvent' , $modVar_AF_MatchAction if $modVar_AF_TempStr = 'Fail' : $modVar_AF_MatchAction = 'Fumble' & gt 'mod_addedflavour_Volleyball' , 'Match' end modVar_AF_Rand = rand(1,150) if modVar_AF_Rand < 50: if $modVar_AF_MatchBallTeam = 'A': 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' else 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' end elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100: if $modVar_AF_MatchBallTeam = 'A': 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' else 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' end elseif modVar_AF_Rand > 100: if $modVar_AF_MatchBallTeam = 'A': 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' else 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' end end end if $ARGS[0] = 'BlockAction': gs 'mod_addedflavour_Volleyball' , 'CalcEvent' , $modVar_AF_MatchAction if $modVar_AF_TempStr = 'Success': $modVar_AF_MatchAction = 'Block' & gt 'mod_addedflavour_Volleyball' , 'Match' elseif $modVar_AF_TempStr = 'Fail': $modVar_AF_MatchAction = 'Fumble' & gt 'mod_addedflavour_Volleyball' , 'Match' end end if $ARGS[0] = 'ReboundAction': modVar_AF_Rand = rand(1,150) if strpos($modVar_AF_MatchBall,'1') ! 0: if modVar_AF_Rand < 50: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A5' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B5' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif modVar_AF_Rand > 100: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A6' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B6' & gt 'mod_addedflavour_Volleyball' , 'Match' end end elseif strpos($modVar_AF_MatchBall,'2') ! 0: if modVar_AF_Rand < 50: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A1' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B1' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A3' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B3' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif modVar_AF_Rand > 100: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A5' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B5' & gt 'mod_addedflavour_Volleyball' , 'Match' end end elseif strpos($modVar_AF_MatchBall,'3') ! 0: if modVar_AF_Rand < 50: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A4' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B4' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif modVar_AF_Rand > 100: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A5' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B5' & gt 'mod_addedflavour_Volleyball' , 'Match' end end elseif strpos($modVar_AF_MatchBall,'4') ! 0: if modVar_AF_Rand < 50: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A3' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B3' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif modVar_AF_Rand > 100: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A5' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B5' & gt 'mod_addedflavour_Volleyball' , 'Match' end end elseif strpos($modVar_AF_MatchBall,'5') ! 0: if modVar_AF_Rand < 50: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A4' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B4' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif modVar_AF_Rand > 100: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A6' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B6' & gt 'mod_addedflavour_Volleyball' , 'Match' end end elseif strpos($modVar_AF_MatchBall,'6') ! 0: if modVar_AF_Rand < 50: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A1' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B1' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif modVar_AF_Rand >= 50 and modVar_AF_Rand < 100: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A2' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B2' & gt 'mod_addedflavour_Volleyball' , 'Match' end elseif modVar_AF_Rand > 100: if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'A5' & gt 'mod_addedflavour_Volleyball' , 'Match' else modVar_AF_MatchTouches += 1 & $modVar_AF_MatchAction = 'Pass' & $modVar_AF_MatchBallPrev = $modVar_AF_MatchBall & $modVar_AF_MatchBall = 'B5' & gt 'mod_addedflavour_Volleyball' , 'Match' end end end end if $ARGS[0] = 'FumbleAction': modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBallPrev>>'] if $modVar_AF_MatchBallTeam = 'A' : modArr_AF_MatchBScorers[modVar_AF_Temp] += 1 if $modVar_AF_MatchBallTeam = 'B' : modArr_AF_MatchAScorers[modVar_AF_Temp] += 1 if modVar_AF_MatchRound = 13 and modVar_AF_MatchPointsA = modVar_AF_MatchPointsB: *nl 'Tie Break! There is one extra round to decide the winner!' end if modVar_AF_MatchRound = 7: act 'Half-Time Break' : gs 'mod_addedflavour_Volleyball' , 'NewRound' & gt 'mod_addedflavour_Volleyball' , 'HalfTime' elseif modVar_AF_MatchRound >= 13 and modVar_AF_MatchPointsA ! modVar_AF_MatchPointsB: act 'See Result' : gt 'mod_addedflavour_Volleyball' , 'FullTime' else act 'Next Round' : gs 'mod_addedflavour_Volleyball' , 'NewRound' & gt 'mod_addedflavour_Volleyball' , 'Match' end end if $ARGS[0] = 'CalcEvent': modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchBallPrev>>'] if $modVar_AF_MatchBallTeam = 'A': modVar_AF_MatchAttackValue = modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] modVar_AF_MatchDefendValue = modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] else modVar_AF_MatchAttackValue = modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] modVar_AF_MatchDefendValue = modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] end if $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallPrev>>'] = 'Attack' : modVar_AF_MatchAttackValue += rand(5,15) if $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBallPrev>>'] = 'Wide' : modVar_AF_MatchAttackValue += rand(10,20) if $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBall>>'] ! 'Defend' : modVar_AF_MatchDefendValue -= rand(5,10) if $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBall>>'] ! 'Defend' : modVar_AF_MatchDefendValue -= rand(5,10) if $ARGS[1] = 'Tip': if $modVar_AF_MatchGridAction['<<$modVar_AF_MatchBall>>'] = 'Attack' : modVar_AF_MatchDefendValue += rand(5,10) elseif $ARGS[1] = 'Spike': if $modVar_AF_MatchBall = 'A1' : $modVar_AF_TempStr = 'A6' if $modVar_AF_MatchBall = 'A2' : $modVar_AF_TempStr = 'A5' if $modVar_AF_MatchBall = 'A3' : $modVar_AF_TempStr = 'A4' if $modVar_AF_MatchBall = 'B1' : $modVar_AF_TempStr = 'B6' if $modVar_AF_MatchBall = 'B2' : $modVar_AF_TempStr = 'B5' if $modVar_AF_MatchBall = 'B3' : $modVar_AF_TempStr = 'B4' if $modVar_AF_MatchGridAction['<<$modVar_AF_TempStr>>'] = 'Attack' : modVar_AF_MatchDefendValue -= rand(10,20) end modVar_AF_MatchAttackValue += modVar_AF_MatchAttackValue * 2 modVar_AF_MatchDefendValue += modVar_AF_MatchDefendValue * 2 !Repeated to flush out oddities in the Random Number Generator modVar_AF_Rand = rand(1,(modVar_AF_MatchAttackValue + modVar_AF_MatchDefendValue)) modVar_AF_Rand = rand(1,(modVar_AF_MatchAttackValue + modVar_AF_MatchDefendValue)) modVar_AF_Rand = rand(1,(modVar_AF_MatchAttackValue + modVar_AF_MatchDefendValue)) if modVar_AF_Rand >= modVar_AF_MatchAttackValue: $modVar_AF_TempStr = 'Success' else $modVar_AF_TempStr = 'Fail' end end if $ARGS[0] = 'ManageStamina': if $ARGS[1] = 'Event': modVar_AF_Temp = modVar_AF_MatchZones['A1'] modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= rand(0,1) modVar_AF_Temp = modVar_AF_MatchZones['A2'] modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= rand(0,1) modVar_AF_Temp = modVar_AF_MatchZones['A3'] modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= rand(0,1) modVar_AF_Temp = modVar_AF_MatchZones['A4'] modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= rand(0,1) modVar_AF_Temp = modVar_AF_MatchZones['A5'] modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= rand(0,1) modVar_AF_Temp = modVar_AF_MatchZones['A6'] modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= rand(0,1) if $modVar_AF_MatchBallTeam = 'A': modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>'] modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] -= 3 end modVar_AF_Temp = modVar_AF_MatchZones['B1'] modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= rand(0,1) modVar_AF_Temp = modVar_AF_MatchZones['B2'] modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= rand(0,1) modVar_AF_Temp = modVar_AF_MatchZones['B3'] modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= rand(0,1) modVar_AF_Temp = modVar_AF_MatchZones['B4'] modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= rand(0,1) modVar_AF_Temp = modVar_AF_MatchZones['B5'] modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= rand(0,1) modVar_AF_Temp = modVar_AF_MatchZones['B6'] modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= rand(0,1) if $modVar_AF_MatchBallTeam = 'B': modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchBall>>'] modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] -= 3 end elseif $ARGS[1] = 'Gain': modVar_AF_Temp = modVar_AF_MatchZones['A1'] modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] += $ARGS[2] modVar_AF_Temp = modVar_AF_MatchZones['A2'] modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] += $ARGS[2] modVar_AF_Temp = modVar_AF_MatchZones['A3'] modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] += $ARGS[2] modVar_AF_Temp = modVar_AF_MatchZones['A4'] modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] += $ARGS[2] modVar_AF_Temp = modVar_AF_MatchZones['A5'] modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] += $ARGS[2] modVar_AF_Temp = modVar_AF_MatchZones['A6'] modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] += $ARGS[2] modVar_AF_Temp = modVar_AF_MatchZones['B1'] modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] += $ARGS[2] modVar_AF_Temp = modVar_AF_MatchZones['B2'] modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] += $ARGS[2] modVar_AF_Temp = modVar_AF_MatchZones['B3'] modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] += $ARGS[2] modVar_AF_Temp = modVar_AF_MatchZones['B4'] modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] += $ARGS[2] modVar_AF_Temp = modVar_AF_MatchZones['B5'] modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] += $ARGS[2] modVar_AF_Temp = modVar_AF_MatchZones['B6'] modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] += $ARGS[2] end modVar_AF_Temp = modVar_AF_MatchZones['A1'] if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 0 if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 100 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 modVar_AF_Temp = modVar_AF_MatchZones['A2'] if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 0 if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 100 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 modVar_AF_Temp = modVar_AF_MatchZones['A3'] if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 0 if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 100 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 modVar_AF_Temp = modVar_AF_MatchZones['A4'] if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 0 if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 100 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 modVar_AF_Temp = modVar_AF_MatchZones['A5'] if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 0 if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 100 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 modVar_AF_Temp = modVar_AF_MatchZones['A6'] if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 0 if modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamA_PlayerStamina[modVar_AF_Temp] = 100 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 modVar_AF_Temp = modVar_AF_MatchZones['B1'] if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 0 if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 100 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 modVar_AF_Temp = modVar_AF_MatchZones['B2'] if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 0 if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 100 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 modVar_AF_Temp = modVar_AF_MatchZones['B3'] if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 0 if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 100 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 modVar_AF_Temp = modVar_AF_MatchZones['B4'] if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 0 if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 100 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 modVar_AF_Temp = modVar_AF_MatchZones['B5'] if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 0 if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 100 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 modVar_AF_Temp = modVar_AF_MatchZones['B6'] if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] < 0 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 0 if modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] > 100 : modVar_AF_TeamB_PlayerStamina[modVar_AF_Temp] = 100 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 end if $ARGS[0] = 'NewRound': gs 'mod_addedflavour_Volleyball' , 'ManageStamina' , 'Gain' , 10 modVar_AF_MatchTouches = 0 $modVar_AF_MatchAction = 'Serve' $modVar_AF_MatchBallPrev = 'XX' if $modVar_AF_MatchBallTeam = 'A': $modVar_AF_MatchBallTeam = 'B' $modVar_AF_MatchBall = 'B1' else $modVar_AF_MatchBallTeam = 'A' $modVar_AF_MatchBall = 'A1' end $modVar_AF_MatchGridAction['A1'] = 'Defend' $modVar_AF_MatchGridAction['A2'] = 'Defend' $modVar_AF_MatchGridAction['A3'] = 'Defend' $modVar_AF_MatchGridAction['A4'] = 'Defend' $modVar_AF_MatchGridAction['A5'] = 'Defend' $modVar_AF_MatchGridAction['A6'] = 'Defend' $modVar_AF_MatchGridAction['B1'] = 'Defend' $modVar_AF_MatchGridAction['B2'] = 'Defend' $modVar_AF_MatchGridAction['B3'] = 'Defend' $modVar_AF_MatchGridAction['B4'] = 'Defend' $modVar_AF_MatchGridAction['B5'] = 'Defend' $modVar_AF_MatchGridAction['B6'] = 'Defend' modVar_AF_MatchZones['XX'] = modVar_AF_MatchZones['A6'] modVar_AF_MatchZones['A6'] = modVar_AF_MatchZones['A5'] modVar_AF_MatchZones['A5'] = modVar_AF_MatchZones['A4'] modVar_AF_MatchZones['A4'] = modVar_AF_MatchZones['A3'] modVar_AF_MatchZones['A3'] = modVar_AF_MatchZones['A2'] modVar_AF_MatchZones['A2'] = modVar_AF_MatchZones['A1'] modVar_AF_MatchZones['A1'] = modVar_AF_MatchZones['XX'] modVar_AF_MatchZones['XX'] = modVar_AF_MatchZones['B6'] modVar_AF_MatchZones['B6'] = modVar_AF_MatchZones['B5'] modVar_AF_MatchZones['B5'] = modVar_AF_MatchZones['B4'] modVar_AF_MatchZones['B4'] = modVar_AF_MatchZones['B3'] modVar_AF_MatchZones['B3'] = modVar_AF_MatchZones['B2'] modVar_AF_MatchZones['B2'] = modVar_AF_MatchZones['B1'] modVar_AF_MatchZones['B1'] = modVar_AF_MatchZones['XX'] if $modVar_AF_MatchPlayerLoc = 'A1': $modVar_AF_MatchPlayerLoc = 'A2' elseif $modVar_AF_MatchPlayerLoc = 'A2': $modVar_AF_MatchPlayerLoc = 'A3' elseif $modVar_AF_MatchPlayerLoc = 'A3': $modVar_AF_MatchPlayerLoc = 'A4' elseif $modVar_AF_MatchPlayerLoc = 'A4': $modVar_AF_MatchPlayerLoc = 'A5' elseif $modVar_AF_MatchPlayerLoc = 'A5': $modVar_AF_MatchPlayerLoc = 'A6' elseif $modVar_AF_MatchPlayerLoc = 'A6': $modVar_AF_MatchPlayerLoc = 'A1' elseif $modVar_AF_MatchPlayerLoc = 'B1': $modVar_AF_MatchPlayerLoc = 'B2' elseif $modVar_AF_MatchPlayerLoc = 'B2': $modVar_AF_MatchPlayerLoc = 'B3' elseif $modVar_AF_MatchPlayerLoc = 'B3': $modVar_AF_MatchPlayerLoc = 'B4' elseif $modVar_AF_MatchPlayerLoc = 'B4': $modVar_AF_MatchPlayerLoc = 'B5' elseif $modVar_AF_MatchPlayerLoc = 'B5': $modVar_AF_MatchPlayerLoc = 'B6' elseif $modVar_AF_MatchPlayerLoc = 'B6': $modVar_AF_MatchPlayerLoc = 'B1' end end if $ARGS[0] = 'HalfTime': gs 'mod_addedflavour_Volleyball' , 'ManageStamina' , 'Gain' , 30 gs 'stat' '
' + iif($modVar_AF_MatchBallTeam = 'A','','') + '<<$modVar_AF_TeamA_PlayerTeam>>' + iif($modVar_AF_MatchBallTeam = 'A','','') + ' - <> -vs- <> - ' + iif($modVar_AF_MatchBallTeam = 'B','','') + '<<$modVar_AF_TeamB_PlayerTeam>>' + iif($modVar_AF_MatchBallTeam = 'B','','') + '
' '
' *nl 'All the players huddle in for a half-time break. After everyone has regained their composure you all take your places...' *nl '<<$modVar_AF_TeamA_PlayerTeam>> Makes the Following Substitutions:' *nl makesubscount = 6 :makesubscountAloopstart if makesubscount = 10 : jump 'makesubscountAloopend' KILLVAR 'modArr_AF_Rand' modArr_AF_Rand[] = 1 modArr_AF_Rand[] = 2 modArr_AF_Rand[] = 3 modArr_AF_Rand[] = 4 modArr_AF_Rand[] = 5 modArr_AF_Rand[] = 6 modVar_AF_Rand = (rand(1,arrsize('modArr_AF_Rand'))) - 1 modVar_AF_Temp = modArr_AF_Rand[modVar_AF_Rand] modVar_AF_Temp2 = modVar_AF_MatchZones['A<>'] 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>>'): KILLVAR 'modArr_AF_Rand' , modVar_AF_Rand '<<$modVar_AF_TeamA_PlayerName[makesubscount]>> - IN / <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp2]>> - OUT' if $modVar_AF_TeamA_PlayerName[makesubscount] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A<>' if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp2] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'AX' modVar_AF_MatchZones['A<>'] = makesubscount end makesubscount += 1 jump 'makesubscountAloopstart' :makesubscountAloopend *nl '<<$modVar_AF_TeamB_PlayerTeam>> Makes the Following Substitutions:' *nl makesubscount = 6 :makesubscountBloopstart if makesubscount = 10 : jump 'makesubscountBloopend' KILLVAR 'modArr_AF_Rand' modArr_AF_Rand[] = 1 modArr_AF_Rand[] = 2 modArr_AF_Rand[] = 3 modArr_AF_Rand[] = 4 modArr_AF_Rand[] = 5 modArr_AF_Rand[] = 6 modVar_AF_Rand = (rand(1,arrsize('modArr_AF_Rand'))) - 1 modVar_AF_Temp = modArr_AF_Rand[modVar_AF_Rand] modVar_AF_Temp2 = modVar_AF_MatchZones['B<>'] 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>>'): KILLVAR 'modArr_AF_Rand' , modVar_AF_Rand '<<$modVar_AF_TeamB_PlayerName[makesubscount]>> - IN / <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp2]>> - OUT' if $modVar_AF_TeamB_PlayerName[makesubscount] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B<>' if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp2] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'BX' modVar_AF_MatchZones['B<>'] = makesubscount end makesubscount += 1 jump 'makesubscountBloopstart' :makesubscountBloopend act 'Get to your Zone' : gt 'mod_addedflavour_Volleyball' , 'Match' end if $ARGS[0] = 'FullTime': CLOSE ALL minut += rand(55,70) gs 'stat' Enable_FaceTurn = modVar_AF_MatchFaceSetting KILLVAR 'modVar_AF_MatchFaceSetting' '
' + iif($modVar_AF_MatchBallTeam = 'A','','') + '<<$modVar_AF_TeamA_PlayerTeam>>' + iif($modVar_AF_MatchBallTeam = 'A','','') + ' - <> -vs- <> - ' + iif($modVar_AF_MatchBallTeam = 'B','','') + '<<$modVar_AF_TeamB_PlayerTeam>>' + iif($modVar_AF_MatchBallTeam = 'B','','') + '
' modVar_AF_Temp = 0 if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: if modVar_AF_MatchPointsA > modVar_AF_MatchPointsB : modVar_AF_Temp = 1 else if modVar_AF_MatchPointsB > modVar_AF_MatchPointsA : modVar_AF_Temp = 1 end if modVar_AF_Temp = 1: vball_lvl += 3 & vball_lvlst = vball_lvl pcs_mood += 20 '
' *nl 'Your Team has WON the match!!!' else vball_lvl += 1 & vball_lvlst = vball_lvl pcs_mood -= 10 '
' *nl 'Your Team has Lost the match...' end *nl 'Points Scored:' *nl if modArr_AF_MatchAScorers[0] > 0 : '<<$modVar_AF_TeamA_PlayerName[0]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <>' if modArr_AF_MatchAScorers[1] > 0 : '<<$modVar_AF_TeamA_PlayerName[1]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <>' if modArr_AF_MatchAScorers[2] > 0 : '<<$modVar_AF_TeamA_PlayerName[2]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <>' if modArr_AF_MatchAScorers[3] > 0 : '<<$modVar_AF_TeamA_PlayerName[3]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <>' if modArr_AF_MatchAScorers[4] > 0 : '<<$modVar_AF_TeamA_PlayerName[4]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <>' if modArr_AF_MatchAScorers[5] > 0 : '<<$modVar_AF_TeamA_PlayerName[5]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <>' if modArr_AF_MatchAScorers[6] > 0 : '<<$modVar_AF_TeamA_PlayerName[6]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <>' if modArr_AF_MatchAScorers[7] > 0 : '<<$modVar_AF_TeamA_PlayerName[7]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <>' if modArr_AF_MatchAScorers[8] > 0 : '<<$modVar_AF_TeamA_PlayerName[8]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <>' if modArr_AF_MatchAScorers[9] > 0 : '<<$modVar_AF_TeamA_PlayerName[9]>> (<<$modVar_AF_TeamA_PlayerTeam>>) - <>' if modArr_AF_MatchBScorers[0] > 0 : '<<$modVar_AF_TeamB_PlayerName[0]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <>' if modArr_AF_MatchBScorers[1] > 0 : '<<$modVar_AF_TeamB_PlayerName[1]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <>' if modArr_AF_MatchBScorers[2] > 0 : '<<$modVar_AF_TeamB_PlayerName[2]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <>' if modArr_AF_MatchBScorers[3] > 0 : '<<$modVar_AF_TeamB_PlayerName[3]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <>' if modArr_AF_MatchBScorers[4] > 0 : '<<$modVar_AF_TeamB_PlayerName[4]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <>' if modArr_AF_MatchBScorers[5] > 0 : '<<$modVar_AF_TeamB_PlayerName[5]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <>' if modArr_AF_MatchBScorers[6] > 0 : '<<$modVar_AF_TeamB_PlayerName[6]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <>' if modArr_AF_MatchBScorers[7] > 0 : '<<$modVar_AF_TeamB_PlayerName[7]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <>' if modArr_AF_MatchBScorers[8] > 0 : '<<$modVar_AF_TeamB_PlayerName[8]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <>' if modArr_AF_MatchBScorers[9] > 0 : '<<$modVar_AF_TeamB_PlayerName[9]>> (<<$modVar_AF_TeamB_PlayerTeam>>) - <>' if modVar_AF_EventProgress['A69-LeagueMatches'] = 1: act 'Leave Court' : gt 'mod_addedflavour_A69_Events' , 'A69-Saturday-5' elseif modVar_AF_EventProgress['A69-LeagueMatches'] = 2: act 'Leave Court' : gt 'mod_addedflavour_A69_Events' , 'A69-Saturday-7' elseif modVar_AF_EventProgress['A69-LeagueMatches'] = 3: act 'Leave Court' : gt 'mod_addedflavour_A69_Events' , 'A69-Saturday-9' elseif modVar_AF_EventProgress['A69-KnockoutMatches'] = 1: act 'Leave Court' : gt 'mod_addedflavour_A69_Events' , 'A69-Sunday-5' elseif modVar_AF_EventProgress['A69-KnockoutMatches'] = 2: act 'Leave Court' : gt 'mod_addedflavour_A69_Events' , 'A69-Sunday-7' else act 'Leave Court' : gt $loc, $loc_arg end end if $ARGS[0] = 'PlayerKnowledge': *nl 'What you know:' *nl modVar_AF_Temp = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>'] if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: modVar_AF_Temp2 = modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] else modVar_AF_Temp2 = modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] end $modVar_AF_TempStr = $modVar_AF_MatchGridAction['<<$modVar_AF_MatchPlayerLoc>>'] if $modVar_AF_MatchPlayerLoc ! 'AX' and $modVar_AF_MatchPlayerLoc ! 'BX' : 'You(<>) - <<$modVar_AF_TempStr>> (<<$modVar_AF_MatchPlayerLoc>>)' view 'mod/addedflavour/images/shared/Volleyball/<<$modVar_AF_MatchBall>>.png' *nl if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: modVar_AF_Temp = modVar_AF_MatchZones['B1'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>'] '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],' (<>)','') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''B1'']>>','') else modVar_AF_Temp = modVar_AF_MatchZones['A1'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>'] '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],' (<>)','') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''A1'']>>','') end if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: modVar_AF_Temp = modVar_AF_MatchZones['B2'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>'] '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],' (<>)','') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''B2'']>>','') else modVar_AF_Temp = modVar_AF_MatchZones['A2'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>'] '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],' (<>)','') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''A2'']>>','') end if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: modVar_AF_Temp = modVar_AF_MatchZones['B3'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>'] '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],' (<>)','') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''B3'']>>','') else modVar_AF_Temp = modVar_AF_MatchZones['A3'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>'] '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],' (<>)','') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''A3'']>>','') end if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: modVar_AF_Temp = modVar_AF_MatchZones['B4'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>'] '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],' (<>)','') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''B4'']>>','') else modVar_AF_Temp = modVar_AF_MatchZones['A4'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>'] '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],' (<>)','') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''A4'']>>','') end if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: modVar_AF_Temp = modVar_AF_MatchZones['B5'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>'] '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],' (<>)','') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''B5'']>>','') else modVar_AF_Temp = modVar_AF_MatchZones['A5'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>'] '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],' (<>)','') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''A5'']>>','') end if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: modVar_AF_Temp = modVar_AF_MatchZones['B6'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>'] '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],' (<>)','') + iif(modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''B6'']>>','') else modVar_AF_Temp = modVar_AF_MatchZones['A6'] modVar_AF_Temp2 = modVar_AF_MatchZones['<<$modVar_AF_MatchPlayerLoc>>'] '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],' (<>)','') + iif(modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] - 5 >= modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp],' - Current State: <<$modVar_AF_MatchGridAction[''A6'']>>','') end *nl if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: if ($modVar_AF_MatchPlayerLoc ! 'A1' and $modVar_AF_MatchPlayerLoc = 'A2') or $modVar_AF_MatchPlayerLoc = 'AX': modVar_AF_Temp = modVar_AF_MatchZones['A1'] 'Team Zone 1 - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (<>) - Current State: <<$modVar_AF_MatchGridAction[''A1'']>>' end else if ($modVar_AF_MatchPlayerLoc ! 'B1' and $modVar_AF_MatchPlayerLoc = 'B2') or $modVar_AF_MatchPlayerLoc = 'BX': modVar_AF_Temp = modVar_AF_MatchZones['B1'] 'Team Zone 1 - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (<>) - Current State: <<$modVar_AF_MatchGridAction[''B1'']>>' end end if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: if ($modVar_AF_MatchPlayerLoc ! 'A2' and ($modVar_AF_MatchPlayerLoc = 'A1' or $modVar_AF_MatchPlayerLoc = 'A3')) or $modVar_AF_MatchPlayerLoc = 'AX': modVar_AF_Temp = modVar_AF_MatchZones['A2'] 'Team Zone 2 - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (<>) - Current State: <<$modVar_AF_MatchGridAction[''A2'']>>' end else if ($modVar_AF_MatchPlayerLoc ! 'B2' and ($modVar_AF_MatchPlayerLoc = 'B1' or $modVar_AF_MatchPlayerLoc = 'B3')) or $modVar_AF_MatchPlayerLoc = 'BX': modVar_AF_Temp = modVar_AF_MatchZones['B2'] 'Team Zone 2 - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (<>) - Current State: <<$modVar_AF_MatchGridAction[''B2'']>>' end end if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: if ($modVar_AF_MatchPlayerLoc ! 'A3' and $modVar_AF_MatchPlayerLoc = 'A2') or $modVar_AF_MatchPlayerLoc = 'AX': modVar_AF_Temp = modVar_AF_MatchZones['A3'] 'Team Zone 3 - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (<>) - Current State: <<$modVar_AF_MatchGridAction[''A3'']>>' end else if ($modVar_AF_MatchPlayerLoc ! 'B3' and $modVar_AF_MatchPlayerLoc = 'B2') or $modVar_AF_MatchPlayerLoc = 'BX': modVar_AF_Temp = modVar_AF_MatchZones['B3'] 'Team Zone 3 - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (<>) - Current State: <<$modVar_AF_MatchGridAction[''B3'']>>' end end if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: 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': modVar_AF_Temp = modVar_AF_MatchZones['A4'] 'Team Zone 4 - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (<>) - Current State: <<$modVar_AF_MatchGridAction[''A4'']>>' end else 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': modVar_AF_Temp = modVar_AF_MatchZones['B4'] 'Team Zone 4 - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (<>) - Current State: <<$modVar_AF_MatchGridAction[''B4'']>>' end end if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: 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': modVar_AF_Temp = modVar_AF_MatchZones['A5'] 'Team Zone 5 - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (<>) - Current State: <<$modVar_AF_MatchGridAction[''A5'']>>' end else 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': modVar_AF_Temp = modVar_AF_MatchZones['B5'] 'Team Zone 5 - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (<>) - Current State: <<$modVar_AF_MatchGridAction[''B5'']>>' end end if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0: 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': modVar_AF_Temp = modVar_AF_MatchZones['A6'] 'Team Zone 6 - <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (<>) - Current State: <<$modVar_AF_MatchGridAction[''A6'']>>' end else 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': modVar_AF_Temp = modVar_AF_MatchZones['B6'] 'Team Zone 6 - <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (<>) - Current State: <<$modVar_AF_MatchGridAction[''B6'']>>' end end end if $ARGS[0] = 'AIAction': modVar_AF_Temp = (rand(1,arrsize('$modArr_AF_MatchAIOptions'))) - 1 $modVar_AF_MatchAIChoice = $modArr_AF_MatchAIOptions[modVar_AF_Temp] if $modVar_AF_MatchAIChoice = 'Rebound': gs 'mod_addedflavour_Volleyball' , 'ReboundAction' elseif $modVar_AF_MatchAIChoice = 'Block': gs 'mod_addedflavour_Volleyball' , 'BlockAction' elseif $modVar_AF_MatchAIChoice = 'SpikeAttack': gs 'mod_addedflavour_Volleyball' , 'SpikeAction' elseif $modVar_AF_MatchAIChoice = 'TipAttack': gs 'mod_addedflavour_Volleyball' , 'TipAction' elseif $modVar_AF_MatchAIChoice = 'Pass-1': gs 'mod_addedflavour_Volleyball' , 'PassAction' , '1' elseif $modVar_AF_MatchAIChoice = 'Pass-2': gs 'mod_addedflavour_Volleyball' , 'PassAction' , '2' elseif $modVar_AF_MatchAIChoice = 'Pass-3': gs 'mod_addedflavour_Volleyball' , 'PassAction' , '3' elseif $modVar_AF_MatchAIChoice = 'Pass-4': gs 'mod_addedflavour_Volleyball' , 'PassAction' , '4' elseif $modVar_AF_MatchAIChoice = 'Pass-5': gs 'mod_addedflavour_Volleyball' , 'PassAction' , '5' elseif $modVar_AF_MatchAIChoice = 'Pass-6': gs 'mod_addedflavour_Volleyball' , 'PassAction' , '6' elseif $modVar_AF_MatchAIChoice = 'Serve-1': gs 'mod_addedflavour_Volleyball' , 'ServeAction' , '1' elseif $modVar_AF_MatchAIChoice = 'Serve-2': gs 'mod_addedflavour_Volleyball' , 'ServeAction' , '2' elseif $modVar_AF_MatchAIChoice = 'Serve-3': gs 'mod_addedflavour_Volleyball' , 'ServeAction' , '3' end end if $ARGS[0] = 'AIStance': if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['A1'] and $modVar_AF_MatchPlayerLoc ! 'A1': modVar_AF_Temp = modVar_AF_MatchZones['A1'] if modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 55: if strpos($modVar_AF_MatchBall,'A') ! 0: if $modVar_AF_MatchGridAction['A1'] = 'Defend' : $modVar_AF_MatchGridAction['A1'] = 'Wide' else if $modVar_AF_MatchGridAction['A1'] = 'Wide' : $modVar_AF_MatchGridAction['A1'] = 'Defend' end elseif modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25: if $modVar_AF_MatchGridAction['A1'] = 'Defend' : $modVar_AF_MatchGridAction['A1'] = 'Wide' if $modVar_AF_MatchGridAction['A1'] = 'Wide' : $modVar_AF_MatchGridAction['A1'] = 'Defend' end end if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['A3'] and $modVar_AF_MatchPlayerLoc ! 'A3': modVar_AF_Temp = modVar_AF_MatchZones['A3'] if modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 55: if strpos($modVar_AF_MatchBall,'A') ! 0: if $modVar_AF_MatchGridAction['A3'] = 'Defend' : $modVar_AF_MatchGridAction['A3'] = 'Wide' else if $modVar_AF_MatchGridAction['A3'] = 'Wide' : $modVar_AF_MatchGridAction['A3'] = 'Defend' end elseif modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25: if $modVar_AF_MatchGridAction['A3'] = 'Defend' : $modVar_AF_MatchGridAction['A3'] = 'Wide' if $modVar_AF_MatchGridAction['A3'] = 'Wide' : $modVar_AF_MatchGridAction['A3'] = 'Defend' end end if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['A4'] and $modVar_AF_MatchPlayerLoc ! 'A4': modVar_AF_Temp = modVar_AF_MatchZones['A4'] if modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 55: 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): if $modVar_AF_MatchGridAction['A4'] = 'Defend' : $modVar_AF_MatchGridAction['A4'] = 'Attack' else if $modVar_AF_MatchGridAction['A4'] = 'Attack' : $modVar_AF_MatchGridAction['A4'] = 'Defend' end elseif modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25: if $modVar_AF_MatchGridAction['A4'] = 'Defend' : $modVar_AF_MatchGridAction['A4'] = 'Attack' if $modVar_AF_MatchGridAction['A4'] = 'Attack' : $modVar_AF_MatchGridAction['A4'] = 'Defend' end end if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['A5'] and $modVar_AF_MatchPlayerLoc ! 'A5': modVar_AF_Temp = modVar_AF_MatchZones['A5'] if modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 55: 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): if $modVar_AF_MatchGridAction['A5'] = 'Defend' : $modVar_AF_MatchGridAction['A5'] = 'Attack' else if $modVar_AF_MatchGridAction['A5'] = 'Attack' : $modVar_AF_MatchGridAction['A5'] = 'Defend' end elseif modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25: if $modVar_AF_MatchGridAction['A5'] = 'Defend' : $modVar_AF_MatchGridAction['A5'] = 'Attack' if $modVar_AF_MatchGridAction['A5'] = 'Attack' : $modVar_AF_MatchGridAction['A5'] = 'Defend' end end if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['A4'] and $modVar_AF_MatchPlayerLoc ! 'A6': modVar_AF_Temp = modVar_AF_MatchZones['A6'] if modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 55: 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): if $modVar_AF_MatchGridAction['A6'] = 'Defend' : $modVar_AF_MatchGridAction['A6'] = 'Attack' else if $modVar_AF_MatchGridAction['A6'] = 'Attack' : $modVar_AF_MatchGridAction['A6'] = 'Defend' end elseif modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25: if $modVar_AF_MatchGridAction['A6'] = 'Defend' : $modVar_AF_MatchGridAction['A6'] = 'Attack' if $modVar_AF_MatchGridAction['A6'] = 'Attack' : $modVar_AF_MatchGridAction['A6'] = 'Defend' end end if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['B1'] and $modVar_AF_MatchPlayerLoc ! 'B1': modVar_AF_Temp = modVar_AF_MatchZones['B1'] if modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 55: if strpos($modVar_AF_MatchBall,'B') ! 0: if $modVar_AF_MatchGridAction['B1'] = 'Defend' : $modVar_AF_MatchGridAction['B1'] = 'Wide' else if $modVar_AF_MatchGridAction['B1'] = 'Wide' : $modVar_AF_MatchGridAction['B1'] = 'Defend' end elseif modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25: if $modVar_AF_MatchGridAction['B1'] = 'Defend' : $modVar_AF_MatchGridAction['B1'] = 'Wide' if $modVar_AF_MatchGridAction['B1'] = 'Wide' : $modVar_AF_MatchGridAction['B1'] = 'Defend' end end if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['B3'] and $modVar_AF_MatchPlayerLoc ! 'B3': modVar_AF_Temp = modVar_AF_MatchZones['B3'] if modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 55: if strpos($modVar_AF_MatchBall,'B') ! 0: if $modVar_AF_MatchGridAction['B3'] = 'Defend' : $modVar_AF_MatchGridAction['B3'] = 'Wide' else if $modVar_AF_MatchGridAction['B3'] = 'Wide' : $modVar_AF_MatchGridAction['B3'] = 'Defend' end elseif modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25: if $modVar_AF_MatchGridAction['B3'] = 'Defend' : $modVar_AF_MatchGridAction['B3'] = 'Wide' if $modVar_AF_MatchGridAction['B3'] = 'Wide' : $modVar_AF_MatchGridAction['B3'] = 'Defend' end end if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['B4'] and $modVar_AF_MatchPlayerLoc ! 'B4': modVar_AF_Temp = modVar_AF_MatchZones['B4'] if modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 55: 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): if $modVar_AF_MatchGridAction['B4'] = 'Defend' : $modVar_AF_MatchGridAction['B4'] = 'Attack' else if $modVar_AF_MatchGridAction['B4'] = 'Attack' : $modVar_AF_MatchGridAction['B4'] = 'Defend' end elseif modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25: if $modVar_AF_MatchGridAction['B4'] = 'Defend' : $modVar_AF_MatchGridAction['B4'] = 'Attack' if $modVar_AF_MatchGridAction['B4'] = 'Attack' : $modVar_AF_MatchGridAction['B4'] = 'Defend' end end if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['B5'] and $modVar_AF_MatchPlayerLoc ! 'B5': modVar_AF_Temp = modVar_AF_MatchZones['B5'] if modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 55: 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): if $modVar_AF_MatchGridAction['B5'] = 'Defend' : $modVar_AF_MatchGridAction['B5'] = 'Attack' else if $modVar_AF_MatchGridAction['B5'] = 'Attack' : $modVar_AF_MatchGridAction['B5'] = 'Defend' end elseif modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25: if $modVar_AF_MatchGridAction['B5'] = 'Defend' : $modVar_AF_MatchGridAction['B5'] = 'Attack' if $modVar_AF_MatchGridAction['B5'] = 'Attack' : $modVar_AF_MatchGridAction['B5'] = 'Defend' end end if $modVar_AF_MatchAction ! 'Serve' and $modVar_AF_MatchBall ! modVar_AF_MatchZones['B4'] and $modVar_AF_MatchPlayerLoc ! 'B6': modVar_AF_Temp = modVar_AF_MatchZones['B6'] if modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 55: 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): if $modVar_AF_MatchGridAction['B6'] = 'Defend' : $modVar_AF_MatchGridAction['B6'] = 'Attack' else if $modVar_AF_MatchGridAction['B6'] = 'Attack' : $modVar_AF_MatchGridAction['B6'] = 'Defend' end elseif modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp] >= 40 and rand(1,50) > 25: if $modVar_AF_MatchGridAction['B6'] = 'Defend' : $modVar_AF_MatchGridAction['B6'] = 'Attack' if $modVar_AF_MatchGridAction['B6'] = 'Attack' : $modVar_AF_MatchGridAction['B6'] = 'Defend' end end end if $ARGS[0] = 'MatchBuildup': *clr & cla $location_type = 'public_indoors' gs 'stat' menu_off = 1 KILLVAR 'modArr_AF_MatchZones' KILLVAR 'modArr_AF_Rand' modArr_AF_Rand[] = 1 modArr_AF_Rand[] = 2 modArr_AF_Rand[] = 3 modArr_AF_Rand[] = 4 modArr_AF_Rand[] = 5 modArr_AF_Rand[] = 6 matchbuilduprandomcount = 0 :matchbuilduprandomAstart if matchbuilduprandomcount >= 6 : jump 'matchbuilduprandomAend' modVar_AF_Rand = (rand(1,arrsize('modArr_AF_Rand'))) - 1 modVar_AF_Temp = modArr_AF_Rand[modVar_AF_Rand] KILLVAR 'modArr_AF_Rand' , modVar_AF_Rand modVar_AF_MatchZones['A<>'] = matchbuilduprandomcount matchbuilduprandomcount += 1 jump 'matchbuilduprandomAstart' :matchbuilduprandomAend KILLVAR 'modArr_AF_Rand' modArr_AF_Rand[] = 1 modArr_AF_Rand[] = 2 modArr_AF_Rand[] = 3 modArr_AF_Rand[] = 4 modArr_AF_Rand[] = 5 modArr_AF_Rand[] = 6 matchbuilduprandomcount = 0 :matchbuilduprandomBstart if matchbuilduprandomcount >= 6 : jump 'matchbuilduprandomBend' modVar_AF_Rand = (rand(1,arrsize('modArr_AF_Rand'))) - 1 modVar_AF_Temp = modArr_AF_Rand[modVar_AF_Rand] KILLVAR 'modArr_AF_Rand' , modVar_AF_Rand modVar_AF_MatchZones['B<>'] = matchbuilduprandomcount matchbuilduprandomcount += 1 jump 'matchbuilduprandomBstart' :matchbuilduprandomBend modVar_AF_MatchZones['AX'] = 10 modVar_AF_MatchZones['BX'] = 10 modVar_AF_TeamA_PlayerSkill[] = 100 modVar_AF_TeamB_PlayerSkill[] = 100 '

Teams

' '<<$modVar_AF_TeamA_PlayerTeam>>' *nl modVar_AF_Temp = modVar_AF_MatchZones['A1'] 'Zone 1 : <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (Skill - <>)' if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A1' & modVar_AF_Temp2 = modVar_AF_Temp modVar_AF_Temp = modVar_AF_MatchZones['A2'] 'Zone 2 : <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (Skill - <>)' if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A2' & modVar_AF_Temp2 = modVar_AF_Temp modVar_AF_Temp = modVar_AF_MatchZones['A3'] 'Zone 3 : <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (Skill - <>)' if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A3' & modVar_AF_Temp2 = modVar_AF_Temp modVar_AF_Temp = modVar_AF_MatchZones['A4'] 'Zone 4 : <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (Skill - <>)' if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A4' & modVar_AF_Temp2 = modVar_AF_Temp modVar_AF_Temp = modVar_AF_MatchZones['A5'] 'Zone 5 : <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (Skill - <>)' if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A5' & modVar_AF_Temp2 = modVar_AF_Temp modVar_AF_Temp = modVar_AF_MatchZones['A6'] 'Zone 6 : <<$modVar_AF_TeamA_PlayerName[modVar_AF_Temp]>> (Skill - <>)' if $modVar_AF_TeamA_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'A6' & modVar_AF_Temp2 = modVar_AF_Temp *nl 'Sub - <<$modVar_AF_TeamA_PlayerName[6]>> (Skill - <>)' if $modVar_AF_TeamA_PlayerName[6] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'AX' & modVar_AF_Temp2 = 6 'Sub - <<$modVar_AF_TeamA_PlayerName[7]>> (Skill - <>)' if $modVar_AF_TeamA_PlayerName[7] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'AX' & modVar_AF_Temp2 = 7 'Sub - <<$modVar_AF_TeamA_PlayerName[8]>> (Skill - <>)' if $modVar_AF_TeamA_PlayerName[8] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'AX' & modVar_AF_Temp2 = 8 'Sub - <<$modVar_AF_TeamA_PlayerName[9]>> (Skill - <>)' if $modVar_AF_TeamA_PlayerName[9] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'AX' & modVar_AF_Temp2 = 9 *nl '<<$modVar_AF_TeamB_PlayerTeam>>' *nl modVar_AF_Temp = modVar_AF_MatchZones['B1'] 'Zone 1 : <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (Skill - <>)' if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B1' & modVar_AF_Temp2 = modVar_AF_Temp modVar_AF_Temp = modVar_AF_MatchZones['B2'] 'Zone 2 : <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (Skill - <>)' if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B2' & modVar_AF_Temp2 = modVar_AF_Temp modVar_AF_Temp = modVar_AF_MatchZones['B3'] 'Zone 3 : <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (Skill - <>)' if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B3' & modVar_AF_Temp2 = modVar_AF_Temp modVar_AF_Temp = modVar_AF_MatchZones['B4'] 'Zone 4 : <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (Skill - <>)' if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B4' & modVar_AF_Temp2 = modVar_AF_Temp modVar_AF_Temp = modVar_AF_MatchZones['B5'] 'Zone 5 : <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (Skill - <>)' if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B5' & modVar_AF_Temp2 = modVar_AF_Temp modVar_AF_Temp = modVar_AF_MatchZones['B6'] 'Zone 6 : <<$modVar_AF_TeamB_PlayerName[modVar_AF_Temp]>> (Skill - <>)' if $modVar_AF_TeamB_PlayerName[modVar_AF_Temp] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'B6' & modVar_AF_Temp2 = modVar_AF_Temp *nl 'Sub - <<$modVar_AF_TeamB_PlayerName[6]>> (Skill - <>)' if $modVar_AF_TeamB_PlayerName[6] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'BX' & modVar_AF_Temp2 = 6 'Sub - <<$modVar_AF_TeamB_PlayerName[7]>> (Skill - <>)' if $modVar_AF_TeamB_PlayerName[7] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'BX' & modVar_AF_Temp2 = 7 'Sub - <<$modVar_AF_TeamB_PlayerName[8]>> (Skill - <>)' if $modVar_AF_TeamB_PlayerName[8] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'BX' & modVar_AF_Temp2 = 8 'Sub - <<$modVar_AF_TeamB_PlayerName[9]>> (Skill - <>)
' if $modVar_AF_TeamB_PlayerName[9] = '<<$pcs_firstname>> <<$pcs_lastname>>' : $modVar_AF_MatchPlayerLoc = 'BX' & modVar_AF_Temp2 = 9 KILLVAR '$modVar_AF_MatchGridAction' KILLVAR 'modVar_AF_MatchTouches' KILLVAR '$modVar_AF_MatchBall' KILLVAR '$modVar_AF_MatchBallPrev' KILLVAR '$modVar_AF_MatchBallTeam' modVar_AF_MatchTouches = 0 $modVar_AF_MatchGridAction['A1'] = 'Defend' $modVar_AF_MatchGridAction['A2'] = 'Defend' $modVar_AF_MatchGridAction['A3'] = 'Defend' $modVar_AF_MatchGridAction['A4'] = 'Defend' $modVar_AF_MatchGridAction['A5'] = 'Defend' $modVar_AF_MatchGridAction['A6'] = 'Defend' $modVar_AF_MatchGridAction['B1'] = 'Defend' $modVar_AF_MatchGridAction['B2'] = 'Defend' $modVar_AF_MatchGridAction['B3'] = 'Defend' $modVar_AF_MatchGridAction['B4'] = 'Defend' $modVar_AF_MatchGridAction['B5'] = 'Defend' $modVar_AF_MatchGridAction['B6'] = 'Defend' $modVar_AF_MatchBallPrev = 'XX' $modVar_AF_MatchAction = 'Serve' modVar_AF_MatchPointsA = 0 modVar_AF_MatchPointsB = 0 modVar_AF_MatchRound = 1 if strpos($modVar_AF_MatchPlayerLoc,'A') ! 0 and modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] < 50: modVar_AF_TeamA_PlayerSkill[modVar_AF_Temp2] = rand(50,60) *nl 'Your Enthusiasm for the game has temporarily raised your Skill Level to <>' elseif strpos($modVar_AF_MatchPlayerLoc,'B') ! 0 and modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] < 50: modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] = rand(50,60) *nl 'Your Enthusiasm for the game has temporarily raised your Skill Level to <>' end *nl 'Quick Rules:' *nl '* 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)' '* After the initial Serve; each Team keeps trying to get the ball onto the floor of the other Teams court until successful' '* After a Round is completed each Player rotates into their next zone' '* 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' '* 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' '* Half Time is called after a Full Rotation (6 Rounds) whereupons Substitutions can be made' '* Full Time is called after Two Full Rotations (12 Rounds) unless the Game is a Tie, whereupon a Tie Break Round is run' '* 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' '* Player Stamina reduces with each Play which in turn lowers their Skill as they tire, but is raised during each break' '* Having a Higher Skill Level results in a Higher Chance of Succeeding in Actions (Passing and Serving are always successful)' '* 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' act 'Start Match': *clr & cla '

Coin Toss

' '
' *nl '
Flipping to see which team serves first...
' modVar_AF_MatchFaceSetting = Enable_FaceTurn act 'See Result': *clr & cla CLOSE ALL modVar_AF_Rand = rand(1,1000) if modVar_AF_Rand > 500: $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerTeam $modVar_AF_MatchBall = 'B1' $modVar_AF_MatchBallTeam = 'B' act 'Get to your zone': gt 'mod_addedflavour_Volleyball' , 'Match' end else $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerTeam $modVar_AF_MatchBall = 'A1' $modVar_AF_MatchBallTeam = 'A' act 'Get to your zone': gt 'mod_addedflavour_Volleyball' , 'Match' end end Enable_FaceTurn = 4 '

Coin Toss

' '
' *nl '
<<$modVar_AF_TempStr>> will serve first!
' end end end if $ARGS[0] = 'MatchSetup': !Arg 1 = Type; Arg 2 = Team A; Arg 3 = Team B; Arg 4 = Simulate KILLVAR '$modVar_AF_TeamA_PlayerName' KILLVAR '$modVar_AF_TeamA_PlayerTeam' KILLVAR 'modVar_AF_TeamA_PlayerSkill' KILLVAR 'modVar_AF_TeamA_PlayerBaseSkill' KILLVAR 'modVar_AF_TeamA_PlayerStamina' KILLVAR '$modVar_AF_TeamB_PlayerName' KILLVAR '$modVar_AF_TeamB_PlayerTeam' KILLVAR 'modVar_AF_TeamB_PlayerSkill' KILLVAR 'modVar_AF_TeamB_PlayerBaseSkill' KILLVAR 'modVar_AF_TeamB_PlayerStamina' KILLVAR 'modVar_AF_MatchPracticeSub' KILLVAR 'modVar_AF_MatchPointsA' KILLVAR 'modVar_AF_MatchPointsB' KILLVAR 'modArr_AF_MatchAScorers' KILLVAR 'modArr_AF_MatchBScorers' $modVar_AF_TeamA_PlayerTeam = $ARGS[2] $modVar_AF_TeamB_PlayerTeam = $ARGS[3] if $ARGS[1] = 'Tournament': matchsetuploopcount = 0 :matchsetuploopstart if matchsetuploopcount >= arrsize('$modArr_AF_VBallT_PlayerName') : jump 'matchsetuploopend' if $modArr_AF_VBallT_PlayerTeam[matchsetuploopcount] = $modVar_AF_TeamA_PlayerTeam: $modVar_AF_TeamA_PlayerName[] = $modArr_AF_VBallT_PlayerName[matchsetuploopcount] modVar_AF_TeamA_PlayerSkill[] = modArr_AF_VBallT_PlayerSkill[matchsetuploopcount] modVar_AF_TeamA_PlayerBaseSkill[] = modArr_AF_VBallT_PlayerSkill[matchsetuploopcount] modVar_AF_TeamA_PlayerStamina[] = 100 modArr_AF_MatchAScorers[] = 0 elseif $modArr_AF_VBallT_PlayerTeam[matchsetuploopcount] = $modVar_AF_TeamB_PlayerTeam: $modVar_AF_TeamB_PlayerName[] = $modArr_AF_VBallT_PlayerName[matchsetuploopcount] modVar_AF_TeamB_PlayerSkill[] = modArr_AF_VBallT_PlayerSkill[matchsetuploopcount] modVar_AF_TeamB_PlayerBaseSkill[] = modArr_AF_VBallT_PlayerSkill[matchsetuploopcount] modVar_AF_TeamB_PlayerStamina[] = 100 modArr_AF_MatchBScorers[] = 0 end matchsetuploopcount += 1 jump 'matchsetuploopstart' :matchsetuploopend :matchsetupsortA matchsetupsortcount = 0 matchsetupbubblecount = 0 :matchsetupbubbleAstart if matchsetupbubblecount >= 10 : jump 'matchsetupbubbleAend' if modVar_AF_TeamA_PlayerSkill[matchsetupbubblecount] < modVar_AF_TeamA_PlayerSkill[matchsetupbubblecount + 1]: $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[matchsetupbubblecount] modVar_AF_Temp = modVar_AF_TeamA_PlayerSkill[matchsetupbubblecount] modVar_AF_Temp2 = modVar_AF_TeamA_PlayerBaseSkill[matchsetupbubblecount] $modVar_AF_TeamA_PlayerName[matchsetupbubblecount] = $modVar_AF_TeamA_PlayerName[matchsetupbubblecount + 1] modVar_AF_TeamA_PlayerSkill[matchsetupbubblecount] = modVar_AF_TeamA_PlayerSkill[matchsetupbubblecount + 1] modVar_AF_TeamA_PlayerBaseSkill[matchsetupbubblecount] = modVar_AF_TeamA_PlayerBaseSkill[matchsetupbubblecount + 1] $modVar_AF_TeamA_PlayerName[matchsetupbubblecount + 1] = $modVar_AF_TempStr modVar_AF_TeamA_PlayerSkill[matchsetupbubblecount + 1] = modVar_AF_Temp modVar_AF_TeamA_PlayerBaseSkill[matchsetupbubblecount + 1] = modVar_AF_Temp2 matchsetupsortcount += 1 end matchsetupbubblecount += 1 jump 'matchsetupbubbleAstart' :matchsetupbubbleAend if matchsetupsortcount > 0 : jump 'matchsetupsortA' :matchsetupsortB matchsetupsortcount = 0 matchsetupbubblecount = 0 :matchsetupbubbleBstart if matchsetupbubblecount >= 10 : jump 'matchsetupbubbleBend' if modVar_AF_TeamB_PlayerSkill[matchsetupbubblecount] < modVar_AF_TeamB_PlayerSkill[matchsetupbubblecount + 1]: $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[matchsetupbubblecount] modVar_AF_Temp = modVar_AF_TeamB_PlayerSkill[matchsetupbubblecount] modVar_AF_Temp2 = modVar_AF_TeamB_PlayerBaseSkill[matchsetupbubblecount] $modVar_AF_TeamB_PlayerName[matchsetupbubblecount] = $modVar_AF_TeamB_PlayerName[matchsetupbubblecount + 1] modVar_AF_TeamB_PlayerSkill[matchsetupbubblecount] = modVar_AF_TeamB_PlayerSkill[matchsetupbubblecount + 1] modVar_AF_TeamB_PlayerBaseSkill[matchsetupbubblecount] = modVar_AF_TeamB_PlayerBaseSkill[matchsetupbubblecount + 1] $modVar_AF_TeamB_PlayerName[matchsetupbubblecount + 1] = $modVar_AF_TempStr modVar_AF_TeamB_PlayerSkill[matchsetupbubblecount + 1] = modVar_AF_Temp modVar_AF_TeamB_PlayerBaseSkill[matchsetupbubblecount + 1] = modVar_AF_Temp2 matchsetupsortcount += 1 end matchsetupbubblecount += 1 jump 'matchsetupbubbleBstart' :matchsetupbubbleBend if matchsetupsortcount > 0 : jump 'matchsetupsortB' if $ARGS[4] = 'Simulate' : gs 'mod_addedflavour_Volleyball' , 'SimulateMatch' elseif $ARGS[1] = 'Practice': modVar_AF_MatchPracticeSub = 1 matchsetupPloopcount = 0 :matchsetupPloopstart if matchsetupPloopcount >= arrsize('$modArr_AF_VBall_PlayerName') : jump 'matchsetupPloopend' if $modArr_AF_VBall_PlayerTeam[matchsetupPloopcount] = $modVar_AF_TeamA_PlayerTeam: $modVar_AF_TeamA_PlayerName[] = $modArr_AF_VBall_PlayerName[matchsetupPloopcount] modVar_AF_TeamA_PlayerSkill[] = modArr_AF_VBall_PlayerSkill[matchsetupPloopcount] modVar_AF_TeamA_PlayerBaseSkill[] = modArr_AF_VBall_PlayerSkill[matchsetupPloopcount] modVar_AF_TeamA_PlayerStamina[] = 100 modArr_AF_MatchAScorers[] = 0 elseif $modArr_AF_VBall_PlayerTeam[matchsetupPloopcount] = $modVar_AF_TeamB_PlayerTeam: $modVar_AF_TeamB_PlayerName[] = $modArr_AF_VBall_PlayerName[matchsetupPloopcount] modVar_AF_TeamB_PlayerSkill[] = modArr_AF_VBall_PlayerSkill[matchsetupPloopcount] modVar_AF_TeamB_PlayerBaseSkill[] = modArr_AF_VBall_PlayerSkill[matchsetupPloopcount] modVar_AF_TeamB_PlayerStamina[] = 100 modArr_AF_MatchBScorers[] = 0 end matchsetupPloopcount += 1 jump 'matchsetupPloopstart' :matchsetupPloopend :matchsetupPsortA matchsetupPsortcount = 0 matchsetupPbubblecount = 0 :matchsetupPbubbleAstart if matchsetupPbubblecount >= 10 : jump 'matchsetupPbubbleAend' if modVar_AF_TeamA_PlayerSkill[matchsetupPbubblecount] < modVar_AF_TeamA_PlayerSkill[matchsetupPbubblecount + 1]: $modVar_AF_TempStr = $modVar_AF_TeamA_PlayerName[matchsetupPbubblecount] modVar_AF_Temp = modVar_AF_TeamA_PlayerSkill[matchsetupPbubblecount] modVar_AF_Temp2 = modVar_AF_TeamA_PlayerBaseSkill[matchsetupPbubblecount] $modVar_AF_TeamA_PlayerName[matchsetupPbubblecount] = $modVar_AF_TeamA_PlayerName[matchsetupPbubblecount + 1] modVar_AF_TeamA_PlayerSkill[matchsetupPbubblecount] = modVar_AF_TeamA_PlayerSkill[matchsetupPbubblecount + 1] modVar_AF_TeamA_PlayerBaseSkill[matchsetupPbubblecount] = modVar_AF_TeamA_PlayerBaseSkill[matchsetupPbubblecount + 1] $modVar_AF_TeamA_PlayerName[matchsetupPbubblecount + 1] = $modVar_AF_TempStr modVar_AF_TeamA_PlayerSkill[matchsetupPbubblecount + 1] = modVar_AF_Temp modVar_AF_TeamA_PlayerBaseSkill[matchsetupPbubblecount + 1] = modVar_AF_Temp2 matchsetupPsortcount += 1 end matchsetupPbubblecount += 1 jump 'matchsetupPbubbleAstart' :matchsetupPbubbleAend if matchsetupPsortcount > 0 : jump 'matchsetupPsortA' :matchsetupPsortB matchsetupPsortcount = 0 matchsetupPbubblecount = 0 :matchsetupPbubbleBstart if matchsetupPbubblecount >= 10 : jump 'matchsetupPbubbleBend' if modVar_AF_TeamB_PlayerSkill[matchsetupPbubblecount] < modVar_AF_TeamB_PlayerSkill[matchsetupPbubblecount + 1]: $modVar_AF_TempStr = $modVar_AF_TeamB_PlayerName[matchsetupPbubblecount] modVar_AF_Temp = modVar_AF_TeamB_PlayerSkill[matchsetupPbubblecount] modVar_AF_Temp2 = modVar_AF_TeamB_PlayerBaseSkill[matchsetupPbubblecount] $modVar_AF_TeamB_PlayerName[matchsetupPbubblecount] = $modVar_AF_TeamB_PlayerName[matchsetupPbubblecount + 1] modVar_AF_TeamB_PlayerSkill[matchsetupPbubblecount] = modVar_AF_TeamB_PlayerSkill[matchsetupPbubblecount + 1] modVar_AF_TeamB_PlayerBaseSkill[matchsetupPbubblecount] = modVar_AF_TeamB_PlayerBaseSkill[matchsetupPbubblecount + 1] $modVar_AF_TeamB_PlayerName[matchsetupPbubblecount + 1] = $modVar_AF_TempStr modVar_AF_TeamB_PlayerSkill[matchsetupPbubblecount + 1] = modVar_AF_Temp modVar_AF_TeamB_PlayerBaseSkill[matchsetupPbubblecount + 1] = modVar_AF_Temp2 matchsetupPsortcount += 1 end matchsetupPbubblecount += 1 jump 'matchsetupPbubbleBstart' :matchsetupPbubbleBend if matchsetupPsortcount > 0 : jump 'matchsetupPsortB' end end if $ARGS[0] = 'SimulateMatch': KILLVAR 'modArr_AF_Rand' simmatcherrorcount = 0 matchsimplayercount = 0 modVar_AF_RandUpper = 0 :matchsimplayerloopstart if simmatcherrorcount >= 1000 : $modVar_AF_LoopErrorLoc = 'Volleyball Sim PlayerLoop' & jump 'matchsimplayerloopend' if matchsimplayercount >= 20 : jump'matchsimplayerloopend' if matchsimplayercount < 10: modVar_AF_RandUpper += modVar_AF_TeamA_PlayerSkill[matchsimplayercount] else modVar_AF_Temp2 = matchsimplayercount - 10 modVar_AF_RandUpper += modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] end matchsimplayercount += 1 simmatcherrorcount += 1 jump 'matchsimplayerloopstart' :matchsimplayerloopend matchsimresultcount = 1 :matchsimresultloopstart modVar_AF_Temp = 0 if simmatcherrorcount >= 1000 : $modVar_AF_LoopErrorLoc = 'Volleyball Sim ScorerLoop' & jump 'matchsimresultloopend' simmatcherrorcount += 1 if matchsimresultcount >= 13 and modVar_AF_MatchPointsA ! modVar_AF_MatchPointsB : jump 'matchsimresultloopend' !Repeated to flush out Random Number Generator modVar_AF_Rand = rand(1,modVar_AF_RandUpper) modVar_AF_Rand = rand(1,modVar_AF_RandUpper) modVar_AF_Rand = rand(1,modVar_AF_RandUpper) modVar_AF_RandLower = modVar_AF_Rand matchsimfindscorercount = 0 :matchsimfindscorerloopstart if simmatcherrorcount >= 1000 : $modVar_AF_LoopErrorLoc = 'Volleyball Sim ScorerLoop' & jump 'matchsimresultloopend' simmatcherrorcount += 1 if matchsimfindscorercount < 10: modVar_AF_Rand -= modVar_AF_TeamA_PlayerSkill[matchsimfindscorercount] else modVar_AF_Temp2 = matchsimfindscorercount - 10 modVar_AF_Rand -= modVar_AF_TeamB_PlayerSkill[modVar_AF_Temp2] end if modVar_AF_Rand <= modVar_AF_Temp: if matchsimfindscorercount < 10: modVar_AF_MatchPointsA += 1 modArr_AF_MatchAScorers[matchsimfindscorercount] += 1 else modVar_AF_Temp2 = matchsimfindscorercount - 10 modVar_AF_MatchPointsB += 1 modArr_AF_MatchBScorers[modVar_AF_Temp2] += 1 end matchsimresultcount += 1 jump 'matchsimresultloopstart' else matchsimfindscorercount += 1 jump 'matchsimfindscorerloopstart' end :matchsimresultloopend end if $ARGS[0] = 'SortTournamentPlayers': :sortplayerssortstart sortplayerssortcount = 0 sortplayerssortbubblecount = 0 :sortplayerssortbubblestart if sortplayerssortbubblecount >= arrsize('$modArr_AF_VBallT_PlayerName') : jump 'sortplayerssortbubbleend' if modArr_AF_VBallT_PlayerSkill[sortplayerssortbubblecount] < modArr_AF_VBallT_PlayerSkill[sortplayerssortbubblecount + 1]: $modVar_AF_TempStr = $modArr_AF_VBallT_PlayerName[sortplayerssortbubblecount] $modArr_AF_VBallT_PlayerName[sortplayerssortbubblecount] = $modArr_AF_VBallT_PlayerName[sortplayerssortbubblecount + 1] $modArr_AF_VBallT_PlayerName[sortplayerssortbubblecount + 1] = $modVar_AF_TempStr $modVar_AF_TempStr = $modArr_AF_VBallT_PlayerTeam[sortplayerssortbubblecount] $modArr_AF_VBallT_PlayerTeam[sortplayerssortbubblecount] = $modArr_AF_VBallT_PlayerTeam[sortplayerssortbubblecount + 1] $modArr_AF_VBallT_PlayerTeam[sortplayerssortbubblecount + 1] = $modVar_AF_TempStr modVar_AF_Temp = modArr_AF_VBallT_PlayerSkill[sortplayerssortbubblecount] modArr_AF_VBallT_PlayerSkill[sortplayerssortbubblecount] = modArr_AF_VBallT_PlayerSkill[sortplayerssortbubblecount + 1] modArr_AF_VBallT_PlayerSkill[sortplayerssortbubblecount + 1] = modVar_AF_Temp sortplayerssortcount += 1 end sortplayerssortbubblecount += 1 jump 'sortplayerssortbubblestart' :sortplayerssortbubbleend if sortplayerssortcount > 0 : jump 'sortplayerssortstart' end if $ARGS[0] = 'SortLeagues': if modArr_AF_VLeagueA_Wins[0] + modArr_AF_VLeagueA_Wins[1] + modArr_AF_VLeagueA_Wins[2] + modArr_AF_VLeagueA_Wins[3] = 0 : jump 'sortleaguesskipsort' :sortleaguesAsortstart sortleaguessortcount = 0 sortleaguessortbubblecount = 0 :sortleaguesAsortbubblestart if sortleaguessortbubblecount >= arrsize('$modArr_AF_VLeagueA_TeamName') : jump 'sortleaguesAsortbubbleend' if modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] < modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1]: $modVar_AF_TempStr = $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount] modVar_AF_Temp = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] modVar_AF_Temp2 = modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount] modVar_AF_Temp3 = modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount] $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount] = $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount + 1] modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1] modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1] modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount] = modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount + 1] $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1] = modVar_AF_Temp modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2 modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3 sortleaguessortcount += 1 elseif modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1] and modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount] < modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1]: $modVar_AF_TempStr = $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount] modVar_AF_Temp = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] modVar_AF_Temp2 = modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount] modVar_AF_Temp3 = modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount] $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount] = $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount + 1] modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1] modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1] modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount] = modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount + 1] $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1] = modVar_AF_Temp modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2 modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3 sortleaguessortcount += 1 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]: $modVar_AF_TempStr = $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount] modVar_AF_Temp = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] modVar_AF_Temp2 = modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount] modVar_AF_Temp3 = modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount] $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount] = $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount + 1] modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1] modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1] modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount] = modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount + 1] $modArr_AF_VLeagueA_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr modArr_AF_VLeagueA_Wins[sortleaguessortbubblecount + 1] = modVar_AF_Temp modArr_AF_VLeagueA_PointsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2 modArr_AF_VLeagueA_PointsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3 sortleaguessortcount += 1 end sortleaguessortbubblecount += 1 jump 'sortleaguesAsortbubblestart' :sortleaguesAsortbubbleend if sortleaguessortcount > 0 : jump 'sortleaguesAsortstart' :sortleaguesBsortstart sortleaguessortcount = 0 sortleaguessortbubblecount = 0 :sortleaguesBsortbubblestart if sortleaguessortbubblecount >= arrsize('$modArr_AF_VLeagueB_TeamName') : jump 'sortleaguesBsortbubbleend' if modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] < modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1]: $modVar_AF_TempStr = $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount] modVar_AF_Temp = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] modVar_AF_Temp2 = modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount] modVar_AF_Temp3 = modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount] $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount] = $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount + 1] modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1] modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1] modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount] = modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount + 1] $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1] = modVar_AF_Temp modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2 modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3 sortleaguessortcount += 1 elseif modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1] and modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount] < modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1]: $modVar_AF_TempStr = $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount] modVar_AF_Temp = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] modVar_AF_Temp2 = modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount] modVar_AF_Temp3 = modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount] $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount] = $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount + 1] modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1] modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1] modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount] = modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount + 1] $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1] = modVar_AF_Temp modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2 modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3 sortleaguessortcount += 1 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]: $modVar_AF_TempStr = $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount] modVar_AF_Temp = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] modVar_AF_Temp2 = modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount] modVar_AF_Temp3 = modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount] $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount] = $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount + 1] modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount] = modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1] modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount] = modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1] modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount] = modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount + 1] $modArr_AF_VLeagueB_TeamName[sortleaguessortbubblecount + 1] = $modVar_AF_TempStr modArr_AF_VLeagueB_Wins[sortleaguessortbubblecount + 1] = modVar_AF_Temp modArr_AF_VLeagueB_PointsFor[sortleaguessortbubblecount + 1] = modVar_AF_Temp2 modArr_AF_VLeagueB_PointsAgainst[sortleaguessortbubblecount + 1] = modVar_AF_Temp3 sortleaguessortcount += 1 end sortleaguessortbubblecount += 1 jump 'sortleaguesBsortbubblestart' :sortleaguesBsortbubbleend if sortleaguessortcount > 0 : jump 'sortleaguesBsortstart' :sortleaguesskipsort end if $ARGS[0] = 'SetupPractice': KILLVAR '$modArr_AF_VBall_PlayerName' KILLVAR '$modArr_AF_VBall_PlayerTeam' KILLVAR 'modArr_AF_VBall_PlayerSkill' KILLVAR 'modArr_AF_Rand' modArr_AF_Rand[] = rand(1,2) modArr_AF_Rand[] = rand(1,2) modArr_AF_Rand[] = rand(1,2) modArr_AF_Rand[] = rand(1,2) $tempname = $ARGS[1] vballpracticecount = 0 :vballpracticeloopstart gs 'mod_addedflavour_GameFunctions' , 'SetupTeam' , $tempname , 2 , 10 , 50 , 80 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>>' 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 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' 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 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' 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 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' 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 vballpracticesubcount = 0 :vballpracticesubloopstart if vballpracticesubcount >= 10 : jump 'vballpracticesubloopend' $modArr_AF_VBall_PlayerName[] = $modArr_AF_PlayerNameTemp[vballpracticesubcount] $modArr_AF_VBall_PlayerTeam[] = $modArr_AF_PlayerTeamTemp[vballpracticesubcount] modArr_AF_VBall_PlayerSkill[] = modArr_AF_PlayerSkillTemp[vballpracticesubcount] vballpracticesubcount += 1 jump 'vballpracticesubloopstart' :vballpracticesubloopend if $tempname = $ARGS[1] : $tempname = $ARGS[2] & jump 'vballpracticeloopstart' $modVar_AF_Music = 'VolleyballPractice' end if $ARGS[0] = 'SetupTournament': KILLVAR '$modArr_AF_VBallT_PlayerName' KILLVAR '$modArr_AF_VBallT_PlayerTeam' KILLVAR 'modArr_AF_VBallT_PlayerSkill' $tempname = 'Pavlovsk Falcons' vballtournamentcount = 0 :vballtournamentloopstart gs 'mod_addedflavour_GameFunctions' , 'SetupTeam' , $tempname , 2 , 10 , 50 , 80 if $tempname = 'Pavlovsk Falcons': $modArr_AF_PlayerNameTemp[0] = '<<$pcs_firstname>> <<$pcs_lastname>>' modArr_AF_PlayerSkillTemp[0] = pcs_vball $modArr_AF_PlayerNameTemp[1] = 'Avelina Starov' modArr_AF_PlayerSkillTemp[1] = 55 $modArr_AF_PlayerNameTemp[2] = 'Christina Zvernava' modArr_AF_PlayerSkillTemp[2] = 70 $modArr_AF_PlayerNameTemp[3] = 'Lariska Gruzdeva' modArr_AF_PlayerSkillTemp[3] = 80 end vballtournamentsubcount = 0 :vballtournamentsubloopstart if vballtournamentsubcount >= 10 : jump 'vballtournamentsubloopend' $modArr_AF_VBallT_PlayerName[] = $modArr_AF_PlayerNameTemp[vballtournamentsubcount] $modArr_AF_VBallT_PlayerTeam[] = $modArr_AF_PlayerTeamTemp[vballtournamentsubcount] modArr_AF_VBallT_PlayerSkill[] = modArr_AF_PlayerSkillTemp[vballtournamentsubcount] vballtournamentsubcount += 1 jump 'vballtournamentsubloopstart' :vballtournamentsubloopend if $tempname = 'Pavlovsk Falcons' : $tempname = 'Gatchina Chiefs' & jump 'vballtournamentloopstart' if $tempname = 'Gatchina Chiefs' : $tempname = 'Kolpino Panthers' & jump 'vballtournamentloopstart' if $tempname = 'Kolpino Panthers' : $tempname = 'Bor Bears' & jump 'vballtournamentloopstart' if $tempname = 'Bor Bears' : $tempname = 'Vsevolozhsk Jets' & jump 'vballtournamentloopstart' if $tempname = 'Vsevolozhsk Jets' : $tempname = 'Olkhovsky Warriors' & jump 'vballtournamentloopstart' if $tempname = 'Olkhovsky Warriors' : $tempname = 'Bolshaya Chargers' & jump 'vballtournamentloopstart' if $tempname = 'Bolshaya Chargers' : $tempname = 'Primorsky Predators' & jump 'vballtournamentloopstart' gs 'mod_addedflavour_Volleyball' , 'ApplyTournamentBias' $modVar_AF_Music = 'VolleyballTournament' KILLVAR '$modArr_AF_PlayerNameTemp' KILLVAR '$modArr_AF_PlayerTeamTemp' KILLVAR 'modArr_AF_PlayerSkillTemp' KILLVAR '$modArr_AF_FNamePool' KILLVAR '$modArr_AF_LNamePool' end if $ARGS[0] = 'SetupLeagues': KILLVAR '$modArr_AF_VLeagueA_TeamName' KILLVAR 'modArr_AF_VLeagueA_Wins' KILLVAR 'modArr_AF_VLeagueA_PointsFor' KILLVAR 'modArr_AF_VLeagueA_PointsAgainst' KILLVAR '$modArr_AF_VLeagueA_Games' KILLVAR '$modArr_AF_VLeagueB_TeamName' KILLVAR 'modArr_AF_VLeagueB_Wins' KILLVAR 'modArr_AF_VLeagueB_PointsFor' KILLVAR 'modArr_AF_VLeagueB_PointsAgainst' KILLVAR '$modArr_AF_VLeagueB_Games' KILLVAR '$modArr_AF_Rand' $modArr_AF_Rand[] = 'Gatchina Chiefs' $modArr_AF_Rand[] = 'Kolpino Panthers' $modArr_AF_Rand[] = 'Vsevolozhsk Jets' $modArr_AF_Rand[] = 'Olkhovsky Warriors' $modArr_AF_Rand[] = 'Bolshaya Chargers' $modArr_AF_Rand[] = 'Primorsky Predators' $modArr_AF_VLeagueA_TeamName[] = 'Pavlovsk Falcons' modArr_AF_VLeagueA_Wins[] = 0 modArr_AF_VLeagueA_PointsFor[] = 0 modArr_AF_VLeagueA_PointsAgainst[] = 0 $modArr_AF_VLeagueB_TeamName[] = 'Bor Bears' modArr_AF_VLeagueB_Wins[] = 0 modArr_AF_VLeagueB_PointsFor[] = 0 modArr_AF_VLeagueB_PointsAgainst[] = 0 setupleaguesloopcount = 0 modVar_AF_Temp2 = 1 :setupleaguesloopstart if setupleaguesloopcount = 6 : jump 'setupleaguesloopend' modVar_AF_Rand = rand(1,arrsize('$modArr_AF_Rand')) - 1 $modVar_AF_TempStr = $modArr_AF_Rand[modVar_AF_Rand] KILLVAR '$modArr_AF_Rand' , modVar_AF_Rand if modVar_AF_Temp2 = 1: $modArr_AF_VLeagueA_TeamName[] = $modVar_AF_TempStr modArr_AF_VLeagueA_Wins[] = 0 modArr_AF_VLeagueA_PointsFor[] = 0 modArr_AF_VLeagueA_PointsAgainst[] = 0 elseif modVar_AF_Temp2 = 2: $modArr_AF_VLeagueB_TeamName[] = $modVar_AF_TempStr modArr_AF_VLeagueB_Wins[] = 0 modArr_AF_VLeagueB_PointsFor[] = 0 modArr_AF_VLeagueB_PointsAgainst[] = 0 end if modVar_AF_Temp2 = 1: modVar_AF_Temp2 = 2 elseif modVar_AF_Temp2 = 2: modVar_AF_Temp2 = 1 end setupleaguesloopcount += 1 jump 'setupleaguesloopstart' :setupleaguesloopend $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[0] $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[1] $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[2] $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[3] $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[0] $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[2] $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[1] $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[3] $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[0] $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[3] $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[1] $modArr_AF_VLeagueA_Games[] = $modArr_AF_VLeagueA_TeamName[2] $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[0] $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[1] $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[2] $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[3] $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[0] $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[2] $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[1] $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[3] $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[0] $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[3] $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[1] $modArr_AF_VLeagueB_Games[] = $modArr_AF_VLeagueB_TeamName[2] end if $ARGS[0] = 'ApplyTournamentBias': vballtournamentbiasloopcount = 0 modVar_AF_Temp = (20 * ((volsesonwin * 100) / volsesongame)) / 100 :vballtournamentbiasloopstart if vballtournamentbiasloopcount >= arrsize('$modArr_AF_VBallT_PlayerName') : jump 'vballtournamentbiasloopend' if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Pavlovsk Falcons' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand((modVar_AF_Temp - 10),(modVar_AF_Temp + 10)) if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Gatchina Chiefs' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(-8,12) if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Kolpino Panthers' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(-5,15) if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Bor Bears' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(10,20) if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Vsevolozhsk Jets' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(-2,18) if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Olkhovsky Warriors' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(-7,13) if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Bolshaya Chargers' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(-4,16) if $modArr_AF_VBallT_PlayerTeam[vballtournamentbiasloopcount] = 'Primorsky Predators' : modArr_AF_VBallT_PlayerSkill[vballtournamentbiasloopcount] += rand(-5,15) vballtournamentbiasloopcount += 1 jump 'vballtournamentbiasloopstart' :vballtournamentbiasloopend end --- mod_addedflavour_Volleyball ---------------------------------