# Controller Of Player

Grammar — Controller of player p
FlagsNative | Function

Returns the controller of the specified player. This function can return as Computer, User, None, or Neutral.

# Arguments

  • int — Player

Returns — int<preset::PlayerController>

native int PlayerType(int inPlayer);

Category: Player / Player Settings

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:8247

        lv_indexPlayer = PlayerGroupNextPlayer(auto12F40F19_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser) && (PlayerType(lv_indexPlayer) != c_playerTypeNeutral)) {
            TechTreeUpgradeAddLevel(lv_indexPlayer, "TechReactorAI", 1);
            TechTreeUpgradeAddLevel(lv_indexPlayer, "haltech", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:8247

        lv_indexPlayer = PlayerGroupNextPlayer(auto12F40F19_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser) && (PlayerType(lv_indexPlayer) != c_playerTypeNeutral)) {
            TechTreeUpgradeAddLevel(lv_indexPlayer, "TechReactorAI", 1);
            TechTreeUpgradeAddLevel(lv_indexPlayer, "haltech", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:8280

        lv_indexPlayer = PlayerGroupNextPlayer(autoD57400DD_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser)) {
            PlayerSetState(lv_indexPlayer, c_playerStateDisplayInLeaderPanel, false);
            PlayerSetState(lv_indexPlayer, c_playerStateDisplayInViewMenu, false);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:8291

        lv_indexPlayer = PlayerGroupNextPlayer(autoD3898CB1_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser)) {
            PlayerSetState(lv_indexPlayer, c_playerStateShowScore, false);
        }

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/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12722

        lv_indexPlayer = PlayerGroupNextPlayer(auto520078D4_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser)) {
            PlayerSetState(lv_indexPlayer, c_playerStateDisplayInLeaderPanel, false);
            PlayerSetState(lv_indexPlayer, c_playerStateDisplayInViewMenu, false);

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

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

        lv_indexPlayer = PlayerGroupNextPlayer(auto421010EF_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser)) {
            PlayerSetState(lv_indexPlayer, c_playerStateDisplayInLeaderPanel, false);
            PlayerSetState(lv_indexPlayer, c_playerStateDisplayInViewMenu, false);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2106

        lv_indexPlayer = PlayerGroupNextPlayer(autoDF48CB2F_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) == c_playerTypeComputer)) {
            libVCMI_gf_EnableVoidCampaignAIBehaviorForPlayer(lv_indexPlayer);
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6066

    // Conditions
    if (testConds) {
        if (!((PlayerType(UnitGetOwner(EventUnit())) != c_playerTypeUser))) {
            return false;
        }

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: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/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:492

    // Automatic Variable Declarations
    // Implementation
    if ((libPVEB_gf_PBIsValidHumanTeamPlayer(lp_player) == true) && (PlayerType(lp_player) == c_playerTypeUser)) {
        return true;
    }

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/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:1043

    // Automatic Variable Declarations
    // Implementation
    if ((libPVEM_gf_PvEPlayerIsValidHumanTeamPlayer(lp_player) == true) && (PlayerType(lp_player) == c_playerTypeUser)) {
        return true;
    }

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/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/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:1463

    for ( ; lv_talentBuildIndex <= autoB5B4CB0E_ae ; lv_talentBuildIndex += 1 ) {
        lv_aIOnly = CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroName, "TalentAIBuildsArray[" + IntToString((lv_talentBuildIndex - 1)) + "].AIOnly", lp_trigPlayer);
        if ((lv_aIOnly == 1) && (PlayerType(lp_trigPlayer) == c_playerTypeUser)) {
            continue;
        }

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

    // Implementation
    libAIAI_gv_aIHeroes[lp_trigPlayer].lv_pickedTalentBuild = 0;
    if ((PlayerType(lp_trigPlayer) == c_playerTypeUser)) {
        libAIAI_gv_aIHeroes[lp_trigPlayer].lv_pickedTalentBuild = libAIAI_gf_HeroAIDetermineClosestAITalentBuild(lp_trigPlayer);
        if ((libAIAI_gv_aIHeroes[lp_trigPlayer].lv_pickedTalentBuild != 0)) {

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


    // Implementation
    if ((libGame_gv_talents_ActiveChoiceTierForPlayer[lp_trigPlayer] == 4) && (PlayerType(lp_trigPlayer) == c_playerTypeUser)) {
        lv_returnVal = libAIAI_gf_HeroAITrytoPickSpecificTalent(lp_trigPlayer, lp_ultimateTalent);
    }

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:7426

        }

        if ((lp_allowAnyTier == false) && (PlayerType(lp_choosingPlayer) == c_playerTypeComputer) && (libAIAI_gf_HeroAIAIDifficultyLevelShouldUseHero(lp_choosingPlayer, lv_itHeroIndex) == false)) {
            continue;
        }

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

        }

        if ((PlayerType(lp_choosingPlayer) == c_playerTypeComputer) && (libAIAI_gf_HeroAIAIDifficultyLevelShouldUseHero(lp_choosingPlayer, lv_itHeroIndex) == false)) {
            continue;
        }

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

    lv_itPlayer = 1;
    for ( ; ( (autoD4F61831_ai >= 0 && lv_itPlayer <= autoD4F61831_ae) || (autoD4F61831_ai < 0 && lv_itPlayer >= autoD4F61831_ae) ) ; lv_itPlayer += autoD4F61831_ai ) {
        if ((PlayerType(lv_itPlayer) == c_playerTypeComputer) && ((libAIAI_gv_aIHeroes[lv_itPlayer].lv_difficulty == libAIAI_ge_HeroAIDifficulty_HeroAIMedium) || (libAIAI_gv_aIHeroes[lv_itPlayer].lv_difficulty == libAIAI_ge_HeroAIDifficulty_HeroAIVeryHard) || (libAIAI_gv_aIHeroes[lv_itPlayer].lv_difficulty == libAIAI_ge_HeroAIDifficulty_HeroAIElite))) {
            if ((libGame_gv_players[lv_itPlayer].lv_faction == libGame_ge_Faction_Order)) {
                if ((lv_hasPickedRandomAISkinOrder == false)) {

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

        lv_itSkin = 1;
        for ( ; ( (auto2E01BCDC_ai >= 0 && lv_itSkin <= auto2E01BCDC_ae) || (auto2E01BCDC_ai < 0 && lv_itSkin >= auto2E01BCDC_ae) ) ; lv_itSkin += auto2E01BCDC_ai ) {
            if (((PlayerType(lp_choosingPlayer) == c_playerTypeComputer) || (libCore_gf_MetagameDoesPlayerHaveAccessToSkin(lp_choosingPlayer, libCore_gf_DataSkinsGetSkinIndexFromSkinLink(libGame_gv_players[lv_index].lv_heroData.lv_skinArray[lv_itSkin])) == true))) {
                lv_allowedSkinCount += 1;
                DataTableSetInt(false, ("RAND_PickSkin_" + IntToString(lv_allowedSkinCount)), lv_itSkin);

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

        for ( ; ( (auto7695663F_ai >= 0 && lv_itMount <= auto7695663F_ae) || (auto7695663F_ai < 0 && lv_itMount >= auto7695663F_ae) ) ; lv_itMount += auto7695663F_ai ) {
            lv_chosenMountIndex = DataTableGetInt(true, ("Mounts_MountCategory_" + lv_mountCategoryStr + "_Index_" + IntToString(lv_itMount) + "_Index"));
            if ((((PlayerType(lp_choosingPlayer) == c_playerTypeComputer) || (libCore_gf_MetagameDoesPlayerHaveAccessToMount(lp_choosingPlayer, lv_chosenMountIndex) == true)) && (libCore_gf_DataMountMountIsValidForHeroSkin(libGame_gv_players[lp_choosingPlayer].lv_heroIndex, libGame_gv_players[lp_choosingPlayer].lv_selectedSkin, lv_chosenMountIndex) == true))) {
                lv_allowedMountCount += 1;
                DataTableSetInt(false, ("RAND_PickMount_" + IntToString(lv_allowedMountCount)), lv_chosenMountIndex);

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

    libGame_gv_players[lp_player].lv_rosterSlot = lv_slot;
    libGame_gv_players[lp_player].lv_teamPlayerSlot = lv_numberOfPlayersOnTeam;
    if ((PlayerStatus(lp_player) == c_playerStatusActive) && (PlayerType(lp_player) != c_playerTypeComputer)) {
        libGame_gv_players[lp_player].lv_playerStatus = libGame_ge_PlayerStatusStorm_ChoosingaHero;
        CameraPan(lp_player, libGame_gv_players[lp_player].lv_spawnPoint, 0.0, -1, 0.0, false);

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

        }

        if ((lv_itPlayer <= libCore_gv_bALMaxPlayers) && (PlayerStatus(lv_itPlayer) != c_playerStatusUnused) && (PlayerType(lv_itPlayer) != c_playerTypeHostile) && (libGame_gv_players[lv_itPlayer].lv_heroUnit == null)) {
            lv_itManualSpawnHero = 1;
            for ( ; ( (autoA7CE9B09_ai >= 0 && lv_itManualSpawnHero <= autoA7CE9B09_ae) || (autoA7CE9B09_ai < 0 && lv_itManualSpawnHero >= autoA7CE9B09_ae) ) ; lv_itManualSpawnHero += autoA7CE9B09_ai ) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:1712

        lv_deathTime = MinF(MaxF(7.0, (lv_deathTime / 2.0)), 20.0);
    }
    else if ((libStEx_gf_GameIsSinglePlayer() == true) && ((libStEx_gf_InTrainingMode() == true) || (libStEx_gf_InPracticeMode() == true)) && (PlayerType(lp_player) == c_playerTypeUser)) {
        lv_deathTime = MinF(lv_deathTime, 30.0);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:2394

    // Implementation
    lv_heroID = DataTableGetString(true, ("HeroIndex_" + IntToString(lp_heroIndex)));
    if ((PlayerType(lp_player) == c_playerTypeComputer)) {
        return (CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "Flags[AllowAIRandomSelection]", c_playerAny) == 1);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:2398

    }

    if ((PlayerType(lp_player) == c_playerTypeUser) && (CatalogFieldValueGetAsInt(c_gameCatalogHero, lv_heroID, "Flags[AllowHumanRandomSelection]", c_playerAny) == 1)) {
        if (((libCore_gv_dEBUGGameIsOnline == false) || (libCore_gv_sYSGameMode == libCore_ge_GameModes_TryMe) || (libCore_gf_MetagameIsHeroInRotationForPlayer(lp_player, lp_heroIndex) == true) || ((GameIsPractice() == true) && (lv_heroID == CatalogFieldValueGet(c_gameCatalogConfig, "Config", "FreeToPlayPracticeHero", c_playerAny))) || ((libCore_gf_MetagameIsHeroInFreebieSet(lp_heroIndex) == true) && ((GameIsPractice() == true) || (GameIsCooperative() == true))))) {
            return true;

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:631

    lv_i = 1;
    for ( ; ( (autoBAAD8CF8_ai >= 0 && lv_i <= autoBAAD8CF8_ae) || (autoBAAD8CF8_ai < 0 && lv_i >= autoBAAD8CF8_ae) ) ; lv_i += autoBAAD8CF8_ai ) {
        auto3E9EF2A0_val = PlayerType(lv_i);
        if (auto3E9EF2A0_val == c_playerTypeNone) {
            lv_controller = "None";

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

        StatEventAddDataInt(StatEventLastCreated(), "Team", libGame_gf_TeamNumberOfPlayer(lv_i));
        StatEventAddDataString(StatEventLastCreated(), "Controller", lv_controller);
        if ((PlayerType(lv_i) == c_playerTypeUser)) {
            lv_handle = PlayerHandle(lv_i);
            if ((lv_handle != "")) {

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

    lv_heroIndex = 1;
    for ( ; ( (auto7198189B_ai >= 0 && lv_heroIndex <= auto7198189B_ae) || (auto7198189B_ai < 0 && lv_heroIndex >= auto7198189B_ae) ) ; lv_heroIndex += auto7198189B_ai ) {
        if ((libCore_gf_MetagameDoesPlayerHaveAccessToHero(lv_playerIndex, lv_heroIndex) == true) && ((PlayerType(lv_playerIndex) != c_playerTypeComputer) || (libAIAI_gf_HeroAIAIDifficultyLevelShouldUseHero(lv_playerIndex, lv_heroIndex) == true))) {
            TriggerDebugOutput(1, StringToText(DataTableGetString(true, ("HeroIndex_" + IntToString(lv_heroIndex)))), true);
        }

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

        if ((libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagers[lv_itHighestDamager].lv_player >= 1) && (libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagers[lv_itHighestDamager].lv_player <= libCore_gv_bALMaxPlayers)) {
            libNtve_gf_SetDialogItemImage(libUIUI_gv_deathRecap_Panel.lv_highestDamagersImages[lv_itHighestDamager], (CatalogFieldValueGet(c_gameCatalogHero, libGame_gv_players[libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagers[lv_itHighestDamager].lv_player].lv_heroData.lv_heroCatalogLink, "SelectScreenButtonImage", c_playerAny)), libCore_gv_playerGroupFromPlayer[lp_deadPlayer]);
            if ((PlayerType(libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagers[lv_itHighestDamager].lv_player) == c_playerTypeUser)) {
                libNtve_gf_SetDialogItemText(libUIUI_gv_deathRecap_Panel.lv_highestDamagersPlayerNameLabels[lv_itHighestDamager], PlayerName(libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagers[lv_itHighestDamager].lv_player), libCore_gv_playerGroupFromPlayer[lp_deadPlayer]);
                DialogControlSetAnimationState(libUIUI_gv_deathRecap_Panel.lv_highestDamagersAmountLabels[lv_itHighestDamager], libCore_gv_playerGroupFromPlayer[lp_deadPlayer], "HighestDamagerState", "Player");

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/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/volskayamechanics.stormmodbase.stormdata/LibVLSK.galaxy:2220

    lv_i = 1;
    for ( ; ( (auto761D8D73_ai >= 0 && lv_i <= auto761D8D73_ae) || (auto761D8D73_ai < 0 && lv_i >= auto761D8D73_ae) ) ; lv_i += auto761D8D73_ai ) {
        if (((PlayerType(lv_i) == c_playerTypeUser) || (PlayerType(lv_i) == c_playerTypeComputer))) {
            libUIUI_gf_UIDebugPanelSpawnOrSwapHeroForPlayer(libCore_gf_GetIndexFromHero(libGame_gv_players[lv_i].lv_heroData.lv_heroCatalogLink), libGame_gv_players[lv_i].lv_selectedSkin, libGame_gv_players[lv_i].lv_selectedMount, libCore_gf_GetTotalXPForLevel(8), lv_i, lv_i);
        }

mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmodbase.stormdata/LibVLSK.galaxy:2220

    lv_i = 1;
    for ( ; ( (auto761D8D73_ai >= 0 && lv_i <= auto761D8D73_ae) || (auto761D8D73_ai < 0 && lv_i >= auto761D8D73_ae) ) ; lv_i += auto761D8D73_ai ) {
        if (((PlayerType(lv_i) == c_playerTypeUser) || (PlayerType(lv_i) == c_playerTypeComputer))) {
            libUIUI_gf_UIDebugPanelSpawnOrSwapHeroForPlayer(libCore_gf_GetIndexFromHero(libGame_gv_players[lv_i].lv_heroData.lv_heroCatalogLink), libGame_gv_players[lv_i].lv_selectedSkin, libGame_gv_players[lv_i].lv_selectedMount, libCore_gf_GetTotalXPForLevel(8), lv_i, lv_i);
        }

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:1711

        StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_gallPlayer);
        StatEventSend(StatEventLastCreated());
        if ((PlayerType(lv_gallPlayer) == c_playerTypeComputer)) {
            libAIAI_gf_HeroAIEnableAIForPlayer(lv_gallPlayer);
        }

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:1788

    libCore_gf_SetTalentsTierLevels(lv_gallPlayer);
    libCore_gf_SetHeroicTalentTier(lv_gallPlayer);
    if ((PlayerType(lv_gallPlayer) == c_playerTypeComputer)) {
        libAIAI_gf_HeroAIEnableAIForPlayer(lv_gallPlayer);
    }

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:783

        lv_player = PlayerGroupNextPlayer(auto1DA84066_g, lv_player);
        if (lv_player < 0) { break; }
        if ((PlayerType(lv_player) == c_playerTypeComputer) && (AIIsCampaign(lv_player) == false)) {
            lv_meleeAIUsed = true;
            break;

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

        lv_player = PlayerGroupNextPlayer(auto576EC8AD_g, lv_player);
        if (lv_player < 0) { break; }
        if ((PlayerType(lv_player) == c_playerTypeComputer) && (AIIsCampaign(lv_player) == false)) {
            if ((AIGivingUp(lv_player) == true) && (PlayerGroupHasPlayer(libLbty_gv_meleeSurrender_PlayersSurrendering, lv_player) == false) && (PlayerGroupHasPlayer(libLbty_gv_meleeSurrender_PlayersTried, lv_player) == false)) {
                libLbty_gf_MeleeSurrender_AIWantToSurrender(lv_player);

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:2779

    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.sc2modbase.sc2data/LibNovC.galaxy:2244

    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);
            PlayerSetState(lv_indexPlayer, c_playerStateDisplayInViewMenu, false);

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

        lv_indexPlayer = PlayerGroupNextPlayer(auto26F8757F_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) == c_playerTypeUser) && (libNtve_gf_PlayerInCinematicMode(lv_indexPlayer) == false)) {
            return false;
        }

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


    // Implementation
    if ((PlayerType(lp_aIPlayerEnemy) == c_playerTypeNone)) {
        libCOMI_gf_CM_CoopAI_Set_EnemyPlayer(lp_player, PlayerGroupPlayer(libCOOC_gf_HumanPlayers(), 1));
    }

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


    // Implementation
    if ((PlayerType(2) == c_playerTypeNone)) {
        return libCOMI_gf_DifficultyLevelForPlayerCoop(lv_player01);
    }

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

        else {
            if ((lp_model == null)) {
                if ((PlayerType(UnitGetOwner(lp_unit)) == c_playerTypeUser)) {
                    lv_source = TransmissionSourceFromUnit(lp_unit, lv_flashOption, true, "Talk");
                }

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

        libCOMI_gf_CM_DifficultyApplySettings(lv_indexPlayer);
    }
    if ((PlayerType(2) == c_playerTypeComputer)) {
        AIMeleeStart(2);
    }

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

        lv_indexPlayerOuter = PlayerGroupNextPlayer(auto253A2D71_g, lv_indexPlayerOuter);
        if (lv_indexPlayerOuter < 0) { break; }
        if ((PlayerType(lv_indexPlayerOuter) == c_playerTypeUser)) {
            autoA54BC7AF_g = PlayerGroupAll();
            lv_indexPlayerInner = -1;

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

                lv_indexPlayerInner = PlayerGroupNextPlayer(autoA54BC7AF_g, lv_indexPlayerInner);
                if (lv_indexPlayerInner < 0) { break; }
                if ((PlayerType(lv_indexPlayerInner) == c_playerTypeNone) && (libNtve_gf_PlayerIsEnemy(lv_indexPlayerInner, lv_indexPlayerOuter, libNtve_ge_PlayerRelation_Ally) == true)) {
                    libNtve_gf_SetAlliance(lv_indexPlayerOuter, lv_indexPlayerInner, libNtve_ge_AllianceSetting_AllyWithSharedVisionControlAndSpending);
                }

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

        lv_indexPlayer = PlayerGroupNextPlayer(autoB36D32D9_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) == c_playerTypeUser) && (libCOOC_gf_CC_CommanderGlobalCastUnitType(libCOOC_gf_ActiveCommanderForPlayer(lv_indexPlayer)) != null)) {
            libCOMI_gf_CM_GlobalCasterCreateUnit(lv_indexPlayer);
        }

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

    lv_player = 3;
    for ( ; ( (auto8D220E46_ai >= 0 && lv_player <= auto8D220E46_ae) || (auto8D220E46_ai < 0 && lv_player >= auto8D220E46_ae) ) ; lv_player += auto8D220E46_ai ) {
        if ((PlayerType(lv_player) == c_playerTypeComputer)) {
            CatalogFieldValueSet(c_gameCatalogUnit, "MutatorAmonRaynor", "LifeMax", lv_player, FixedToString(lv_raynorLife, c_fixedPrecisionAny));
            CatalogFieldValueSet(c_gameCatalogUnit, "MutatorAmonRaynor", "LifeStart", lv_player, FixedToString(lv_raynorLife, c_fixedPrecisionAny));

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:4363

        lv_indexPlayer = PlayerGroupNextPlayer(auto421010EF_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser)) {
            PlayerSetState(lv_indexPlayer, c_playerStateDisplayInLeaderPanel, false);
            PlayerSetState(lv_indexPlayer, c_playerStateDisplayInViewMenu, false);

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

        lv_indexPlayer = PlayerGroupNextPlayer(auto2C0024A3_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) == c_playerTypeNone)) {
            PlayerSetDifficulty(lv_indexPlayer, 2);
        }

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

        lv_indexPlayer = PlayerGroupNextPlayer(auto5E0D8A40_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) == c_playerTypeNone)) {
            PlayerSetDifficulty(lv_indexPlayer, 2);
        }

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

        lv_indexPlayer = PlayerGroupNextPlayer(auto2CDBB139_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser)) {
            continue;
        }

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

        lv_indexPlayer = 1;
        for ( ; ( (autoD44F0722_ai >= 0 && lv_indexPlayer <= autoD44F0722_ae) || (autoD44F0722_ai < 0 && lv_indexPlayer >= autoD44F0722_ae) ) ; lv_indexPlayer += autoD44F0722_ai ) {
            if (((lv_indexPlayer == 1) || (lv_indexPlayer == 2) || (PlayerType(lv_indexPlayer) == c_playerTypeUser))) {
                PlayerGroupAdd(libCOOC_gv_cC_HumanPlayerGroup, lv_indexPlayer);
            }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:680

        }

        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser)) {
            libCOUI_gf_CU_CommanderPlayerReadySet(lv_indexPlayer, true);
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:1091

    libCOOC_gf_CC_UpdateTechStates(lp_player);
    libCOUI_gf_CU_PrestigeSelect(lp_player, DataTableGetInt(true, libCOOC_gf_CC_PrestigeCommanderTableKey(lp_chosenCommander, lp_player)));
    if ((PlayerType(lp_player) == c_playerTypeUser)) {
        libCOUI_gf_CU_CommanderPlayerReadySet(lp_player, false);
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:6648

        if ((EventDialogControl() == libCOUI_gv_cU_CommanderButton[lv_commIndex])) {
            if ((libCOUI_gv_cU_CommanderSelection[libCOOC_gf_CC_PlayerAlly(EventPlayer())] == libCOUI_gv_cU_CommanderList[lv_commIndex])) {
                if ((PlayerType(libCOOC_gf_CC_PlayerAlly(EventPlayer())) != c_playerTypeUser)) {
                    libCOUI_gf_CU_CommanderSelect(libCOOC_gf_CC_PlayerAlly(EventPlayer()), libCOUI_gv_cU_CommanderSelection[EventPlayer()]);
                    libCOUI_gf_CU_CommanderSelect(EventPlayer(), libCOUI_gv_cU_CommanderList[lv_commIndex]);

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/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:5861

        lv_indexPlayer = PlayerGroupNextPlayer(auto520078D4_g, lv_indexPlayer);
        if (lv_indexPlayer < 0) { break; }
        if ((PlayerType(lv_indexPlayer) != c_playerTypeUser)) {
            PlayerSetState(lv_indexPlayer, c_playerStateDisplayInLeaderPanel, false);
            PlayerSetState(lv_indexPlayer, c_playerStateDisplayInViewMenu, false);

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

        lv_player = PlayerGroupNextPlayer(auto1CD2FA51_g, lv_player);
        if (lv_player < 0) { break; }
        if ((PlayerType(lv_player) == c_playerTypeHostile)) {
            PlayerSetState(lv_player, c_playerStateAlwaysShowUnitTooltip, true);
        }

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

            PlayerSetState(lv_player, c_playerStateGivesBounty, false);
        }
        if ((PlayerType(lv_player) == c_playerTypeNeutral)) {
            PlayerSetState(lv_player, c_playerStateAlwaysShowUnitTooltip, true);
        }

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/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:634

        libGAwX_gf_SetRaceTechForPlayer(lv_p);
    }
    if ((PlayerType(0) == c_playerTypeNeutral)) {
        VisRevealerCreate(0, RegionEntireMap());
        VisRevealerEnable(VisRevealerLastCreated(), true);

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:639

    }

    if ((PlayerType(15) == c_playerTypeHostile)) {
        VisRevealerCreate(15, RegionEntireMap());
        VisRevealerEnable(VisRevealerLastCreated(), true);

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:693

        lv_itPlayer = PlayerGroupNextPlayer(autoB838FF1C_g, lv_itPlayer);
        if (lv_itPlayer < 0) { break; }
        if ((PlayerType(lv_itPlayer) == c_playerTypeHostile)) {
            PlayerGroupAdd(libGAwX_gv_creepPlayersGroup, lv_itPlayer);
        }

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:773

    }

    if ((PlayerType(lv_playerOld) == c_playerTypeHostile) && (PlayerType(lv_playerNew) != c_playerTypeHostile)) {
        libGAwX_gf_CreepPlayersCreepUnitProcess(EventUnit(), false);
        auto3635791A_ae = libGAwX_gv_creepPlayersSpotsCount;

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:773

    }

    if ((PlayerType(lv_playerOld) == c_playerTypeHostile) && (PlayerType(lv_playerNew) != c_playerTypeHostile)) {
        libGAwX_gf_CreepPlayersCreepUnitProcess(EventUnit(), false);
        auto3635791A_ae = libGAwX_gv_creepPlayersSpotsCount;

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:782

    }

    if ((PlayerType(lv_playerNew) == c_playerTypeHostile) && (PlayerType(lv_playerOld) != c_playerTypeHostile)) {
        libGAwX_gf_CreepPlayersCreepUnitProcess(EventUnit(), true);
    }

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:782

    }

    if ((PlayerType(lv_playerNew) == c_playerTypeHostile) && (PlayerType(lv_playerOld) != c_playerTypeHostile)) {
        libGAwX_gf_CreepPlayersCreepUnitProcess(EventUnit(), true);
    }

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:807

    // Conditions
    if (testConds) {
        if (!((PlayerType(UnitGetOwner(EventUnit())) == c_playerTypeHostile))) {
            return false;
        }

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:862

    // Conditions
    if (testConds) {
        if (!((PlayerType(UnitGetOwner(EventUnit())) == c_playerTypeHostile))) {
            return false;
        }

mods/warcoop/warcoopdata.sc2modbase.sc2data/TriggerLibs/WarCoopData.galaxy:503

        auto8BB4E0A1_var = PlayerGroupNextPlayer(auto8BB4E0A1_g, auto8BB4E0A1_var);
        if (auto8BB4E0A1_var < 0) { break; }
        if ((PlayerType(auto8BB4E0A1_var) != c_playerTypeUser)) {
            PlayerGroupRemove(lv_humanPlayers, auto8BB4E0A1_var);
        }

mods/warcoop/warmeleeai.sc2modbase.sc2data/LibW3AI.galaxy:49

        lv_p = PlayerGroupNextPlayer(autoA26A65A4_g, lv_p);
        if (lv_p < 0) { break; }
        if ((PlayerType(lv_p) == c_playerTypeComputer)) {
            AISetDifficulty(lv_p, c_diffRepairDamage, true);
            AISetDifficulty(lv_p, c_diffEarlyGameRepair, true);

mods/warcoop/warmeleeai.sc2modbase.sc2data/LibW3AI.galaxy:227

        lv_p = PlayerGroupNextPlayer(auto4F971A0B_g, lv_p);
        if (lv_p < 0) { break; }
        if ((PlayerType(lv_p) == c_playerTypeComputer)) {
            AISetDifficulty(lv_p, c_diffAllowResourceReq, false);
        }

mods/warcoop/warmeleeai.sc2modbase.sc2data/LibW3AI.galaxy:287

    // Conditions
    if (testConds) {
        if (!((PlayerType(lv_p) == c_playerTypeComputer))) {
            return false;
        }