# Number Of Players In Player Group

Grammar — Number of players in g|Player Group
FlagsNative | Function

Returns the number of players in a player group.

# Arguments

  • playergroup — Group

Returns — int

native int PlayerGroupCount(playergroup inGroup);

Category: Player Group / Groups

# Examples

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2031


        }
        if ((PlayerGroupCount(lv_validPlayers) == 0)) {
            return ;
        }

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2079


        }
        if ((PlayerGroupCount(lv_validPlayers) == 0)) {
            return ;
        }

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:4482


        }
        if ((PlayerGroupCount(lv_validPlayers) == 0)) {
            return ;
        }

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:4513


        }
        if ((PlayerGroupCount(lv_validPlayers) == 0)) {
            return ;
        }

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1721


        }
        if ((PlayerGroupCount(lv_validPlayers) == 0)) {
            return ;
        }

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1769


        }
        if ((PlayerGroupCount(lv_validPlayers) == 0)) {
            return ;
        }

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3740


        }
        if ((PlayerGroupCount(lv_validPlayers) == 0)) {
            return ;
        }

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3771


        }
        if ((PlayerGroupCount(lv_validPlayers) == 0)) {
            return ;
        }

mods/frontiers.sc2modbase.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.sc2modbase.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.sc2modbase.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/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.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.stormmodbase.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.stormmodbase.stormdata/LibAREN.galaxy:2253


        }
        if ((PlayerGroupCount(lv_weirdoPoints) == 0)) {
            Wait(RandomFixed(0.0, 5.0), c_timeGame);
            UnitCreate(1, "WheresWeirdo", c_unitCreateIgnorePlacement, 0, libAREN_gv_aRM_WheresWeirdoLastPoint, PointGetFacing(lv_spawnPoint), null);

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.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.stormmodbase.stormdata/LibAMVS.galaxy:196


    // Implementation
    autoD3D5CAF9_ae = PlayerGroupCount(libAMVS_gv_eventShufflerPG);
    lv_i = 1;
    for ( ; ( (autoD3D5CAF9_ai >= 0 && lv_i <= autoD3D5CAF9_ae) || (autoD3D5CAF9_ai < 0 && lv_i >= autoD3D5CAF9_ae) ) ; lv_i += autoD3D5CAF9_ai ) {

mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmodbase.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.stormmodbase.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/arenamodemods/trialgrounds.stormmodbase.stormdata/LibAMVS.galaxy:1924

    }
    libSond_gf_SoundtrackApplyNewDefaultSoundtrackForPlayerGroup("MX_Volskaya_LVL_10", PlayerGroupAll());
    if ((PlayerGroupCount(libAMVS_gv_eventShufflerPG) == 0)) {
        libAMVS_gf_InitializeEventShuffler();
    }

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:4664

    libGame_gv_players[lp_player].lv_faction = lp_team;
    PlayerGroupAdd(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, lp_player);
    lv_numberOfPlayersOnTeam = PlayerGroupCount(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup);
    lv_slot = (lv_numberOfPlayersOnTeam - 1);
    libGame_gv_players[lp_player].lv_spawnPoint = PlayerStartLocation(lv_slot);

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:131

    libGame_gv_players[lp_player].lv_faction = lp_team;
    PlayerGroupAdd(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, lp_player);
    lv_numberOfPlayersOnTeam = PlayerGroupCount(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup);
    lv_slot = (lv_numberOfPlayersOnTeam - 1);
    libGame_gv_players[lp_player].lv_spawnPoint = PlayerStartLocation(lv_slot);

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.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/lunarfestival.stormmodbase.stormdata/LibLNYF.galaxy:193

    else {
        SoundPlayForPlayer(SoundLink("UI_Game_Race_End_Lose", -1), c_maxPlayers, PlayerGroupSingle(lp_player), 100.0, 0.0);
        if ((PlayerGroupCount(libLNYF_gv_leaderboard.lv_players_RaceUnfinished) == 1)) {
            TriggerEnable(libLNYF_gt_GameOverTimerExpires, false);
            libLNYF_gf_GameOverLunar();

mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmodbase.stormdata/LibLNYF.galaxy:1589

        libLNYF_gv_leaderboard.lv_players_NotRanked = PlayerGroupCopy(libLNYF_gv_leaderboard.lv_players_RaceUnfinished);
        lv_leaderboardRank = 0;
        auto6B389EDD_n = PlayerGroupCount(libLNYF_gv_leaderboard.lv_players_RaceFinished);
        for (auto6B389EDD_i = 1; auto6B389EDD_i <= auto6B389EDD_n; auto6B389EDD_i += 1) {
            lv_leaderboardRank += 1;

mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmodbase.stormdata/LibLNYF.galaxy:1600

            libLNYF_gf_SetPlayersRankText(lv_player, lv_leaderboardRank);
        }
        auto5ACAB99A_n = PlayerGroupCount(libLNYF_gv_leaderboard.lv_players_NotRanked);
        for (auto5ACAB99A_i = 1; auto5ACAB99A_i <= auto5ACAB99A_n; auto5ACAB99A_i += 1) {
            lv_leaderboardRank += 1;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:2088

        lv_teamIndex = (1);
    }
    return (PlayerGroupCount(libAIAI_gv_heroAITeamPlayerData[lv_teamIndex].lv_humanPlayers) > 0);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:19812

            	lv_itPlayer = PlayerGroupNextPlayer(auto6A884D65_g, lv_itPlayer);
            	if (lv_itPlayer<0) { break; }
            	libGame_gf_ScoreValuesRecordXPContributionForPlayer(lv_itPlayer, (libCore_gf_DataXPXPForHero(lv_itPlayer, EventUnit()) / PlayerGroupCount(lv_killingGroup)), false);
            libGame_gf_SendEventHeroParticipatedInTakedown(libNtve_gf_KillingPlayer(), lv_itPlayer, lv_rexxarPlayer, EventUnit(), UnitGetPosition(EventUnit()));
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:21250

            PathSetDestinationPoint(libGDHL_gv_heroSgtHammerPathDisplay[lv_sgtHammerCasterPlayer], lv_abilityTargetPoint);
            PathSetVisible(libGDHL_gv_heroSgtHammerPathDisplay[lv_sgtHammerCasterPlayer], c_pathLocationWorld, false);
            if ((PlayerGroupCount(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroupNoNPCPlayers) > 0)) {
                PathCreateForUnit(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false), lv_sgtHammerCasterUnit);
                PathSetLineTexture(PathLastCreated(), c_pathLocationMinimap, "Assets\\Textures\\storm_waypointline.dds");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:21267

            PathSetDestinationPoint(libGDHL_gv_heroSgtHammerPathDisplay[lv_sgtHammerCasterPlayer], lv_abilityTargetPoint);
            PathSetVisible(libGDHL_gv_heroSgtHammerPathDisplay[lv_sgtHammerCasterPlayer], c_pathLocationWorld, false);
            if ((PlayerGroupCount(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroupNoNPCPlayers) > 0)) {
                PathCreateForUnit(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamChaosIndex_C, false), lv_sgtHammerCasterUnit);
                PathSetLineTexture(PathLastCreated(), c_pathLocationMinimap, "Assets\\Textures\\storm_waypointline.dds");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:21373

            PathSetDestinationPoint(libGDHL_gv_heroSgtHammerPathDisplay[lv_sgtHammerCasterPlayer], lv_abilityTargetPoint);
            PathSetVisible(libGDHL_gv_heroSgtHammerPathDisplay[lv_sgtHammerCasterPlayer], c_pathLocationWorld, false);
            if ((PlayerGroupCount(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroupNoNPCPlayers) > 0)) {
                PathCreateForUnit(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false), lv_sgtHammerCasterUnit);
                PathSetLineTexture(PathLastCreated(), c_pathLocationMinimap, "Assets\\Textures\\storm_waypointline.dds");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:21390

            PathSetDestinationPoint(libGDHL_gv_heroSgtHammerPathDisplay[lv_sgtHammerCasterPlayer], lv_abilityTargetPoint);
            PathSetVisible(libGDHL_gv_heroSgtHammerPathDisplay[lv_sgtHammerCasterPlayer], c_pathLocationWorld, false);
            if ((PlayerGroupCount(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroupNoNPCPlayers) > 0)) {
                PathCreateForUnit(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamChaosIndex_C, false), lv_sgtHammerCasterUnit);
                PathSetLineTexture(PathLastCreated(), c_pathLocationMinimap, "Assets\\Textures\\storm_waypointline.dds");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:6315

    lv_deadPlayer = UnitGetOwner(lp_deadHero);
    lv_missionTime = GameGetMissionTime();
    if ((PlayerGroupCount(lp_killingGroup) >= 1)) {
        lv_xPGranted = libCore_gf_DataXPXPForHero(PlayerGroupPlayer(lp_killingGroup, 1), lp_deadHero);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:6325

                	lv_itTeamPlayer = PlayerGroupNextPlayer(auto8F61D95F_g, lv_itTeamPlayer);
                	if (lv_itTeamPlayer<0) { break; }
                	libGame_gf_ScoreValuesRecordXPContributionForPlayer(lv_itTeamPlayer, (libCore_gf_DataXPXPForHero(lv_itTeamPlayer, lp_deadHero) / PlayerGroupCount(lp_killingTeamGroup)), false);
            }
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:6340

            libGame_gv_players[lv_itPlayer].lv_multikillStreak += 1;
            libGame_gf_HeroDeathStartMultikillTimerForPlayer(lv_itPlayer);
            libGame_gf_ScoreValuesRecordXPContributionForPlayer(lv_itPlayer, (lv_xPGranted / PlayerGroupCount(lp_killingGroup)), true);
            if ((libGame_gv_players[lv_itPlayer].lv_isDead == false)) {
                libGame_gv_players[lv_itPlayer].lv_killingSpreeCount += 1;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:6467

    }

    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));
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:6639

    }
    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.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:9037

    }

    if ((PlayerGroupCount(lv_killCreditGroup) == 0) && (UnitTypeTestAttribute(UnitGetType(lp_killedUnit), c_unitAttributeStructure) == false)) {
        return ;
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:9058

        if ((UnitHasBehavior2(libGame_gv_players[lv_itPlayer].lv_heroUnit, "LeoricUndying") == true)) {
            PlayerGroupRemove(lv_killCreditGroup, lv_itPlayer);
            if ((PlayerGroupCount(lv_killCreditGroup) == 0) && (UnitTypeTestAttribute(UnitGetType(lp_killedUnit), c_unitAttributeStructure) == false)) {
                return ;
            }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:9100

    }

    if ((PlayerGroupCount(lv_killCreditGroup) == 0) && (libCore_gv_dEBUGSoloXPOn == false)) {
        lv_xPAwardGroup = PlayerGroupCopy(libGame_gf_EnemyPlayerGroupOfPlayer(lp_killedUnitPlayer));
        if ((PlayerGroupCount(lv_xPAwardGroup) == 0) && (UnitTypeTestAttribute(UnitGetType(lp_killedUnit), c_unitAttributeStructure) == true) && (lp_killedUnitPlayer == libCore_gv_cOMPUTER_Hostile)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:9102

    if ((PlayerGroupCount(lv_killCreditGroup) == 0) && (libCore_gv_dEBUGSoloXPOn == false)) {
        lv_xPAwardGroup = PlayerGroupCopy(libGame_gf_EnemyPlayerGroupOfPlayer(lp_killedUnitPlayer));
        if ((PlayerGroupCount(lv_xPAwardGroup) == 0) && (UnitTypeTestAttribute(UnitGetType(lp_killedUnit), c_unitAttributeStructure) == true) && (lp_killedUnitPlayer == libCore_gv_cOMPUTER_Hostile)) {
            lv_xPAwardGroup = PlayerGroupCopy(libGame_gf_AlliedPlayerGroupOfPlayer(lp_killingPlayer));
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:9119

                	lv_itTeamPlayer = PlayerGroupNextPlayer(autoAB55B378_g, lv_itTeamPlayer);
                	if (lv_itTeamPlayer<0) { break; }
                	libGame_gf_ScoreValuesRecordXPContributionForPlayer(lv_itTeamPlayer, (lv_xPValue / PlayerGroupCount(lv_xPAwardGroup)), false);
            }
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:1769

        UnitCreateEffectUnit(libGame_gv_players[lv_itPlayer].lv_heroUnit, "JungleCampCaptureParticipationSet", libGame_gv_players[lv_itPlayer].lv_heroUnit);
        libSond_gf_HeroVOStartCelebrateVOTimerForPlayer(lv_itPlayer, lv_creditGroup);
        libGame_gf_ScoreValuesRecordXPContributionForPlayer(lv_itPlayer, (lv_grantedXP / PlayerGroupCount(lv_creditGroup)), false);
    }
    if ((libCore_gv_dEBUGSoloXPOn == true)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:2181


    // 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;

mods/heroesdata.stormmodbase.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.stormmodbase.stormdata/TriggerLibs/SoundLib.galaxy:424

    // Automatic Variable Declarations
    // Implementation
    if (((lp_player > libCore_gv_bALMaxPlayers) || (PlayerGroupCount(lp_allyPlayerGroup) < 1))) {
        return ;
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SoundLib.galaxy:746


    }
    if ((PlayerGroupCount(lv_livingPlayers) > 0)) {
        if ((libSond_gf_SoundtrackIsIntroPlaying() == true)) {
            SoundtrackStopCurrent(lv_livingPlayers, c_soundtrackCategoryMusic, true);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SoundLib.galaxy:793


    }
    if ((PlayerGroupCount(lv_livingPlayers) > 0)) {
        SoundtrackPlay(lv_livingPlayers, c_soundtrackCategoryMusic, lv_soundtrack, c_soundtrackCueAny, c_soundtrackIndexAny, true);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SoundLib.galaxy:1049

    }

    lv_numberOfPlayersInAlliesGroup = PlayerGroupCount(libSond_gv_heroVO_HeroTakedownVOAlliesGroup[lv_triggeringPlayer]);
    if ((lv_numberOfPlayersInAlliesGroup < 1)) {
        return true;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SoundLib.galaxy:1203


    }
    lv_numberOfPlayersInTeamPlayerGroup = PlayerGroupCount(lv_teamPlayerGroup);
    if ((lv_numberOfPlayersInTeamPlayerGroup == 0)) {
        return true;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SoundLib.galaxy:1259


    }
    lv_numberOfPlayersInTeamPlayerGroup = PlayerGroupCount(libSond_gv_heroVO_CelebrateVOAlliesGroup[lv_triggeringTimerPlayer]);
    if ((lv_numberOfPlayersInTeamPlayerGroup == 0)) {
        return true;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:614


        }
        if ((PlayerGroupCount(lv_validPlayers) == 0)) {
            return ;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:630


        }
        if ((PlayerGroupCount(lv_validPlayers) == 0)) {
            return ;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:967


    }
    if ((PlayerGroupCount(libStEx_gv_sEMMIntroPlayersWatching) <= 0)) {
        return true;
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1006

    }
    while (true) {
        if (((lv_heroModelPickedCount >= lv_heroModelPickedTotalCount_C) || (PlayerGroupCount(lv_playersModelGood) == 0))) {
            break;
        }

mods/heroesdata.stormmodbase.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.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1096


        }
        if ((PlayerGroupCount(lv_playersFinished) > 0)) {
            libNtve_gf_RemovePlayerGroupFromPlayerGroup(lv_playersFinished, libStEx_gv_sEMMIntroPlayersWatching);
            if ((libStEx_gv_sEMMIntroCallbackCleanup != null)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1104

        }

        if ((PlayerGroupCount(libStEx_gv_sEMMIntroPlayersWatching) == 0)) {
            break;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:2290

        }
        libNtve_gf_RemovePlayerGroupFromPlayerGroup(lv_playersFinished, lv_playersInIntro);
        if ((PlayerGroupCount(lv_playersInIntro) == 0)) {
            break;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:6632


    // Implementation
    if (((PlayerGroupCount(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, true)) <= 0) || (PlayerGroupCount(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamChaosIndex_C, true)) <= 0))) {
        return ;
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:6632


    // Implementation
    if (((PlayerGroupCount(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, true)) <= 0) || (PlayerGroupCount(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamChaosIndex_C, true)) <= 0))) {
        return ;
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:8771

    UIClearCustomMenuItemList(PlayerGroupAll());
    UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogOptionsButton, true);
    if ((PlayerGroupCount(libCore_gv_activeHumanPlayers) > 1)) {
        UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogExitButton, true);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:14448

    for ( ; ( (auto4B68C9FE_ai >= 0 && lv_i_Player <= auto4B68C9FE_ae) || (auto4B68C9FE_ai < 0 && lv_i_Player >= auto4B68C9FE_ae) ) ; lv_i_Player += auto4B68C9FE_ai ) {
        if ((EventDialogControl() == libUIUI_gv_killLogDebugPanel.lv_killButtons[lv_i_Player])) {
            if ((PlayerGroupCount(PlayerGroupAlliance(c_playerGroupEnemy, lv_i_Player)) == 0)) {
                TextExpressionSetToken("Param/Expression/lib_UIUI_60927072", "A", IntToText(libGame_gf_EnemyTeamNumberOfPlayer(lv_i_Player)));
                TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/lib_UIUI_60927072"), true);

mods/heroesdata.stormmodbase.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.stormmodbase.stormdata/LibMLHH.galaxy:281

    lv_itCount = 1;
    for ( ; ( (auto31ABD6CD_ai >= 0 && lv_itCount <= auto31ABD6CD_ae) || (auto31ABD6CD_ai < 0 && lv_itCount >= auto31ABD6CD_ae) ) ; lv_itCount += auto31ABD6CD_ai ) {
        if ((PlayerGroupCount(lv_lootRingPlayerGroup) == 0)) {
            lv_lootRingSize += lv_lootRingSizeIncrement;
            lv_distance += lv_distanceIncrement;

mods/heroesmapmods/battlegroundmapmods/heavenhell.stormmodbase.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.stormmodbase.stormdata/LibMLHH.galaxy:313

        }

        if ((PlayerGroupCount(lv_lootRingPlayerGroup) == 0)) {
            lv_lootRingSize += lv_lootRingSizeIncrement;
            lv_distance += lv_distanceIncrement;

mods/heroesmapmods/battlegroundmapmods/heavenhell.stormmodbase.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.stormmodbase.stormdata/LibMLHH.galaxy:343

        }

        if ((PlayerGroupCount(lv_lootRingPlayerGroup) == 0)) {
            lv_lootRingSize += lv_lootRingSizeIncrement;
            lv_distance += lv_distanceIncrement;

mods/heroesmapmods/battlegroundmapmods/heavenhell.stormmodbase.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.stormmodbase.stormdata/LibMSHE.galaxy:207


    // Implementation
    if ((PlayerGroupCount(libMSHE_gv_mMISShrineGroup) == 0)) {
        auto29E50C5F_ae = libMSHE_gv_mMISNumberofShrinesAllowed;
        lv_itShrine = 1;

mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmodbase.stormdata/LibMSHE.galaxy:215

    }

    lv_shrine = PlayerGroupPlayer(libMSHE_gv_mMISShrineGroup, RandomInt(1, PlayerGroupCount(libMSHE_gv_mMISShrineGroup)));
    return lv_shrine;
}

mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.stormdata/LibMSC2.galaxy:164

        PlayerGroupRemove(lv_terrazineLaneGroup, libMSC2_gv_mMSC2LastEmptyWarheadLane);
    }
    return PlayerGroupPlayer(lv_terrazineLaneGroup, RandomInt(1, PlayerGroupCount(lv_terrazineLaneGroup)));
}

mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmodbase.stormdata/LibMSC2.galaxy:423


        }
        if ((PlayerGroupCount(lv_nukePlayerGroup) == 0)) {
            return true;
        }

mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmodbase.stormdata/LibMSC2.galaxy:773

    TriggerQueueEnter();
    libMSC2_gv_mMSC2GlobalConversationPlaying = true;
    while (!((PlayerGroupCount(libMSC2_gv_mMSC2VOSoundPlaying) == 0))) {
        Wait(0.125, c_timeGame);
    }

mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmodbase.stormdata/LibMSC2.galaxy:805

    TriggerQueueEnter();
    libMSC2_gv_mMSC2GlobalConversationPlaying = true;
    while (!((PlayerGroupCount(libMSC2_gv_mMSC2VOSoundPlaying) == 0))) {
        Wait(0.125, c_timeGame);
    }

mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmodbase.stormdata/LibMSC2.galaxy:1066

    TriggerQueueEnter();
    libMSC2_gv_mMSC2GlobalConversationPlaying = true;
    while (!((PlayerGroupCount(libMSC2_gv_mMSC2VOSoundPlaying) == 0))) {
        Wait(0.125, c_timeGame);
    }

mods/heromods/dva.stormmodbase.stormdata/LibHDVA.galaxy:835

            	lv_itPlayer = PlayerGroupNextPlayer(autoE02018F0_g, lv_itPlayer);
            	if (lv_itPlayer<0) { break; }
            	libGame_gf_ScoreValuesRecordXPContributionForPlayer(lv_itPlayer, (libCore_gf_DataXPXPForHero(lv_itPlayer, lv_unit) / PlayerGroupCount(lv_killingGroup)), false);
            libGame_gf_SendEventHeroParticipatedInTakedown(lv_killingPlayer, lv_itPlayer, lv_targetPlayer, lv_unit, UnitGetPosition(lv_unit));
        }

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:277

    lv_standardPlayers = PlayerGroupAll();
    libNtve_gf_RemovePlayerGroupFromPlayerGroup(libLbty_gv_pingValidPlayers, lv_standardPlayers);
    if ((PlayerGroupCount(lv_standardPlayers) > 0)) {
        libNtve_gf_SetDialogItemTooltip(libLbty_gv_pingPanelMinimapButton, StringExternal("UI/PingTip"), PlayerGroupAll());
    }

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:281

    }

    if ((PlayerGroupCount(libLbty_gv_pingValidPlayers) > 0)) {
        libNtve_gf_SetDialogItemTooltip(libLbty_gv_pingPanelMinimapButton, StringExternal("UI/AdvancedPingTip"), PlayerGroupAll());
    }

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:300

        libNtve_gf_RemovePlayerGroupFromPlayerGroup(lp_players, libLbty_gv_pingValidPlayers);
        UISetFrameVisible(lp_players, c_syncFrameTypePingPanel, false);
        if ((PlayerGroupCount(libLbty_gv_pingValidPlayers) == 0)) {
            TriggerEnable(libLbty_gt_PingUsed, false);
        }

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:746

    }

    if ((PlayerGroupCount(libLbty_gv_pingValidPlayers) == 0)) {
        UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypePingPanel, false);
    }

mods/missionpacks/novacampaign.sc2modbase.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)) {