123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- # mod_addedflavour_GameFunctions
- if $ARGS[0] = 'SetupFirstNamePool':
- KILLVAR '$modArr_AF_FNamePool'
- modVar_AF_Temp = 0
- :FNamePoolLoopStart
- $modArr_AF_FNamePool[] = 'Albina'
- $modArr_AF_FNamePool[] = 'Alexandra'
- $modArr_AF_FNamePool[] = 'Alyona'
- $modArr_AF_FNamePool[] = 'Anastasia'
- $modArr_AF_FNamePool[] = 'Annika'
- $modArr_AF_FNamePool[] = 'Dina'
- $modArr_AF_FNamePool[] = 'Dominika'
- $modArr_AF_FNamePool[] = 'Elena'
- $modArr_AF_FNamePool[] = 'Eva'
- $modArr_AF_FNamePool[] = 'Evgeniya'
- $modArr_AF_FNamePool[] = 'Fedosia'
- $modArr_AF_FNamePool[] = 'Galina'
- $modArr_AF_FNamePool[] = 'Inessa'
- $modArr_AF_FNamePool[] = 'Inga'
- $modArr_AF_FNamePool[] = 'Inna'
- $modArr_AF_FNamePool[] = 'Irina'
- $modArr_AF_FNamePool[] = 'Iskra'
- $modArr_AF_FNamePool[] = 'Izabella'
- $modArr_AF_FNamePool[] = 'Izolda'
- $modArr_AF_FNamePool[] = 'Katina'
- $modArr_AF_FNamePool[] = 'Khristina'
- $modArr_AF_FNamePool[] = 'Klavdiya'
- $modArr_AF_FNamePool[] = 'Kseniya'
- $modArr_AF_FNamePool[] = 'Larisa'
- $modArr_AF_FNamePool[] = 'Lelyah'
- $modArr_AF_FNamePool[] = 'Lizabeta'
- $modArr_AF_FNamePool[] = 'Lucya'
- $modArr_AF_FNamePool[] = 'Ludmila'
- $modArr_AF_FNamePool[] = 'Malvina'
- $modArr_AF_FNamePool[] = 'Marisha'
- $modArr_AF_FNamePool[] = 'Mariya'
- $modArr_AF_FNamePool[] = 'Maya'
- $modArr_AF_FNamePool[] = 'Natasha'
- $modArr_AF_FNamePool[] = 'Nina'
- $modArr_AF_FNamePool[] = 'Oksana'
- $modArr_AF_FNamePool[] = 'Olesya'
- $modArr_AF_FNamePool[] = 'Olga'
- $modArr_AF_FNamePool[] = 'Rada'
- $modArr_AF_FNamePool[] = 'Raisa'
- $modArr_AF_FNamePool[] = 'Svetlana'
- $modArr_AF_FNamePool[] = 'Tatyana'
- $modArr_AF_FNamePool[] = 'Valentina'
- $modArr_AF_FNamePool[] = 'Valeriya'
- $modArr_AF_FNamePool[] = 'Veronika'
- $modArr_AF_FNamePool[] = 'Viktoriya'
- $modArr_AF_FNamePool[] = 'Yana'
- $modArr_AF_FNamePool[] = 'Yelena'
- $modArr_AF_FNamePool[] = 'Zhanna'
- $modArr_AF_FNamePool[] = 'Zinaida'
- $modArr_AF_FNamePool[] = 'Zlata'
- modVar_AF_Temp += 1
- if modVar_AF_Temp < ARGS[1] : jump 'FNamePoolLoopStart'
- end
-
- if $ARGS[0] = 'SetupLastNamePool':
- KILLVAR '$modArr_AF_LNamePool'
- modVar_AF_Temp = 0
- :LNamePoolLoopStart
- $modArr_AF_LNamePool[] = 'Abakumov'
- $modArr_AF_LNamePool[] = 'Abdulov'
- $modArr_AF_LNamePool[] = 'Agapov'
- $modArr_AF_LNamePool[] = 'Alekseev'
- $modArr_AF_LNamePool[] = 'Alexeyev'
- $modArr_AF_LNamePool[] = 'Andreev'
- $modArr_AF_LNamePool[] = 'Angeloff'
- $modArr_AF_LNamePool[] = 'Antonov'
- $modArr_AF_LNamePool[] = 'Arkhangelsky'
- $modArr_AF_LNamePool[] = 'Arsenyev'
- $modArr_AF_LNamePool[] = 'Babanin'
- $modArr_AF_LNamePool[] = 'Belov'
- $modArr_AF_LNamePool[] = 'Belyakov'
- $modArr_AF_LNamePool[] = 'Bocharov'
- $modArr_AF_LNamePool[] = 'Borodin'
- $modArr_AF_LNamePool[] = 'Brezhnev'
- $modArr_AF_LNamePool[] = 'Chaban'
- $modArr_AF_LNamePool[] = 'Chernoff'
- $modArr_AF_LNamePool[] = 'Davydov'
- $modArr_AF_LNamePool[] = 'Devin'
- $modArr_AF_LNamePool[] = 'Dobrow'
- $modArr_AF_LNamePool[] = 'Genrich'
- $modArr_AF_LNamePool[] = 'Grishin'
- $modArr_AF_LNamePool[] = 'Gurin'
- $modArr_AF_LNamePool[] = 'Gusev'
- $modArr_AF_LNamePool[] = 'Ilyin'
- $modArr_AF_LNamePool[] = 'Ivanov'
- $modArr_AF_LNamePool[] = 'Kalashnik'
- $modArr_AF_LNamePool[] = 'Kapitsa'
- $modArr_AF_LNamePool[] = 'Kovalyov'
- $modArr_AF_LNamePool[] = 'Krupin'
- $modArr_AF_LNamePool[] = 'Kuzmin'
- $modArr_AF_LNamePool[] = 'Kuznetsov'
- $modArr_AF_LNamePool[] = 'Lebedev'
- $modArr_AF_LNamePool[] = 'Litvin'
- $modArr_AF_LNamePool[] = 'Mikhailov'
- $modArr_AF_LNamePool[] = 'Morozov'
- $modArr_AF_LNamePool[] = 'Petrov'
- $modArr_AF_LNamePool[] = 'Petukhov'
- $modArr_AF_LNamePool[] = 'Polakoff'
- $modArr_AF_LNamePool[] = 'Rabinovich'
- $modArr_AF_LNamePool[] = 'Rogov'
- $modArr_AF_LNamePool[] = 'Semyonov'
- $modArr_AF_LNamePool[] = 'Smirnov'
- $modArr_AF_LNamePool[] = 'Sokolov'
- $modArr_AF_LNamePool[] = 'Stepanov'
- $modArr_AF_LNamePool[] = 'Turgenev'
- $modArr_AF_LNamePool[] = 'Vitsin'
- $modArr_AF_LNamePool[] = 'Zharkov'
- $modArr_AF_LNamePool[] = 'Zhigunov'
- modVar_AF_Temp += 1
- if modVar_AF_Temp < ARGS[1] : jump 'LNamePoolLoopStart'
- end
-
- if $ARGS[0] = 'SetupTeam':
- !! Call Definition: gs 'mod_addedflavour_GameFunctions' , 'SetupTeam' , [Team Name] , [Amount to Repeat Names in Pool] , [Amount of Players] , [Skill Level Lower] , [Skill Level Higher] !!
- if arrsize('$modArr_AF_FNamePool') = 0 : gs 'mod_addedflavour_GameFunctions' , 'SetupFirstNamePool' , ARGS[2]
- if arrsize('$modArr_AF_LNamePool') = 0 : gs 'mod_addedflavour_GameFunctions' , 'SetupLastNamePool' , ARGS[2]
- KILLVAR '$modArr_AF_PlayerNameTemp'
- KILLVAR '$modArr_AF_PlayerTeamTemp'
- KILLVAR 'modArr_AF_PlayerSkillTemp'
- SetupTeamLoopCount = 0
- SetupTeamErrorLoopCount = 0
- :SetupTeamLoopStart
- if SetupTeamLoopCount >= ARGS[3] : jump 'SetupTeamLoopend'
- if SetupTeamErrorLoopCount >= 1000 : $modVar_AF_LoopErrorLoc = 'Setup Team Loop' & jump 'SetupTeamLoopend'
- SetupTeamErrorLoopCount += 1
- modVar_AF_Rand = (rand(1,arrsize('$modArr_AF_FNamePool'))) - 1
- modVar_AF_Rand2 = (rand(1,arrsize('$modArr_AF_LNamePool'))) - 1
- $modVar_AF_TempStr = $modArr_AF_FNamePool[modVar_AF_Rand] + ' ' + $modArr_AF_LNamePool[modVar_AF_Rand2]
- if arrpos('$modArr_AF_PlayerNameTemp',$modVar_AF_TempStr) >= 0 : jump 'SetupTeamLoopStart'
- if arrpos('$modArr_AF_PlayerNameTemp','<<$pcs_firstname>> <<$pcs_lastname>>') >= 0 : jump 'SetupTeamLoopStart'
- $modArr_AF_PlayerNameTemp[] = $modVar_AF_TempStr
- $modArr_AF_PlayerTeamTemp[] = $ARGS[1]
- modArr_AF_PlayerSkillTemp[] = rand(ARGS[4],ARGS[5])
- KILLVAR '$modArr_AF_FNamePool' , modVar_AF_Rand
- KILLVAR '$modArr_AF_LNamePool' , modVar_AF_Rand2
- SetupTeamLoopCount += 1
- jump 'SetupTeamLoopStart'
- :SetupTeamLoopend
- end
- --- mod_addedflavour_GameFunctions ---------------------------------
|