# Status Of Player

Grammar — Status of player p
FlagsNative | Function

Returns the status of the player.

# Arguments

  • int — Player

Returns — int<preset::PlayerStatus>

native int PlayerStatus(int inPlayer);

Category: Player / Player Settings

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7131

        lv_indexPlayer = PlayerGroupNextPlayer(auto29524B7D_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser) && (PlayerStatus(lv_indexPlayer) == c_playerStatusActive)) {
            libNtve_gf_SetUpgradeLevelForPlayer(lv_indexPlayer, "BansheeCloak", 1);
            libNtve_gf_SetUpgradeLevelForPlayer(lv_indexPlayer, "PersonalCloaking", 1);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:5918

        lv_indexPlayer = PlayerGroupNextPlayer(autoE52C82E9_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser) && (PlayerStatus(lv_indexPlayer) == c_playerStatusActive)) {
            libNtve_gf_SetUpgradeLevelForPlayer(lv_indexPlayer, "BansheeCloak", 1);
            libNtve_gf_SetUpgradeLevelForPlayer(lv_indexPlayer, "PersonalCloaking", 1);

mods/frontiers.sc2modbase.sc2data/Lib6CB3363F.galaxy:468

    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)) {
                UnitRemove(lib6CB3363F_gv_fT_PlayerUnit[lv_i]);

mods/frontiers.sc2modbase.sc2data/Lib6CB3363F.galaxy:530


    // Implementation
    if ((PlayerStatus(lp_player) == c_playerStatusActive)) {
        lv_px = PointGetX(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_player]));
        lv_py = PointGetY(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_player]));

mods/frontiers.sc2modbase.sc2data/Lib6CB3363F.galaxy:899

            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.sc2modbase.sc2data/Lib6CB3363F.galaxy:910

                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/frontiers.sc2modbase.sc2data/Lib6CB3363F.galaxy:965

    for ( ; ( (auto04A80D74_ai >= 0 && lv_i <= auto04A80D74_ae) || (auto04A80D74_ai <= 0 && lv_i >= auto04A80D74_ae) ) ; lv_i += auto04A80D74_ai ) {
        lib6CB3363F_gf_MovementAction(lv_i);
        if ((PlayerStatus(lv_i) == c_playerStatusActive)) {
            lib6CB3363F_gv_fT_PlayerMeleeTimer[lv_i] -= 0.0625;
            lib6CB3363F_gv_fT_PlayerWeaponCurrentRefire[lv_i] -= 0.0625;

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:964

    lv_itPlayer = 1;
    for ( ; ( (auto12995983_ai >= 0 && lv_itPlayer <= auto12995983_ae) || (auto12995983_ai < 0 && lv_itPlayer >= auto12995983_ae) ) ; lv_itPlayer += auto12995983_ai ) {
        if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
            libGame_gf_EndGameForPlayerStorm(lv_itPlayer);
        }

mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmodbase.stormdata/LibMDoE.galaxy:503

    lv_itPlayer = 1;
    for ( ; ( (auto43EED731_ai >= 0 && lv_itPlayer <= auto43EED731_ae) || (auto43EED731_ai < 0 && lv_itPlayer >= auto43EED731_ae) ) ; lv_itPlayer += auto43EED731_ai ) {
        if ((PlayerStatus(lv_itPlayer) != c_playerStatusActive)) {
            continue;
        }

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

    lv_itPlayer = 1;
    for ( ; ( (auto22E6504F_ai >= 0 && lv_itPlayer <= auto22E6504F_ae) || (auto22E6504F_ai < 0 && lv_itPlayer >= auto22E6504F_ae) ) ; lv_itPlayer += auto22E6504F_ai ) {
        if ((PlayerStatus(lv_itPlayer) != c_playerStatusActive)) {
            continue;
        }

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

        	lv_playerIndex = PlayerGroupNextPlayer(auto52279AA5_g, lv_playerIndex);
        	if (lv_playerIndex<0) { break; }
        	if ((PlayerStatus(lv_playerIndex) == c_playerStatusActive)) {
            DialogControlHookup(libPEB1_gv_pZETabScreenPanel.lv_tabControl, c_triggerControlTypePanel, libNtve_gf_ConvertStringToUILayoutFrameName(("PlayerFrame" + IntToString((lv_playerIndex - 1)))));
            lv_tempDialogItem = DialogControlLastCreated();

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

        	lv_itPlayerIndex = PlayerGroupNextPlayer(auto92C6E5AA_g, lv_itPlayerIndex);
        	if (lv_itPlayerIndex<0) { break; }
        	if ((PlayerStatus(lv_itPlayerIndex) != c_playerStatusUnused)) {
            auto4C1C75CD_g = UnitGroup(null, lv_itPlayerIndex, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
            auto4C1C75CD_u = UnitGroupCount(auto4C1C75CD_g, c_unitCountAll);

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

        	lv_itPlayerIndex = PlayerGroupNextPlayer(auto1A904ED2_g, lv_itPlayerIndex);
        	if (lv_itPlayerIndex<0) { break; }
        	if ((PlayerStatus(lv_itPlayerIndex) != c_playerStatusUnused)) {
            autoCA2899B9_g = UnitGroup(null, lv_itPlayerIndex, RegionPlayableMap(), UnitFilter((1 << c_targetFilterTower), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
            autoCA2899B9_u = UnitGroupCount(autoCA2899B9_g, c_unitCountAll);

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

        	lv_itPlayerIndex = PlayerGroupNextPlayer(autoC1865C4C_g, lv_itPlayerIndex);
        	if (lv_itPlayerIndex<0) { break; }
        	if ((PlayerStatus(lv_itPlayerIndex) != c_playerStatusUnused)) {
            if ((UnitIsAlive(libGame_gv_players[lv_itPlayerIndex].lv_heroUnit) == false)) {
                libPVEB_gf_PvEResurrectRevivePlayerInstantly(lv_itPlayerIndex, libPEB1_gv_checkpoints[2].lv_playerSpawnPoints[libGame_gv_players[lv_itPlayerIndex].lv_rosterSlot]);

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

        	lv_playerIndex = PlayerGroupNextPlayer(auto52279AA5_g, lv_playerIndex);
        	if (lv_playerIndex<0) { break; }
        	if ((PlayerStatus(lv_playerIndex) == c_playerStatusActive)) {
            DialogControlHookup(libPEB1_gv_pZETabScreenPanel.lv_tabControl, c_triggerControlTypePanel, libNtve_gf_ConvertStringToUILayoutFrameName(("PlayerFrame" + IntToString((lv_playerIndex - 1)))));
            lv_tempDialogItem = DialogControlLastCreated();

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:482

    // Automatic Variable Declarations
    // Implementation
    if ((PlayerGroupHasPlayer(libPVEB_gf_PBPlayersOnHumanTeam(), lp_player) == true) && (PlayerStatus(lp_player) == c_playerStatusActive) && (PlayerType(lp_player) != c_playerTypeHostile)) {
        return true;
    }

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:1158

        	lv_itPlayer = PlayerGroupNextPlayer(autoB2DFF775_g, lv_itPlayer);
        	if (lv_itPlayer<0) { break; }
        	if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
            CameraLockInput(lv_itPlayer, true);
            libGame_gv_players[lv_itPlayer].lv_victoryDefeat = c_gameOverVictory;

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:1169

        	lv_itPlayer = PlayerGroupNextPlayer(autoA8114404_g, lv_itPlayer);
        	if (lv_itPlayer<0) { break; }
        	if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
            CameraLockInput(lv_itPlayer, true);
            libGame_gv_players[lv_itPlayer].lv_victoryDefeat = c_gameOverDefeat;

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:1203

    lv_itPlayer = 1;
    for ( ; ( (auto86F1E917_ai >= 0 && lv_itPlayer <= auto86F1E917_ae) || (auto86F1E917_ai < 0 && lv_itPlayer >= auto86F1E917_ae) ) ; lv_itPlayer += auto86F1E917_ai ) {
        if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
            libPVEB_gf_PBEndGameForPlayer(lv_itPlayer);
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmodbase.stormdata/LibPBUI.galaxy:220

        	lv_itPlayer = PlayerGroupNextPlayer(auto7B139AE8_g, lv_itPlayer);
        	if (lv_itPlayer<0) { break; }
        	if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
            lv_playerCount += 1;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmodbase.stormdata/LibPBUI.galaxy:347

            	lv_itPlayer = PlayerGroupNextPlayer(auto429381E4_g, lv_itPlayer);
            	if (lv_itPlayer<0) { break; }
            	if ((lv_itPlayer != lv_itViewer) && (PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
                lv_itPlayerSlot += 1;
                libPBUI_gv_curateHeroSelectionUI.lv_teamPanelRowPlayer[lv_itViewer][lv_itPlayerSlot] = lv_itPlayer;

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmodbase.stormdata/LibPBUI.galaxy:635

    lv_itPlayer = 1;
    for ( ; ( (auto9EECDD60_ai >= 0 && lv_itPlayer <= auto9EECDD60_ae) || (auto9EECDD60_ai < 0 && lv_itPlayer >= auto9EECDD60_ae) ) ; lv_itPlayer += auto9EECDD60_ai ) {
        if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused) && (PlayerType(lv_itPlayer) == c_playerTypeUser) && (libPBUI_gv_curateHeroSelectionSetting.lv_lockedIn[lv_itPlayer] == false)) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmodbase.stormdata/LibPBUI.galaxy:1286

    // Implementation
    lv_teamMembers = libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false);
    if ((PlayerStatus(libCore_gv_oBSERVER_ObserverUIPlayer) != c_playerStatusUnused)) {
        PlayerGroupAdd(lv_teamMembers, libCore_gv_oBSERVER_ObserverUIPlayer);
    }

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmodbase.stormdata/LibPBUI.galaxy:1490

        	lv_itPlayer2 = PlayerGroupNextPlayer(autoD70C5296_g, lv_itPlayer2);
        	if (lv_itPlayer2<0) { break; }
        	if ((PlayerStatus(lv_itPlayer2) != c_playerStatusUnused) && (libPBUI_gv_curateHeroSelectionSetting.lv_lockedIn[lv_itPlayer2] == false)) {
            if ((libPBUI_gv_curateHeroSelectionSetting.lv_selectedHeroRow[lv_itPlayer2] > 0) && (libPBUI_gv_curateHeroSelectionSetting.lv_selectedHeroCol[lv_itPlayer2] > 0)) {
                libPBUI_gv_curateHeroSelectionSetting.lv_lockedIn[lv_itPlayer2] = true;

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmodbase.stormdata/LibPBUI.galaxy:1503

        	lv_itPlayer2 = PlayerGroupNextPlayer(auto2A9A4B3A_g, lv_itPlayer2);
        	if (lv_itPlayer2<0) { break; }
        	if ((PlayerStatus(lv_itPlayer2) != c_playerStatusUnused)) {
            if ((libPBUI_gv_curateHeroSelectionSetting.lv_lockedIn[lv_itPlayer2] == false)) {
                libPBUI_gf_CurateHSUIAutoPickHeroForPlayer(lv_itPlayer2);

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmodbase.stormdata/LibPBUI.galaxy:1584

        	lv_itPlayer2 = PlayerGroupNextPlayer(autoB512AB23_g, lv_itPlayer2);
        	if (lv_itPlayer2<0) { break; }
        	if ((PlayerStatus(lv_itPlayer2) != c_playerStatusUnused) && (libPBUI_gv_curateHeroSelectionSetting.lv_lockedIn[lv_itPlayer2] == false)) {
            if ((libPBUI_gv_curateHeroSelectionSetting.lv_selectedHeroRow[lv_itPlayer2] > 0) && (libPBUI_gv_curateHeroSelectionSetting.lv_selectedHeroCol[lv_itPlayer2] > 0)) {
                libPBUI_gv_curateHeroSelectionSetting.lv_lockedIn[lv_itPlayer2] = true;

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmodbase.stormdata/LibPBUI.galaxy:1597

        	lv_itPlayer2 = PlayerGroupNextPlayer(autoFFF27C12_g, lv_itPlayer2);
        	if (lv_itPlayer2<0) { break; }
        	if ((PlayerStatus(lv_itPlayer2) != c_playerStatusUnused)) {
            if ((libPBUI_gv_curateHeroSelectionSetting.lv_lockedIn[lv_itPlayer2] == false)) {
                libPBUI_gf_CurateHSUIAutoPickHeroForPlayer(lv_itPlayer2);

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:1033

    // Automatic Variable Declarations
    // Implementation
    if ((PlayerGroupHasPlayer(libPVEM_gf_PvEPlayersOnHumanTeam(false), lp_player) == true) && (PlayerStatus(lp_player) != c_playerStatusUnused) && (PlayerType(lp_player) != c_playerTypeHostile)) {
        return true;
    }

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:1275

        	lv_itPlayer = PlayerGroupNextPlayer(autoB2DFF775_g, lv_itPlayer);
        	if (lv_itPlayer<0) { break; }
        	if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
            CameraLockInput(lv_itPlayer, true);
            libGame_gv_players[lv_itPlayer].lv_victoryDefeat = c_gameOverVictory;

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:1286

        	lv_itPlayer = PlayerGroupNextPlayer(autoA8114404_g, lv_itPlayer);
        	if (lv_itPlayer<0) { break; }
        	if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
            CameraLockInput(lv_itPlayer, true);
            libGame_gv_players[lv_itPlayer].lv_victoryDefeat = c_gameOverDefeat;

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:1320

    lv_itPlayer = 1;
    for ( ; ( (auto86F1E917_ai >= 0 && lv_itPlayer <= auto86F1E917_ae) || (auto86F1E917_ai < 0 && lv_itPlayer >= auto86F1E917_ae) ) ; lv_itPlayer += auto86F1E917_ai ) {
        if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
            libPVEM_gf_PvEEndGameForPlayer(lv_itPlayer);
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEU.galaxy:247

        	lv_itPlayer = PlayerGroupNextPlayer(autoB913094D_g, lv_itPlayer);
        	if (lv_itPlayer<0) { break; }
        	if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
            lv_playerCount += 1;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEU.galaxy:370

            	lv_itPlayer = PlayerGroupNextPlayer(auto186361F4_g, lv_itPlayer);
            	if (lv_itPlayer<0) { break; }
            	if ((lv_itPlayer != lv_itViewer) && (PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
                lv_itPlayerSlot += 1;
                libPVEU_gv_pvEUICurateHeroSelectionUI.lv_teamPanelRowPlayer[lv_itViewer][lv_itPlayerSlot] = lv_itPlayer;

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEU.galaxy:623

    lv_itPlayer = 1;
    for ( ; ( (autoA4A04CDB_ai >= 0 && lv_itPlayer <= autoA4A04CDB_ae) || (autoA4A04CDB_ai < 0 && lv_itPlayer >= autoA4A04CDB_ae) ) ; lv_itPlayer += autoA4A04CDB_ai ) {
        if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused) && (PlayerType(lv_itPlayer) == c_playerTypeUser) && (libPVEU_gv_pvEUICurateHeroSelectionSetting.lv_lockedIn[lv_itPlayer] == false)) {
            return false;
        }

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEU.galaxy:1301

    // Implementation
    lv_teamMembers = libPVEM_gf_PvEPlayersOnHumanTeam(false);
    if ((PlayerStatus(libCore_gv_oBSERVER_ObserverUIPlayer) != c_playerStatusUnused)) {
        PlayerGroupAdd(lv_teamMembers, libCore_gv_oBSERVER_ObserverUIPlayer);
    }

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEU.galaxy:1759

        	lv_player = PlayerGroupNextPlayer(autoDD982436_g, lv_player);
        	if (lv_player<0) { break; }
        	if ((PlayerStatus(lv_player) == c_playerStatusUnused)) {
            TextExpressionSetToken("Param/Expression/lib_PVEU_6E3CE6F2", "A", IntToText(lv_player));
            libPVEU_gf_PvEUICurateHSUIDebugMessage(TextExpressionAssemble("Param/Expression/lib_PVEU_6E3CE6F2"));

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEU.galaxy:1862

        	lv_itPlayer = PlayerGroupNextPlayer(auto48837893_g, lv_itPlayer);
        	if (lv_itPlayer<0) { break; }
        	if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused) && (libPVEU_gv_pvEUICurateHeroSelectionSetting.lv_lockedIn[lv_itPlayer] == false)) {
            if ((libPVEU_gv_pvEUICurateHeroSelectionSetting.lv_selectedHeroRow[lv_itPlayer] > 0) && (libPVEU_gv_pvEUICurateHeroSelectionSetting.lv_selectedHeroCol[lv_itPlayer] > 0)) {
                libPVEU_gv_pvEUICurateHeroSelectionSetting.lv_lockedIn[lv_itPlayer] = true;

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEU.galaxy:1875

        	lv_itPlayer = PlayerGroupNextPlayer(autoE702779A_g, lv_itPlayer);
        	if (lv_itPlayer<0) { break; }
        	if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
            if ((libPVEU_gv_pvEUICurateHeroSelectionSetting.lv_lockedIn[lv_itPlayer] == false)) {
                libPVEU_gf_PvEUICurateHSUIAutoPickHeroForPlayer(lv_itPlayer);

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

    lv_player = 1;
    for ( ; ( (auto6CA1D7F5_ai >= 0 && lv_player <= auto6CA1D7F5_ae) || (auto6CA1D7F5_ai < 0 && lv_player >= auto6CA1D7F5_ae) ) ; lv_player += auto6CA1D7F5_ai ) {
        if (((PlayerStatus(lv_player) == c_playerStatusLeft) || (libAIAI_gf_HeroAIIsAIEnabledForPlayer(lv_player) == true))) {
            AIDisableForPlayer(lv_player);
            UnitBehaviorRemove(libGame_gv_players[lv_player].lv_heroUnit, "LunarFestivalIssueMoveOrder", 1);

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:560

    lv_player = 1;
    for ( ; ( (auto5EDAD4C3_ai >= 0 && lv_player <= auto5EDAD4C3_ae) || (auto5EDAD4C3_ai < 0 && lv_player >= auto5EDAD4C3_ae) ) ; lv_player += auto5EDAD4C3_ai ) {
        if ((PlayerStatus(lv_player) != c_playerStatusUnused) && (libIGHS_gv_shuffleSettings.lv_players[lv_player].lv_isLockedIn == false)) {
            return false;
        }

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:1048

    lv_itPlayer2 = 1;
    for ( ; ( (auto1BEB21DC_ai >= 0 && lv_itPlayer2 <= auto1BEB21DC_ae) || (auto1BEB21DC_ai < 0 && lv_itPlayer2 >= auto1BEB21DC_ae) ) ; lv_itPlayer2 += auto1BEB21DC_ai ) {
        if ((PlayerStatus(lv_itPlayer2) != c_playerStatusUnused) && (PlayerType(lv_itPlayer2) != c_playerTypeUser)) {
            libIGHS_gf_SelectPickOptionforPlayer(lv_itPlayer2, RandomInt(1, libIGHS_gv_aRM_TeamComp_PickHeroHeroesCount_C));
            libIGHS_gf_LockUnlockHeroChoice(true, lv_itPlayer2);

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:1232

            	if (lv_viewer<0) { break; }
            	lv_displayColumn = libIGHS_gf_GetHeroPickDisplayColumn(lv_viewer, lv_updatedPlayer);
            if ((PlayerStatus(lv_updatedPlayer) == c_playerStatusUnused)) {
                DialogControlSetVisible(libIGHS_gv_shuffleUI.lv_playerHeroPanelPerPlayer[lv_displayColumn], PlayerGroupSingle(lv_viewer), false);
                continue;

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:1369


    // Implementation
    if ((libGame_gf_TeamNumberOfPlayer(lp_player) == libGame_gv_teamOrderIndex_C) && (PlayerStatus(libCore_gv_oBSERVER_ObserverUIPlayer) != c_playerStatusUnused)) {
        PlayerGroupAdd(lv_teamMembers, libCore_gv_oBSERVER_ObserverUIPlayer);
    }

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:1715

    lv_itPlayer2 = 1;
    for ( ; ( (autoBAE0BC4B_ai >= 0 && lv_itPlayer2 <= autoBAE0BC4B_ae) || (autoBAE0BC4B_ai < 0 && lv_itPlayer2 >= autoBAE0BC4B_ae) ) ; lv_itPlayer2 += autoBAE0BC4B_ai ) {
        if ((PlayerStatus(lv_itPlayer2) != c_playerStatusUnused)) {
            if ((libIGHS_gv_shuffleSettings.lv_players[lv_itPlayer2].lv_currentOptionSelected == 0)) {
                libIGHS_gf_SelectPickOptionforPlayer(lv_itPlayer2, RandomInt(1, libIGHS_gv_aRM_TeamComp_PickHeroHeroesCount_C));

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:1732

    lv_itPlayer2 = 1;
    for ( ; ( (autoB83ACDBA_ai >= 0 && lv_itPlayer2 <= autoB83ACDBA_ae) || (autoB83ACDBA_ai < 0 && lv_itPlayer2 >= autoB83ACDBA_ae) ) ; lv_itPlayer2 += autoB83ACDBA_ai ) {
        if ((PlayerStatus(lv_itPlayer2) != c_playerStatusUnused)) {
            libIGHS_gf_ShowHidePlayersHeroCutscene(lv_itPlayer2, true);
        }

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

    lv_currentPlayer = 1;
    for ( ; ( (auto622CE5EF_ai >= 0 && lv_currentPlayer <= auto622CE5EF_ae) || (auto622CE5EF_ai < 0 && lv_currentPlayer >= auto622CE5EF_ae) ) ; lv_currentPlayer += auto622CE5EF_ai ) {
        if ((PlayerStatus(lv_currentPlayer) != c_playerStatusUnused)) {
            if ((PlayerType(lv_currentPlayer) != c_playerTypeComputer) && (PlayerStatus(lv_currentPlayer) != c_playerStatusLeft)) {
            }

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

    for ( ; ( (auto622CE5EF_ai >= 0 && lv_currentPlayer <= auto622CE5EF_ae) || (auto622CE5EF_ai < 0 && lv_currentPlayer >= auto622CE5EF_ae) ) ; lv_currentPlayer += auto622CE5EF_ai ) {
        if ((PlayerStatus(lv_currentPlayer) != c_playerStatusUnused)) {
            if ((PlayerType(lv_currentPlayer) != c_playerTypeComputer) && (PlayerStatus(lv_currentPlayer) != c_playerStatusLeft)) {
            }
            else {

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

    lv_playerIndex = 1;
    for ( ; lv_playerIndex <= autoF78DF6E2_ae ; lv_playerIndex += 1 ) {
        if ((libGame_gv_players[lv_playerIndex].lv_faction == lp_faction) && (PlayerStatus(lv_playerIndex) == c_playerStatusActive) && (PlayerType(lv_playerIndex) == c_playerTypeUser)) {
            return true;
        }

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


    if ((lp_type == 1)) {
        if ((PlayerStatus(lp_trigPlayer) == c_playerStatusActive) && (PlayerType(lp_trigPlayer) == c_playerTypeUser) && (libAIAI_gv_aIHeroes[lp_trigPlayer].lv_aIEnabled == false)) {
            return true;
        }

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

    }
    else {
        if ((PlayerStatus(lp_trigPlayer) == c_playerStatusActive) && (PlayerType(lp_trigPlayer) == c_playerTypeUser) && (libAIAI_gv_aIHeroes[lp_trigPlayer].lv_aIEnabled == false)) {
            return false;
        }

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


    // Implementation
    if (((PlayerType(lp_player) == c_playerTypeComputer) || (PlayerStatus(lp_player) == c_playerStatusLeft))) {
        lv_heroComplexity = CatalogFieldValueGetAsInt(c_gameCatalogHero, libCore_gf_GetHeroFromIndex(lp_heroIndex), "AIComplexityTier", lp_player);
        if ((lv_heroComplexity == libNtve_ge_AIComplexityTier_Unused)) {

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

    lv_itPlayer = 1;
    for ( ; ( (auto4A9D701E_ai >= 0 && lv_itPlayer <= auto4A9D701E_ae) || (auto4A9D701E_ai < 0 && lv_itPlayer >= auto4A9D701E_ae) ) ; lv_itPlayer += auto4A9D701E_ai ) {
        if ((PlayerStatus(lv_itPlayer) == c_playerStatusActive) && (PlayerType(lv_itPlayer) == c_playerTypeUser) && (libGame_gv_players[lv_itPlayer].lv_playerIgnoresAFKSystem == false)) {
            TimerStart(libGame_gv_afk_PlayerAfkWarningTimer[lv_itPlayer], libGame_gv_afk_AfkWarningTimerDuration_C, false, c_timeGame);
        }

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

    // Implementation
    if ((libGame_gv_afk_AfkDetectionSystemEnabled == true)) {
        if ((PlayerStatus(lp_player) == c_playerStatusActive) && (PlayerType(lp_player) == c_playerTypeUser)) {
            TextExpressionSetToken("Param/Expression/lib_Game_9D7B4265", "A", PlayerName(lp_player));
            UIDisplayMessage(PlayerGroupAlliance(c_playerGroupAlly, lp_player), c_messageAreaSubtitle, TextExpressionAssemble("Param/Expression/lib_Game_9D7B4265"));

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

    lv_itPlayer = 1;
    for ( ; ( (autoE9241D6A_ai >= 0 && lv_itPlayer <= autoE9241D6A_ae) || (autoE9241D6A_ai < 0 && lv_itPlayer >= autoE9241D6A_ae) ) ; lv_itPlayer += autoE9241D6A_ai ) {
        if ((PlayerStatus(lv_itPlayer) == c_playerStatusActive) && (PlayerType(lv_itPlayer) == c_playerTypeUser) && (libGame_gv_players[lv_itPlayer].lv_playerIgnoresAFKSystem == false)) {
            TimerStart(libGame_gv_afk_PlayerAfkWarningTimer[lv_itPlayer], libGame_gv_afkBrawl_AfkWarningTimerDuration_C, false, c_timeGame);
        }

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

    lv_playerIndex = 1;
    for ( ; ( (auto27F3DF11_ai >= 0 && lv_playerIndex <= auto27F3DF11_ae) || (auto27F3DF11_ai < 0 && lv_playerIndex >= auto27F3DF11_ae) ) ; lv_playerIndex += auto27F3DF11_ai ) {
        if ((PlayerStatus(lv_playerIndex) != c_playerStatusUnused) && (libGame_gv_players[lv_playerIndex].lv_heroIndex != 0)) {
            PlayerSetHero(lv_playerIndex, libCore_gf_GetHeroFromIndex(libGame_gv_players[lv_playerIndex].lv_heroIndex));
        }

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

            	lv_itPlayer = PlayerGroupNextPlayer(auto06C7D5AE_g, lv_itPlayer);
            	if (lv_itPlayer<0) { break; }
            	if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
                CameraLockInput(lv_itPlayer, true);
                libGame_gv_players[lv_itPlayer].lv_victoryDefeat = c_gameOverVictory;

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

            	lv_itPlayer = PlayerGroupNextPlayer(auto0404A1D9_g, lv_itPlayer);
            	if (lv_itPlayer<0) { break; }
            	if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
                CameraLockInput(lv_itPlayer, true);
                libGame_gv_players[lv_itPlayer].lv_victoryDefeat = c_gameOverVictory;

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

            	lv_itPlayer = PlayerGroupNextPlayer(auto58EC5D3D_g, lv_itPlayer);
            	if (lv_itPlayer<0) { break; }
            	if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
                CameraLockInput(lv_itPlayer, true);
                libGame_gv_players[lv_itPlayer].lv_victoryDefeat = c_gameOverDefeat;

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

            	lv_itPlayer = PlayerGroupNextPlayer(auto75136350_g, lv_itPlayer);
            	if (lv_itPlayer<0) { break; }
            	if ((lv_itPlayer > 0) && (lv_itPlayer <= libCore_gv_bALMaxPlayers) && (PlayerStatus(lv_itPlayer) != c_playerStatusUnused)) {
                libGame_gf_EndGameForPlayerStorm(lv_itPlayer);
            }

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

    lv_player = 1;
    for ( ; ( (autoA12230EB_ai >= 0 && lv_player <= autoA12230EB_ae) || (autoA12230EB_ai < 0 && lv_player >= autoA12230EB_ae) ) ; lv_player += autoA12230EB_ai ) {
        if ((PlayerStatus(lv_player) != c_playerStatusUnused) && (libGame_gv_players[lv_player].lv_faction == libGame_gv_players[lp_choosingPlayer].lv_faction) && (libGame_gv_players[lv_player].lv_heroIndex != 0)) {
            lv_playerRole = libGame_gv_players[lv_player].lv_heroData.lv_expandedRole;
            lv_teamRoles[lv_playerRole] += 1;

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

    lv_itPlayer = 1;
    for ( ; ( (auto1B5F60C8_ai >= 0 && lv_itPlayer <= auto1B5F60C8_ae) || (auto1B5F60C8_ai < 0 && lv_itPlayer >= auto1B5F60C8_ae) ) ; lv_itPlayer += auto1B5F60C8_ai ) {
        if ((PlayerStatus(lv_itPlayer) == c_playerStatusUnused)) {
            continue;
        }

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

    lv_itPlayer = 1;
    for ( ; ( (autoD146BB97_ai >= 0 && lv_itPlayer <= autoD146BB97_ae) || (autoD146BB97_ai < 0 && lv_itPlayer >= autoD146BB97_ae) ) ; lv_itPlayer += autoD146BB97_ai ) {
        if ((PlayerStatus(lv_itPlayer) != c_playerStatusUnused) && (PlayerType(lv_itPlayer) == c_playerTypeUser)) {
            if (((libStEx_gf_InTrainingMode() == true) || (libStEx_gf_InPracticeMode() == true))) {
                PlayerGroupAdd(libStEx_gv_sEMMIntroPlayersWatching, lv_itPlayer);

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

    lv_itPlayer = 1;
    for ( ; ( (autoC8AF2A66_ai >= 0 && lv_itPlayer <= autoC8AF2A66_ae) || (autoC8AF2A66_ai < 0 && lv_itPlayer >= autoC8AF2A66_ae) ) ; lv_itPlayer += autoC8AF2A66_ai ) {
        if ((PlayerStatus(lv_itPlayer) == c_playerStatusActive) && (PlayerType(lv_itPlayer) == c_playerTypeUser)) {
            lv_count += 1;
        }

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

        lv_itPlayer = 1;
        for ( ; ( (autoF8F6748A_ai >= 0 && lv_itPlayer <= autoF8F6748A_ae) || (autoF8F6748A_ai < 0 && lv_itPlayer >= autoF8F6748A_ae) ) ; lv_itPlayer += autoF8F6748A_ai ) {
            if ((PlayerStatus(lv_itPlayer) == c_playerStatusActive) && (PlayerType(lv_itPlayer) == c_playerTypeUser)) {
                libStEx_gv_sE_Player = lv_itPlayer;
                break;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:705

    lv_player = 1;
    for ( ; ( (auto01159F25_ai >= 0 && lv_player <= auto01159F25_ae) || (auto01159F25_ai < 0 && lv_player >= auto01159F25_ae) ) ; lv_player += auto01159F25_ai ) {
        if ((PlayerStatus(lv_player) == c_playerStatusUnused)) {
            continue;
        }

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

        	auto288FD252_var = PlayerGroupNextPlayer(auto288FD252_g, auto288FD252_var);
        	if (auto288FD252_var<0) { break; }
        	if (((PlayerStatus(auto288FD252_var) != c_playerStatusUnused) && (PlayerSkin(auto288FD252_var) != libGame_gv_players[auto288FD252_var].lv_skinData.lv_skinID))) {
            PlayerSetSkin(auto288FD252_var, libGame_gv_players[auto288FD252_var].lv_skinData.lv_skinID);
        }

mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmodbase.stormdata/LibMLBD.galaxy:657

    lv_itPlayer = 1;
    for ( ; ( (auto750ED470_ai >= 0 && lv_itPlayer <= auto750ED470_ae) || (auto750ED470_ai < 0 && lv_itPlayer >= auto750ED470_ae) ) ; lv_itPlayer += auto750ED470_ai ) {
        if (((PlayerType(lv_itPlayer) != c_playerTypeUser) || (PlayerStatus(lv_itPlayer) != c_playerStatusActive))) {
            continue;
        }

mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmodbase.stormdata/LibMLBD.galaxy:2886

    lv_itPlayer = 1;
    for ( ; ( (auto3A5FF286_ai >= 0 && lv_itPlayer <= auto3A5FF286_ae) || (auto3A5FF286_ai < 0 && lv_itPlayer >= auto3A5FF286_ae) ) ; lv_itPlayer += auto3A5FF286_ai ) {
        if ((PlayerStatus(lv_itPlayer) == c_playerStatusActive) && (PlayerType(lv_itPlayer) == c_playerTypeUser)) {
            libMLBD_gf_MMBOEUpdateAmbience(lv_itPlayer);
        }

mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmodbase.stormdata/LibBBAY.galaxy:631

    lv_itPlayer = 1;
    for ( ; ( (auto64E567D2_ai >= 0 && lv_itPlayer <= auto64E567D2_ae) || (auto64E567D2_ai < 0 && lv_itPlayer >= auto64E567D2_ae) ) ; lv_itPlayer += auto64E567D2_ai ) {
        if ((PlayerStatus(lv_itPlayer) != c_playerStatusActive)) {
            continue;
        }

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2123

                        	lv_itPlayer = PlayerGroupNextPlayer(auto2D80A7A9_g, lv_itPlayer);
                        	if (lv_itPlayer<0) { break; }
                        	if ((PlayerStatus(lv_itPlayer) == c_playerStatusActive)) {
                            PlayerGroupAdd(lv_pingPlayers, lv_itPlayer);
                        }

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:2138

                        	lv_itPlayer = PlayerGroupNextPlayer(autoC4E8C57C_g, lv_itPlayer);
                        	if (lv_itPlayer<0) { break; }
                        	if ((PlayerStatus(lv_itPlayer) == c_playerStatusActive)) {
                            PlayerGroupAdd(lv_pingPlayers, lv_itPlayer);
                        }

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

    lv_itPlayer = 1;
    for ( ; ( (auto2F856B69_ai >= 0 && lv_itPlayer <= auto2F856B69_ae) || (auto2F856B69_ai < 0 && lv_itPlayer >= auto2F856B69_ae) ) ; lv_itPlayer += auto2F856B69_ai ) {
        if ((PlayerStatus(lv_itPlayer) == c_playerStatusActive) && (PlayerType(lv_itPlayer) == c_playerTypeUser)) {
            libMSHE_gf_MMBOEUpdateAmbience(lv_itPlayer);
        }

mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmodbase.stormdata/LibMTOD.galaxy:1046

    lv_itPlayer = 1;
    for ( ; ( (autoF0F401C7_ai >= 0 && lv_itPlayer <= autoF0F401C7_ae) || (autoF0F401C7_ai < 0 && lv_itPlayer >= autoF0F401C7_ae) ) ; lv_itPlayer += autoF0F401C7_ai ) {
        if ((PlayerStatus(lv_itPlayer) != c_playerStatusActive)) {
            continue;
        }

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

        lv_dialogPlayer = PlayerGroupNextPlayer(auto6E437A13_g, lv_dialogPlayer);
        if (lv_dialogPlayer < 0) { break; }
        if ((PlayerType(lv_dialogPlayer) == c_playerTypeUser) && (PlayerStatus(lv_dialogPlayer) == c_playerStatusActive)) {
            PlayerGroupAdd(lv_dialogPlayerGroup, lv_dialogPlayer);
        }

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

        }

        if ((PlayerGroupHasPlayer(libLbty_gv_meleeSurrender_PlayersSurrendering, lv_player) == true) && ((PlayerStatus(lv_player) != c_playerStatusActive) || (AIGivingUp(lv_player) == false))) {
            PlayerGroupRemove(libLbty_gv_meleeSurrender_PlayersSurrendering, lv_player);
            DialogDestroy(libLbty_gv_meleeSurrender_Dialog[lv_player]);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:10521

        lv_indexPlayer = PlayerGroupNextPlayer(auto0346F589_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerStatus(lv_indexPlayer) == c_playerStatusLeft)) {
            continue;
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:10593

        lv_indexPlayer = PlayerGroupNextPlayer(auto6088D53C_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerStatus(lv_indexPlayer) == c_playerStatusLeft)) {
            continue;
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:10683

    // Automatic Variable Declarations
    // Implementation
    if ((PlayerStatus(lp_player) != c_playerStatusActive)) {
        return false;
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:12325

                lv_indexPlayer = PlayerGroupNextPlayer(auto72F1BEA2_g, lv_indexPlayer);
                if (lv_indexPlayer < 0) { break; }
                if ((PlayerStatus(lv_indexPlayer) == c_playerStatusLeft)) {
                    libNtve_gf_SetAllianceBetweenTwoPlayerGroups(PlayerGroupSingle(lv_indexPlayer), lv_itPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionControlAndSpending);
                }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:29872

        lv_player = PlayerGroupNextPlayer(auto4B8F39D4_g, lv_player);
        if (lv_player < 0) { break; }
        if ((PlayerStatus(lv_player) == c_playerStatusActive)) {
            return true;
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:7464

        lv_indexPlayer = PlayerGroupNextPlayer(autoF7A16B2C_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((lv_indexPlayer > libCOOC_gv_cCC_MAXCOMMANDERS_PVE) && (PlayerStatus(lv_indexPlayer) == c_playerStatusUnused)) {
            libCOMU_gv_cT_PolarityEnemies[lv_polarityPlayer] = lv_indexPlayer;
            PlayerSetColorIndex(lv_indexPlayer, libCOMI_gf_EnemyPlayerColor(), true);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:3900

        lv_indexPlayer = PlayerGroupNextPlayer(autoE52C82E9_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser) && (PlayerStatus(lv_indexPlayer) == c_playerStatusActive)) {
            libNtve_gf_SetUpgradeLevelForPlayer(lv_indexPlayer, "HunterSeeker", 1);
            libNtve_gf_SetUpgradeLevelForPlayer(lv_indexPlayer, "YamatoCannon", 1);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:5634

        lv_indexPlayer = PlayerGroupNextPlayer(auto0E6D29CC_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerStatus(lv_indexPlayer) == c_playerStatusActive) && (libCOOC_gf_PlayerIsCommander(lv_indexPlayer) == true)) {
            PlayerGroupAdd(libCOOC_gv_cC_NondefeatedPlayerGroup, lv_indexPlayer);
        }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:5370

        lv_indexPlayer = PlayerGroupNextPlayer(auto29524B7D_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser) && (PlayerStatus(lv_indexPlayer) == c_playerStatusActive)) {
            libNtve_gf_SetUpgradeLevelForPlayer(lv_indexPlayer, "BansheeCloak", 1);
            libNtve_gf_SetUpgradeLevelForPlayer(lv_indexPlayer, "PersonalCloaking", 1);

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:944

        }

        if ((PlayerType(lv_player) == c_playerTypeUser) && (PlayerStatus(lv_player) == c_playerStatusActive)) {
            PlayerSetState(lv_player, c_playerStateFormationMove, true);
        }

mods/warcoop/warmeleeai.sc2modbase.sc2data/TriggerLibs/Orc/Orc.galaxy:605

    int player=GAw3_BOPlayer;
	TriggerCurrentTriggerThreadSetFlags(c_triggerThreadFlagAI, true);
    while(PlayerStatus(player)==c_playerStatusActive){
        AIClearStock(player);
        //AIClearBuildQueue(player);