# Player From Player Group
Grammar — Player i from g|Player Group
Flags —Native
|Function
Returns the player stored at the specified Index of the specified player group. For example: If you have players 4, 5, and 6 in a player group Index 1 would be Player 4, and this function would return 4.
# Arguments
playergroup
— Groupint
— Index
Returns — int
native int PlayerGroupPlayer(
playergroup inGroup,
int inIndex,
);
# Related
Category: Player Group / Groups
- Add Player To Player Group —
void
— PlayerGroupAdd - Add Player Group To Player Group —
void
— libNtve_gf_AddPlayerGroupToPlayerGroup - Remove Player From Player Group —
void
— PlayerGroupRemove - Remove Player Group From Player Group —
void
— libNtve_gf_RemovePlayerGroupFromPlayerGroup - Remove All Players From Player Group —
void
— PlayerGroupClear - Number Of Players In Player Group —
int
— PlayerGroupCount - Player In Player Group —
bool
— PlayerGroupHasPlayer - Player From Player Group —
int
— PlayerGroupPlayer - Copy Of Player Group —
playergroup
— PlayerGroupCopy - Union Of Player Groups —
playergroup
— libNtve_gf_UnionOfPlayerGroups - Intersection Of Player Groups —
playergroup
— libNtve_gf_IntersectionOfPlayerGroups
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:8621
auto3C20983D_g = lp_players;
auto3C20983D_p = 1;
for ( ; auto3C20983D_p <= PlayerGroupCount(auto3C20983D_g) ; auto3C20983D_p += BoolToInt(lv_player == PlayerGroupPlayer(auto3C20983D_g, auto3C20983D_p)) ) {
lv_player = PlayerGroupPlayer(auto3C20983D_g, auto3C20983D_p);
auto67E08BC8_val = lp_room;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:8622
auto3C20983D_p = 1;
for ( ; auto3C20983D_p <= PlayerGroupCount(auto3C20983D_g) ; auto3C20983D_p += BoolToInt(lv_player == PlayerGroupPlayer(auto3C20983D_g, auto3C20983D_p)) ) {
lv_player = PlayerGroupPlayer(auto3C20983D_g, auto3C20983D_p);
auto67E08BC8_val = lp_room;
{
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9461
autoB9BF28AF_g = PlayerGroupAll();
autoB9BF28AF_p = 1;
for ( ; autoB9BF28AF_p <= PlayerGroupCount(autoB9BF28AF_g) ; autoB9BF28AF_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(autoB9BF28AF_g, autoB9BF28AF_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(autoB9BF28AF_g, autoB9BF28AF_p);
CameraUseModel(lv_indexPlayer, lp_room, lp_zoomCamera, 0.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9462
autoB9BF28AF_p = 1;
for ( ; autoB9BF28AF_p <= PlayerGroupCount(autoB9BF28AF_g) ; autoB9BF28AF_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(autoB9BF28AF_g, autoB9BF28AF_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(autoB9BF28AF_g, autoB9BF28AF_p);
CameraUseModel(lv_indexPlayer, lp_room, lp_zoomCamera, 0.0);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9501
autoFB9AF868_g = PlayerGroupAll();
autoFB9AF868_p = 1;
for ( ; autoFB9AF868_p <= PlayerGroupCount(autoFB9AF868_g) ; autoFB9AF868_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(autoFB9AF868_g, autoFB9AF868_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(autoFB9AF868_g, autoFB9AF868_p);
CameraUseModel(lv_indexPlayer, gf_RoomUnit(lp_room), lp_zoomBackCamera, 0.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9502
autoFB9AF868_p = 1;
for ( ; autoFB9AF868_p <= PlayerGroupCount(autoFB9AF868_g) ; autoFB9AF868_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(autoFB9AF868_g, autoFB9AF868_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(autoFB9AF868_g, autoFB9AF868_p);
CameraUseModel(lv_indexPlayer, gf_RoomUnit(lp_room), lp_zoomBackCamera, 0.0);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:18210
autoB89CC9F3_g = PlayerGroupAll();
autoB89CC9F3_p = 1;
for ( ; autoB89CC9F3_p <= PlayerGroupCount(autoB89CC9F3_g) ; autoB89CC9F3_p += BoolToInt(lv_p == PlayerGroupPlayer(autoB89CC9F3_g, autoB89CC9F3_p)) ) {
lv_p = PlayerGroupPlayer(autoB89CC9F3_g, autoB89CC9F3_p);
libNtve_gf_StoryMode(PlayerGroupSingle(lv_p), false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:18211
autoB89CC9F3_p = 1;
for ( ; autoB89CC9F3_p <= PlayerGroupCount(autoB89CC9F3_g) ; autoB89CC9F3_p += BoolToInt(lv_p == PlayerGroupPlayer(autoB89CC9F3_g, autoB89CC9F3_p)) ) {
lv_p = PlayerGroupPlayer(autoB89CC9F3_g, autoB89CC9F3_p);
libNtve_gf_StoryMode(PlayerGroupSingle(lv_p), false);
CameraLockInput(lv_p, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:8621
auto3C20983D_g = lp_players;
auto3C20983D_p = 1;
for ( ; auto3C20983D_p <= PlayerGroupCount(auto3C20983D_g) ; auto3C20983D_p += BoolToInt(lv_player == PlayerGroupPlayer(auto3C20983D_g, auto3C20983D_p)) ) {
lv_player = PlayerGroupPlayer(auto3C20983D_g, auto3C20983D_p);
auto67E08BC8_val = lp_room;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:8622
auto3C20983D_p = 1;
for ( ; auto3C20983D_p <= PlayerGroupCount(auto3C20983D_g) ; auto3C20983D_p += BoolToInt(lv_player == PlayerGroupPlayer(auto3C20983D_g, auto3C20983D_p)) ) {
lv_player = PlayerGroupPlayer(auto3C20983D_g, auto3C20983D_p);
auto67E08BC8_val = lp_room;
{
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:9461
autoB9BF28AF_g = PlayerGroupAll();
autoB9BF28AF_p = 1;
for ( ; autoB9BF28AF_p <= PlayerGroupCount(autoB9BF28AF_g) ; autoB9BF28AF_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(autoB9BF28AF_g, autoB9BF28AF_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(autoB9BF28AF_g, autoB9BF28AF_p);
CameraUseModel(lv_indexPlayer, lp_room, lp_zoomCamera, 0.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:9462
autoB9BF28AF_p = 1;
for ( ; autoB9BF28AF_p <= PlayerGroupCount(autoB9BF28AF_g) ; autoB9BF28AF_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(autoB9BF28AF_g, autoB9BF28AF_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(autoB9BF28AF_g, autoB9BF28AF_p);
CameraUseModel(lv_indexPlayer, lp_room, lp_zoomCamera, 0.0);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:9501
autoFB9AF868_g = PlayerGroupAll();
autoFB9AF868_p = 1;
for ( ; autoFB9AF868_p <= PlayerGroupCount(autoFB9AF868_g) ; autoFB9AF868_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(autoFB9AF868_g, autoFB9AF868_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(autoFB9AF868_g, autoFB9AF868_p);
CameraUseModel(lv_indexPlayer, gf_RoomUnit(lp_room), lp_zoomBackCamera, 0.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:9502
autoFB9AF868_p = 1;
for ( ; autoFB9AF868_p <= PlayerGroupCount(autoFB9AF868_g) ; autoFB9AF868_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(autoFB9AF868_g, autoFB9AF868_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(autoFB9AF868_g, autoFB9AF868_p);
CameraUseModel(lv_indexPlayer, gf_RoomUnit(lp_room), lp_zoomBackCamera, 0.0);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:18210
autoB89CC9F3_g = PlayerGroupAll();
autoB89CC9F3_p = 1;
for ( ; autoB89CC9F3_p <= PlayerGroupCount(autoB89CC9F3_g) ; autoB89CC9F3_p += BoolToInt(lv_p == PlayerGroupPlayer(autoB89CC9F3_g, autoB89CC9F3_p)) ) {
lv_p = PlayerGroupPlayer(autoB89CC9F3_g, autoB89CC9F3_p);
libNtve_gf_StoryMode(PlayerGroupSingle(lv_p), false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:18211
autoB89CC9F3_p = 1;
for ( ; autoB89CC9F3_p <= PlayerGroupCount(autoB89CC9F3_g) ; autoB89CC9F3_p += BoolToInt(lv_p == PlayerGroupPlayer(autoB89CC9F3_g, autoB89CC9F3_p)) ) {
lv_p = PlayerGroupPlayer(autoB89CC9F3_g, autoB89CC9F3_p);
libNtve_gf_StoryMode(PlayerGroupSingle(lv_p), false);
CameraLockInput(lv_p, false);
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:466
auto993E03F9_g = PlayerGroupActive();
auto993E03F9_p = 1;
for ( ; auto993E03F9_p <= PlayerGroupCount(auto993E03F9_g) ; auto993E03F9_p += BoolToInt(lv_i == PlayerGroupPlayer(auto993E03F9_g, auto993E03F9_p)) ) {
lv_i = PlayerGroupPlayer(auto993E03F9_g, auto993E03F9_p);
if (((PlayerStatus(lv_i) == c_playerStatusActive) && (PlayerType(lv_i) == c_playerTypeUser))) {
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:467
auto993E03F9_p = 1;
for ( ; auto993E03F9_p <= PlayerGroupCount(auto993E03F9_g) ; auto993E03F9_p += BoolToInt(lv_i == PlayerGroupPlayer(auto993E03F9_g, auto993E03F9_p)) ) {
lv_i = PlayerGroupPlayer(auto993E03F9_g, auto993E03F9_p);
if (((PlayerStatus(lv_i) == c_playerStatusActive) && (PlayerType(lv_i) == c_playerTypeUser))) {
if ((lib6CB3363F_gv_fT_PlayerUnit[lv_i] != null)) {
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:897
auto307151DA_g = PlayerGroupActive();
auto307151DA_p = 1;
for ( ; auto307151DA_p <= PlayerGroupCount(auto307151DA_g) ; auto307151DA_p += BoolToInt(lv_i == PlayerGroupPlayer(auto307151DA_g, auto307151DA_p)) ) {
lv_i = PlayerGroupPlayer(auto307151DA_g, auto307151DA_p);
if (((lib6CB3363F_gv_fT_GameReady[lv_i] == false) && (PlayerStatus(lv_i) == c_playerStatusActive) && (PlayerType(lv_i) == c_playerTypeUser))) {
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:898
auto307151DA_p = 1;
for ( ; auto307151DA_p <= PlayerGroupCount(auto307151DA_g) ; auto307151DA_p += BoolToInt(lv_i == PlayerGroupPlayer(auto307151DA_g, auto307151DA_p)) ) {
lv_i = PlayerGroupPlayer(auto307151DA_g, auto307151DA_p);
if (((lib6CB3363F_gv_fT_GameReady[lv_i] == false) && (PlayerStatus(lv_i) == c_playerStatusActive) && (PlayerType(lv_i) == c_playerTypeUser))) {
lv_allPlayersReady = false;
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:908
autoB533AD6E_g = PlayerGroupActive();
autoB533AD6E_p = 1;
for ( ; autoB533AD6E_p <= PlayerGroupCount(autoB533AD6E_g) ; autoB533AD6E_p += BoolToInt(lv_i == PlayerGroupPlayer(autoB533AD6E_g, autoB533AD6E_p)) ) {
lv_i = PlayerGroupPlayer(autoB533AD6E_g, autoB533AD6E_p);
if (((PlayerStatus(lv_i) == c_playerStatusActive) && (PlayerType(lv_i) == c_playerTypeUser))) {
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:909
autoB533AD6E_p = 1;
for ( ; autoB533AD6E_p <= PlayerGroupCount(autoB533AD6E_g) ; autoB533AD6E_p += BoolToInt(lv_i == PlayerGroupPlayer(autoB533AD6E_g, autoB533AD6E_p)) ) {
lv_i = PlayerGroupPlayer(autoB533AD6E_g, autoB533AD6E_p);
if (((PlayerStatus(lv_i) == c_playerStatusActive) && (PlayerType(lv_i) == c_playerTypeUser))) {
DialogSetVisible(lib6CB3363F_gv_fT_DialogSelection, PlayerGroupSingle(lv_i), false);
mods/heroesbrawlmods/arenamodemods/arenamode.stormmod — base.stormdata/LibAREN.galaxy:326
lv_itIndex = 1;
for ( ; ( (autoFECBB7B3_ai >= 0 && lv_itIndex <= autoFECBB7B3_ae) || (autoFECBB7B3_ai < 0 && lv_itIndex >= autoFECBB7B3_ae) ) ; lv_itIndex += autoFECBB7B3_ai ) {
lv_mechanicIndexes[lv_itIndex] = PlayerGroupPlayer(lv_indexPool, RandomInt(1, PlayerGroupCount(lv_indexPool)));
PlayerGroupRemove(lv_indexPool, lv_mechanicIndexes[lv_itIndex]);
}
mods/heroesbrawlmods/arenamodemods/arenamode.stormmod — base.stormdata/LibAREN.galaxy:1257
}
lv_locationNumber = PlayerGroupPlayer(lv_weirdoPoints, RandomInt(1, PlayerGroupCount(lv_weirdoPoints)));
lv_spawnPoint = libAREN_gv_aRM_WheresWeirdoPoints[libAREN_gf_ArenaCurrentLevelIndex()][lv_locationNumber];
UnitCreate(1, "WheresWeirdo", c_unitCreateIgnorePlacement, 0, lv_spawnPoint, PointGetFacing(lv_spawnPoint), null);
mods/heroesbrawlmods/arenamodemods/arenamode.stormmod — base.stormdata/LibAREN.galaxy:2259
}
lv_locationNumber = PlayerGroupPlayer(lv_weirdoPoints, RandomInt(1, PlayerGroupCount(lv_weirdoPoints)));
lv_spawnPoint = libAREN_gv_aRM_WheresWeirdoPoints[libAREN_gf_ArenaCurrentLevelIndex()][lv_locationNumber];
UnitCreate(1, "WheresWeirdo", c_unitCreateIgnorePlacement, 0, lv_spawnPoint, PointGetFacing(lv_spawnPoint), null);
mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod — base.stormdata/LibAMVS.galaxy:218
// Automatic Variable Declarations
// Variable Initialization
lv_returnInt = PlayerGroupPlayer(libAMVS_gv_eventShufflerPG, RandomInt(1, PlayerGroupCount(libAMVS_gv_eventShufflerPG)));
// Implementation
mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod — base.stormdata/LibAMVS.galaxy:222
// Implementation
while ((libAREN_gf_ArenaCurrentRoundIndex() < 2) && (lv_returnInt == libAMVS_ge_TrialGroundsEventConstants_Volskaya_NoEvent)) {
lv_returnInt = PlayerGroupPlayer(libAMVS_gv_eventShufflerPG, RandomInt(1, PlayerGroupCount(libAMVS_gv_eventShufflerPG)));
}
PlayerGroupRemove(libAMVS_gv_eventShufflerPG, lv_returnInt);
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:7091
lv_itBoss = 1;
for ( ; ( (auto4E6C36FE_ai >= 0 && lv_itBoss <= auto4E6C36FE_ae) || (auto4E6C36FE_ai < 0 && lv_itBoss >= auto4E6C36FE_ae) ) ; lv_itBoss += auto4E6C36FE_ai ) {
lv_bossIndex = PlayerGroupPlayer(lv_zergBossGroup, RandomInt(1, PlayerGroupCount(lv_zergBossGroup)));
PlayerGroupRemove(lv_zergBossGroup, lv_bossIndex);
libPEB1_gv_pEB1SlivanZergBosses[lv_itBoss] = lv_availableHeroTypes[lv_bossIndex];
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:607
libPVEB_gv_pBNPCHeroes[lv_index].lv_unitType = (lv_unitTypeString);
libPVEB_gv_pBNPCHeroes[lv_index].lv_skin = lp_skin;
libPVEB_gv_pBNPCHeroes[lv_index].lv_player = PlayerGroupPlayer(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamChaosIndex_C, false), lv_index);
libUIUI_gf_UIDebugPanelCleanUpHeroForPlayer(libPVEB_gv_pBNPCHeroes[lv_index].lv_player);
libPVEB_gv_pBHeroCatalogChangePlayerIndex = lv_index;
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:814
libPVEM_gv_pvENPCHeroes[lv_index].lv_unitType = (lv_unitTypeString);
libPVEM_gv_pvENPCHeroes[lv_index].lv_skin = lp_skin;
libPVEM_gv_pvENPCHeroes[lv_index].lv_player = PlayerGroupPlayer(libPVEM_gf_PvEPlayersOnComputerTeam(false), lv_index);
libUIUI_gf_UIDebugPanelCleanUpHeroForPlayer(libPVEM_gv_pvENPCHeroes[lv_index].lv_player);
libPVEM_gv_pvEHeroCatalogChangePlayerIndex = lv_index;
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1592
for (auto6B389EDD_i = 1; auto6B389EDD_i <= auto6B389EDD_n; auto6B389EDD_i += 1) {
lv_leaderboardRank += 1;
lv_player = PlayerGroupPlayer(libLNYF_gv_leaderboard.lv_players_RaceFinished, lv_leaderboardRank);
lv_unit = libGame_gv_players[lv_player].lv_heroUnit;
libLNYF_gv_leaderboard.lv_player_CurrentRank[lv_player] = lv_leaderboardRank;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:6316
lv_missionTime = GameGetMissionTime();
if ((PlayerGroupCount(lp_killingGroup) >= 1)) {
lv_xPGranted = libCore_gf_DataXPXPForHero(PlayerGroupPlayer(lp_killingGroup, 1), lp_deadHero);
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:6468
if (((lp_killingPlayer == libCore_gv_cOMPUTER_TeamOrder) || (lp_killingPlayer == libCore_gv_cOMPUTER_TeamChaos) || (PlayerGroupCount(lp_killingGroup) != 0))) {
libGame_gf_ScoreValuesReportRealValueAndLog(PlayerGroupPlayer(libGame_gf_AlliedPlayerGroupOfPlayer(lv_deadPlayer), 1), "TeamTakedowns", (PlayerScoreValueGetAsFixed(PlayerGroupPlayer(libGame_gf_AlliedPlayerGroupOfPlayer(lv_deadPlayer), 1), "TeamTakedowns") + lv_valueCoefficient));
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:6468
if (((lp_killingPlayer == libCore_gv_cOMPUTER_TeamOrder) || (lp_killingPlayer == libCore_gv_cOMPUTER_TeamChaos) || (PlayerGroupCount(lp_killingGroup) != 0))) {
libGame_gf_ScoreValuesReportRealValueAndLog(PlayerGroupPlayer(libGame_gf_AlliedPlayerGroupOfPlayer(lv_deadPlayer), 1), "TeamTakedowns", (PlayerScoreValueGetAsFixed(PlayerGroupPlayer(libGame_gf_AlliedPlayerGroupOfPlayer(lv_deadPlayer), 1), "TeamTakedowns") + lv_valueCoefficient));
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:6640
if ((lv_entireTeamDead == false)) {
lv_numberOfPlayersOnDeadPlayersTeam = PlayerGroupCount(lp_deadPlayersTeam);
lv_speakingPlayer = PlayerGroupPlayer(lp_deadPlayersTeam, RandomInt(1, lv_numberOfPlayersOnDeadPlayersTeam));
libSond_gf_HeroVOStartAlliedTakedownVOTimerForPlayer(lv_speakingPlayer, 3.5);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:9141
}
else {
lv_xPAwardGroup = PlayerGroupCopy(libGame_gf_AlliedPlayerGroupOfPlayer(PlayerGroupPlayer(lv_killCreditGroup, 1)));
}
PlayerGroupRemove(lv_xPAwardGroup, libCore_gv_cOMPUTER_TeamOrder);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:9438
}
libGame_gf_AwardXPForNPCKill(lp_minionUnit, lv_minionOwner, lv_unitAttribute, lp_killingPlayer, libCore_gf_DataXPXPForMinion(lp_killXP, PlayerGroupPlayer(PlayerGroupAlliance(c_playerGroupAlly, lp_killingPlayer), 1), lp_minionUnit));
if (((lp_killingPlayer >= 1) && (lp_killingPlayer <= libCore_gv_bALMaxPlayers))) {
libGame_gv_scoreValues[lp_killingPlayer].lv_minionKills += 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:2281
if ((libSprt_gv_dEBUGBonusMinionXP == true)) {
if (((UnitGetOwner(lp_deadUnit) == libCore_gv_cOMPUTER_TeamChaos) || (UnitGetOwner(lp_deadUnit) == libCore_gv_cOMPUTER_TeamOrder))) {
lv_heroUnitOfAllyofDeadUnit = libGame_gv_players[PlayerGroupPlayer(PlayerGroupAlliance(c_playerGroupAlly, UnitGetOwner(lp_deadUnit)), 1)].lv_heroUnit;
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:2182
// Implementation
if ((PlayerGroupCount(lp_creditPlayerGroup) > 0)) {
lv_randomPlayerInCreditGroup = PlayerGroupPlayer(lp_creditPlayerGroup, RandomInt(1, PlayerGroupCount(lp_creditPlayerGroup)));
libMapM_gv_jungleCreepCamps[lp_campIndex].lv_capturingPlayer = lv_randomPlayerInCreditGroup;
libGame_gf_DropLootBannerinSconce(lv_sconceUnit, libGame_gv_players[lv_randomPlayerInCreditGroup].lv_lootContent.lv_loot_Banner.lv_bannerID, lv_randomPlayerInCreditGroup, false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SoundLib.galaxy:1054
}
lv_speakingPlayer = PlayerGroupPlayer(libSond_gv_heroVO_HeroTakedownVOAlliesGroup[lv_triggeringPlayer], RandomInt(1, lv_numberOfPlayersInAlliesGroup));
lv_killingHero = libGame_gv_players[lv_triggeringPlayer].lv_heroUnit;
lv_dyingHero = libGame_gv_players[libSond_gv_heroVO_HeroTakedownVOLastEnemyPlayerKilled[lv_triggeringPlayer]].lv_heroUnit;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SoundLib.galaxy:1208
}
lv_speakingPlayer = PlayerGroupPlayer(lv_teamPlayerGroup, RandomInt(1, lv_numberOfPlayersInTeamPlayerGroup));
libSond_gf_HeroVOPlayHeroLine(libCore_ge_HeroVOEvents_TeamKilled, lv_speakingPlayer, libCore_gv_playerGroupFromPlayer[lv_triggeringTimerPlayer]);
return true;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SoundLib.galaxy:1264
}
lv_speakingPlayer = PlayerGroupPlayer(libSond_gv_heroVO_CelebrateVOAlliesGroup[lv_triggeringTimerPlayer], RandomInt(1, lv_numberOfPlayersInTeamPlayerGroup));
libSond_gf_HeroVOPlayHeroLine(libCore_ge_HeroVOEvents_Celebrate, lv_speakingPlayer, libCore_gv_playerGroupFromPlayer[lv_triggeringTimerPlayer]);
return true;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1010
}
lv_itPlayer = PlayerGroupPlayer(lv_playersModelGood, RandomInt(1, PlayerGroupCount(lv_playersModelGood)));
lv_playerHeroIndex = lv_itPlayer;
PlayerGroupRemove(lv_playersModelGood, lv_itPlayer);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:187
CameraLockInput(1, true);
libAIAI_gf_HeroAITakeOverHeroForPlayer(1);
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 1));
Wait(2.0, c_timeGame);
TriggerDebugOutput(1, StringExternal("Param/Value/lib_Sprt_DFF38BE8"), true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:223
// Implementation
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 2));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 2));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 3));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:224
// Implementation
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 2));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 2));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 3));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 3));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:225
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 2));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 2));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 3));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 3));
Wait(2.0, c_timeGame);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:226
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 2));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 3));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 3));
Wait(2.0, c_timeGame);
TriggerDebugOutput(1, StringExternal("Param/Value/lib_Sprt_DE92DCE3"), true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:262
// Implementation
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 4));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 4));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 5));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:263
// Implementation
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 4));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 4));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 5));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 5));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:264
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 4));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 4));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 5));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 5));
Wait(2.0, c_timeGame);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:265
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 4));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, 5));
libAIAI_gf_HeroAIEnableAIForPlayer(PlayerGroupPlayer(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, 5));
Wait(2.0, c_timeGame);
TriggerDebugOutput(1, StringExternal("Param/Value/lib_Sprt_AF3E0FFC"), true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:566
lv_itTeam = 1;
for ( ; ( (auto9AD7948B_ai >= 0 && lv_itTeam <= auto9AD7948B_ae) || (auto9AD7948B_ai < 0 && lv_itTeam >= auto9AD7948B_ae) ) ; lv_itTeam += auto9AD7948B_ai ) {
lv_player = PlayerGroupPlayer(libGame_gv_teams[lv_itTeam].lv_teamPlayerGroupNoNPCPlayers, 1);
if ((lv_player > 0) && (lv_player <= libCore_gv_bALMaxPlayers)) {
StatEventCreate("PeriodicXPBreakdown");
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:14454
}
lv_targetUnit = libGame_gv_players[PlayerGroupPlayer(PlayerGroupAlliance(c_playerGroupEnemy, lv_i_Player), RandomInt(1, PlayerGroupCount(PlayerGroupAlliance(c_playerGroupEnemy, lv_i_Player))))].lv_heroUnit;
if ((libNtve_gf_DialogItemIsChecked(libUIUI_gv_killLogDebugPanel.lv_killCheckbox, EventPlayer()) == true)) {
lv_questsResetCount = 1;
mods/heroesmapmods/battlegroundmapmods/heavenhell.stormmod — base.stormdata/LibMLHH.galaxy:305
}
else {
lv_randomLootRingPlayer = PlayerGroupPlayer(lv_lootRingPlayerGroup, RandomInt(1, PlayerGroupCount(lv_lootRingPlayerGroup)));
PlayerGroupRemove(lv_lootRingPlayerGroup, lv_randomLootRingPlayer);
UnitCreateEffectPoint(lv_livingCore, "LootExplosionGoldPileSet", PointWithOffsetPolar(lv_deadCorePosition, (lv_distance + RandomFixed(0.0, 0.5)), (libMLHH_gf_HHDetermineAngle(lv_randomLootRingPlayer, lv_lootRingSize) + (lv_angleOffset + RandomFixed(-5.0, 5.0)))));
mods/heroesmapmods/battlegroundmapmods/heavenhell.stormmod — base.stormdata/LibMLHH.galaxy:324
}
lv_randomLootRingPlayer = PlayerGroupPlayer(lv_lootRingPlayerGroup, RandomInt(1, PlayerGroupCount(lv_lootRingPlayerGroup)));
PlayerGroupRemove(lv_lootRingPlayerGroup, lv_randomLootRingPlayer);
lv_randomWeapon = RandomInt(1, lv_remainingWeaponDrops);
mods/heroesmapmods/battlegroundmapmods/heavenhell.stormmod — base.stormdata/LibMLHH.galaxy:354
}
lv_randomLootRingPlayer = PlayerGroupPlayer(lv_lootRingPlayerGroup, RandomInt(1, PlayerGroupCount(lv_lootRingPlayerGroup)));
PlayerGroupRemove(lv_lootRingPlayerGroup, lv_randomLootRingPlayer);
UnitCreateEffectPoint(lv_livingCore, "LootExplosionGoldPileSet", PointWithOffsetPolar(lv_deadCorePosition, (lv_distance + RandomFixed(0.0, 0.5)), (libMLHH_gf_HHDetermineAngle(lv_randomLootRingPlayer, lv_lootRingSize) + (lv_angleOffset + RandomFixed(-5.0, 5.0)))));
mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod — base.stormdata/LibMSHE.galaxy:215
}
lv_shrine = PlayerGroupPlayer(libMSHE_gv_mMISShrineGroup, RandomInt(1, PlayerGroupCount(libMSHE_gv_mMISShrineGroup)));
return lv_shrine;
}
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:303
auto78989EBF_val = libMTOD_gv_mMToDEventNumber;
if (auto78989EBF_val == 1) {
lv_pointGroup = PlayerGroupPlayer(libMTOD_gv_mMToDScoringAltarRemainingConfigsThreeAltarEvent, RandomInt(1, PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigsThreeAltarEvent)));
PlayerGroupRemove(libMTOD_gv_mMToDScoringAltarRemainingConfigsThreeAltarEvent, lv_pointGroup);
}
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:307
}
else if (auto78989EBF_val == 2) {
lv_pointGroup = PlayerGroupPlayer(libMTOD_gv_mMToDScoringAltarRemainingConfigs, RandomInt(1, PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)));
PlayerGroupRemove(libMTOD_gv_mMToDScoringAltarRemainingConfigs, lv_pointGroup);
}
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:311
}
else if (auto78989EBF_val == 3) {
lv_pointGroup = PlayerGroupPlayer(libMTOD_gv_mMToDScoringAltarRemainingConfigs, RandomInt(1, PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)));
PlayerGroupRemove(libMTOD_gv_mMToDScoringAltarRemainingConfigs, lv_pointGroup);
}
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:315
}
else if (auto78989EBF_val == 4) {
lv_pointGroup = PlayerGroupPlayer(libMTOD_gv_mMToDScoringAltarRemainingConfigs, RandomInt(1, PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)));
PlayerGroupRemove(libMTOD_gv_mMToDScoringAltarRemainingConfigs, lv_pointGroup);
}
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:319
}
else if (auto78989EBF_val == 5) {
lv_pointGroup = PlayerGroupPlayer(libMTOD_gv_mMToDScoringAltarRemainingConfigsThreeAltarEvent, RandomInt(1, PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigsThreeAltarEvent)));
PlayerGroupRemove(libMTOD_gv_mMToDScoringAltarRemainingConfigsThreeAltarEvent, lv_pointGroup);
}
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:323
}
else if (auto78989EBF_val == 6) {
lv_pointGroup = PlayerGroupPlayer(libMTOD_gv_mMToDScoringAltarRemainingConfigs, RandomInt(1, PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)));
PlayerGroupRemove(libMTOD_gv_mMToDScoringAltarRemainingConfigs, lv_pointGroup);
PlayerGroupClear(libMTOD_gv_mMToDScoringAltarRemainingConfigs);
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:332
}
else if (auto78989EBF_val == 7) {
lv_pointGroup = PlayerGroupPlayer(libMTOD_gv_mMToDScoringAltarRemainingConfigs, RandomInt(1, PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)));
PlayerGroupRemove(libMTOD_gv_mMToDScoringAltarRemainingConfigs, lv_pointGroup);
}
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:336
}
else if (auto78989EBF_val == 8) {
lv_pointGroup = PlayerGroupPlayer(libMTOD_gv_mMToDScoringAltarRemainingConfigs, RandomInt(1, PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)));
PlayerGroupRemove(libMTOD_gv_mMToDScoringAltarRemainingConfigs, lv_pointGroup);
}
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:340
}
else if (auto78989EBF_val == 9) {
lv_pointGroup = PlayerGroupPlayer(libMTOD_gv_mMToDScoringAltarRemainingConfigs, RandomInt(1, PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)));
PlayerGroupRemove(libMTOD_gv_mMToDScoringAltarRemainingConfigs, lv_pointGroup);
}
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:344
}
else if (auto78989EBF_val == 10) {
lv_pointGroup = PlayerGroupPlayer(libMTOD_gv_mMToDScoringAltarRemainingConfigs, RandomInt(1, PlayerGroupCount(libMTOD_gv_mMToDScoringAltarRemainingConfigs)));
PlayerGroupRemove(libMTOD_gv_mMToDScoringAltarRemainingConfigs, lv_pointGroup);
}
mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmod — base.stormdata/LibMSC2.galaxy:164
PlayerGroupRemove(lv_terrazineLaneGroup, libMSC2_gv_mMSC2LastEmptyWarheadLane);
}
return PlayerGroupPlayer(lv_terrazineLaneGroup, RandomInt(1, PlayerGroupCount(lv_terrazineLaneGroup)));
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:1771
autoEDCAAF8F_g = lp_players;
autoEDCAAF8F_p = 1;
for ( ; autoEDCAAF8F_p <= PlayerGroupCount(autoEDCAAF8F_g) ; autoEDCAAF8F_p += BoolToInt(lv_playerIndex == PlayerGroupPlayer(autoEDCAAF8F_g, autoEDCAAF8F_p)) ) {
lv_playerIndex = PlayerGroupPlayer(autoEDCAAF8F_g, autoEDCAAF8F_p);
if ((libNtve_gf_PlayerInCinematicMode(lv_playerIndex) == true)) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:1772
autoEDCAAF8F_p = 1;
for ( ; autoEDCAAF8F_p <= PlayerGroupCount(autoEDCAAF8F_g) ; autoEDCAAF8F_p += BoolToInt(lv_playerIndex == PlayerGroupPlayer(autoEDCAAF8F_g, autoEDCAAF8F_p)) ) {
lv_playerIndex = PlayerGroupPlayer(autoEDCAAF8F_g, autoEDCAAF8F_p);
if ((libNtve_gf_PlayerInCinematicMode(lv_playerIndex) == true)) {
lv_playerInCinematic = true;
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2777
autoDF48CB2F_g = PlayerGroupAll();
autoDF48CB2F_p = 1;
for ( ; autoDF48CB2F_p <= PlayerGroupCount(autoDF48CB2F_g) ; autoDF48CB2F_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(autoDF48CB2F_g, autoDF48CB2F_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(autoDF48CB2F_g, autoDF48CB2F_p);
if ((PlayerType(lv_indexPlayer) == c_playerTypeComputer)) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2778
autoDF48CB2F_p = 1;
for ( ; autoDF48CB2F_p <= PlayerGroupCount(autoDF48CB2F_g) ; autoDF48CB2F_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(autoDF48CB2F_g, autoDF48CB2F_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(autoDF48CB2F_g, autoDF48CB2F_p);
if ((PlayerType(lv_indexPlayer) == c_playerTypeComputer)) {
libNCMI_gf_EnableNovaCampaignAIBehaviorForPlayer(lv_indexPlayer);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2856
autoE1FC9780_g = lp_players;
autoE1FC9780_p = 1;
for ( ; autoE1FC9780_p <= PlayerGroupCount(autoE1FC9780_g) ; autoE1FC9780_p += BoolToInt(lv_indexPlayer1 == PlayerGroupPlayer(autoE1FC9780_g, autoE1FC9780_p)) ) {
lv_indexPlayer1 = PlayerGroupPlayer(autoE1FC9780_g, autoE1FC9780_p);
auto201B96D5_g = lp_players;
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2857
autoE1FC9780_p = 1;
for ( ; autoE1FC9780_p <= PlayerGroupCount(autoE1FC9780_g) ; autoE1FC9780_p += BoolToInt(lv_indexPlayer1 == PlayerGroupPlayer(autoE1FC9780_g, autoE1FC9780_p)) ) {
lv_indexPlayer1 = PlayerGroupPlayer(autoE1FC9780_g, autoE1FC9780_p);
auto201B96D5_g = lp_players;
auto201B96D5_p = 1;
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2860
auto201B96D5_g = lp_players;
auto201B96D5_p = 1;
for ( ; auto201B96D5_p <= PlayerGroupCount(auto201B96D5_g) ; auto201B96D5_p += BoolToInt(lv_indexPlayer2 == PlayerGroupPlayer(auto201B96D5_g, auto201B96D5_p)) ) {
lv_indexPlayer2 = PlayerGroupPlayer(auto201B96D5_g, auto201B96D5_p);
if ((lv_indexPlayer1 != lv_indexPlayer2)) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2861
auto201B96D5_p = 1;
for ( ; auto201B96D5_p <= PlayerGroupCount(auto201B96D5_g) ; auto201B96D5_p += BoolToInt(lv_indexPlayer2 == PlayerGroupPlayer(auto201B96D5_g, auto201B96D5_p)) ) {
lv_indexPlayer2 = PlayerGroupPlayer(auto201B96D5_g, auto201B96D5_p);
if ((lv_indexPlayer1 != lv_indexPlayer2)) {
PlayerSetAlliance(lv_indexPlayer1, c_allianceIdVision, lv_indexPlayer2, true);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2242
auto015E2278_g = PlayerGroupAll();
auto015E2278_p = 1;
for ( ; auto015E2278_p <= PlayerGroupCount(auto015E2278_g) ; auto015E2278_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(auto015E2278_g, auto015E2278_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(auto015E2278_g, auto015E2278_p);
if ((PlayerType(lv_indexPlayer) != c_playerTypeUser)) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2243
auto015E2278_p = 1;
for ( ; auto015E2278_p <= PlayerGroupCount(auto015E2278_g) ; auto015E2278_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(auto015E2278_g, auto015E2278_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(auto015E2278_g, auto015E2278_p);
if ((PlayerType(lv_indexPlayer) != c_playerTypeUser)) {
PlayerSetState(lv_indexPlayer, c_playerStateDisplayInLeaderPanel, false);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2258
auto8236ADDB_g = PlayerGroupAll();
auto8236ADDB_p = 1;
for ( ; auto8236ADDB_p <= PlayerGroupCount(auto8236ADDB_g) ; auto8236ADDB_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(auto8236ADDB_g, auto8236ADDB_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(auto8236ADDB_g, auto8236ADDB_p);
PlayerSetState(lv_indexPlayer, c_playerStateContinueEnabled, false);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2259
auto8236ADDB_p = 1;
for ( ; auto8236ADDB_p <= PlayerGroupCount(auto8236ADDB_g) ; auto8236ADDB_p += BoolToInt(lv_indexPlayer == PlayerGroupPlayer(auto8236ADDB_g, auto8236ADDB_p)) ) {
lv_indexPlayer = PlayerGroupPlayer(auto8236ADDB_g, auto8236ADDB_p);
PlayerSetState(lv_indexPlayer, c_playerStateContinueEnabled, false);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:976
// Implementation
if ((PlayerType(lp_aIPlayerEnemy) == c_playerTypeNone)) {
libCOMI_gf_CM_CoopAI_Set_EnemyPlayer(lp_player, PlayerGroupPlayer(libCOOC_gf_HumanPlayers(), 1));
}
else {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:1993
lv_playerIter = 1;
for ( ; ( (autoD7B02B25_ai >= 0 && lv_playerIter <= autoD7B02B25_ae) || (autoD7B02B25_ai < 0 && lv_playerIter >= autoD7B02B25_ae) ) ; lv_playerIter += autoD7B02B25_ai ) {
lv_player = PlayerGroupPlayer(lv_attackingPlayers, lv_playerIter);
lv_resourcesForPlayer[lv_playerIter] = libCOMI_gf_CM_CoopAI_GetResourceAmount(lp_resourceSize, libCOMI_gf_DifficultyLevelForPlayerCoop(lv_player));
lv_totalResourceAmount += lv_resourcesForPlayer[lv_playerIter];
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:2075
for ( ; ( (autoE237A2DD_ai >= 0 && lv_playerIter <= autoE237A2DD_ae) || (autoE237A2DD_ai < 0 && lv_playerIter >= autoE237A2DD_ae) ) ; lv_playerIter += autoE237A2DD_ai ) {
if ((lv_unitCount > 0)) {
lv_player = PlayerGroupPlayer(lv_attackingPlayers, lv_playerIter);
if ((PlayerGroupHasPlayer(libCOMI_gf_CM_CoopAI_AttackForce_GetExcludedPlayers(lv_unitTypeIter), lv_player) == false)) {
UnitCreate(1, lv_unitTypeToCreate, 0, lv_player, lp_spawnLocation, libNtve_gf_RandomAngle());
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:2158
for ( ; ( (auto4161A881_ai >= 0 && lv_playerIter <= auto4161A881_ae) || (auto4161A881_ai < 0 && lv_playerIter >= auto4161A881_ae) ) ; lv_playerIter += auto4161A881_ai ) {
if ((lv_unitCount > 0)) {
lv_player = PlayerGroupPlayer(lv_attackingPlayers, lv_playerIter);
if ((PlayerGroupHasPlayer(libCOMI_gf_CM_CoopAI_AttackForce_GetExcludedPlayers(lv_unitTypeIter), lv_player) == false)) {
if ((libCOMI_gf_UnitMoverExists(lv_unitTypeToCreate, "Fly") == false)) {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6721
for ( ; ( (auto4EC1E152_ai >= 0 && lv_angleIter <= auto4EC1E152_ae) || (auto4EC1E152_ai < 0 && lv_angleIter >= auto4EC1E152_ae) ) ; lv_angleIter += auto4EC1E152_ai ) {
lv_pointIter = PointWithOffsetPolar(PlayerStartLocation(libCOMI_gv_cM_ZeratulPlayer), lv_radiusIter, lv_angleIter);
if ((IntToFixed(lv_validPointsCount) < (lp_maxDistance * 0.33)) && (PointPathingPassable(lv_pointIter) == true) && (PointPathingCost(PlayerStartLocation(libCOMI_gv_cM_ZeratulPlayer), lv_pointIter) <= FixedToInt(lp_maxDistance)) && (DistanceBetweenPoints(PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 1)), lv_pointIter) >= lv_startLocationBuffer) && (DistanceBetweenPoints(PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 2)), lv_pointIter) >= lv_startLocationBuffer) && ((UnitIsAlive(libCOMI_gv_cM_HeroUnit[libCOMI_gv_cM_ZeratulPlayer]) == false) || (DistanceBetweenPoints(UnitGetPosition(libCOMI_gv_cM_HeroUnit[libCOMI_gv_cM_ZeratulPlayer]), lv_pointIter) > libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogEffect, "ProphecyArtifactRevealSearch", "AreaArray[" + IntToString(0) + "].Radius", c_playerAny)))) {
lv_nearbyUnitHealth = 0;
auto38554CDB_g = libNtve_gf_UnitsInRegionWithAllianceToPlayerMatchingCondition(null, "", "", libCOMI_gv_cM_ZeratulPlayer, c_unitAllianceEnemy, RegionCircle(lv_pointIter, 10.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6721
for ( ; ( (auto4EC1E152_ai >= 0 && lv_angleIter <= auto4EC1E152_ae) || (auto4EC1E152_ai < 0 && lv_angleIter >= auto4EC1E152_ae) ) ; lv_angleIter += auto4EC1E152_ai ) {
lv_pointIter = PointWithOffsetPolar(PlayerStartLocation(libCOMI_gv_cM_ZeratulPlayer), lv_radiusIter, lv_angleIter);
if ((IntToFixed(lv_validPointsCount) < (lp_maxDistance * 0.33)) && (PointPathingPassable(lv_pointIter) == true) && (PointPathingCost(PlayerStartLocation(libCOMI_gv_cM_ZeratulPlayer), lv_pointIter) <= FixedToInt(lp_maxDistance)) && (DistanceBetweenPoints(PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 1)), lv_pointIter) >= lv_startLocationBuffer) && (DistanceBetweenPoints(PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 2)), lv_pointIter) >= lv_startLocationBuffer) && ((UnitIsAlive(libCOMI_gv_cM_HeroUnit[libCOMI_gv_cM_ZeratulPlayer]) == false) || (DistanceBetweenPoints(UnitGetPosition(libCOMI_gv_cM_HeroUnit[libCOMI_gv_cM_ZeratulPlayer]), lv_pointIter) > libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogEffect, "ProphecyArtifactRevealSearch", "AreaArray[" + IntToString(0) + "].Radius", c_playerAny)))) {
lv_nearbyUnitHealth = 0;
auto38554CDB_g = libNtve_gf_UnitsInRegionWithAllianceToPlayerMatchingCondition(null, "", "", libCOMI_gv_cM_ZeratulPlayer, c_unitAllianceEnemy, RegionCircle(lv_pointIter, 10.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6981
}
return MidPoint(PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 1)), PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 2)));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6981
}
return MidPoint(PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 1)), PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 2)));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:12313
autoD1FA3909_itTestPool=null;
while (PlayerGroupCount(autoD1FA3909_playerPool)) {
autoD1FA3909_itPlayer = PlayerGroupPlayer(autoD1FA3909_playerPool, 1);
autoD1FA3909_itTestPool = libCOOC_gf_MutualAlliedCommandersofPlayerCoutInactiveAndSelf(autoD1FA3909_itPlayer);
PlayerGroupRemove(autoD1FA3909_playerPool, autoD1FA3909_itPlayer);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:30051
auto62F6BACF_itTestPool=null;
while (PlayerGroupCount(auto62F6BACF_playerPool)) {
auto62F6BACF_itPlayer = PlayerGroupPlayer(auto62F6BACF_playerPool, 1);
auto62F6BACF_itTestPool = libCOOC_gf_MutualAlliedCommandersofPlayerCoutInactiveAndSelf(auto62F6BACF_itPlayer);
PlayerGroupRemove(auto62F6BACF_playerPool, auto62F6BACF_itPlayer);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:1376
PlayerGroupRemove(lv_group, lp_player);
if ((PlayerGroupCount(lv_group) > 0)) {
return PlayerGroupPlayer(lv_group, 1);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:1397
// Implementation
PlayerGroupRemove(lv_group, lp_player);
return PlayerGroupPlayer(lv_group, 1);
}
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/WarClassicSystem.galaxy:646
if ((GameIsTestMap(false) == true)) {
Wait(3.0, c_timeGame);
if ((MeleeGetOption(PlayerGroupPlayer(PlayerGroupActive(), 1), c_meleeOptionXPGainDisable) == true)) {
TriggerDebugOutput(1, StringExternal("Param/Value/lib_GAwX_2EB16EED"), true);
}
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:483
}
return PlayerGroupPlayer(lp_playerGroup, RandomInt(1, lv_numberofplayers));
}
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:1617
lv_player = 1;
for ( ; ( (auto64FC2122_ai >= 0 && lv_player <= auto64FC2122_ae) || (auto64FC2122_ai < 0 && lv_player >= auto64FC2122_ae) ) ; lv_player += auto64FC2122_ai ) {
PlayerSetColorIndex(PlayerGroupPlayer(lv_players, lv_player), lv_allycolors[lv_player], true);
}
auto46A323CB_g = libWCdr_gf_GetEnemiesofLegendPlayers();
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:71
for(;i<=pc;i+=1){
pi=PlayerGroupPlayer(enemies,i);
CREnemy=GAw3_PlayerArmyCRLevel(pi);
if(CREnemy*1.3<CRSelf){PlayerGroupAdd(weakEnemies,pi);}
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/Orc/Orc.galaxy:470
if(CRSelf>20){
for(;i<=pc;i+=1){
pi=PlayerGroupPlayer(enemies,i);
CREnemy=GAw3_UnitGroupCRLevel(UnitGroup(null, pi, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterAlly) | (1 << c_targetFilterNeutral) | (1 << c_targetFilterEnemy) | (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile) | (1 << c_targetFilterPreventDefeat), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
if(CRSelf-CREnemy>=8){PlayerGroupAdd(weakEnemies,pi);}