# AIEnemyBuildingsOnlyOnOtherIslands

FlagsNative

# Arguments

  • int — player

Returns — bool

native bool AIEnemyBuildingsOnlyOnOtherIslands(int player);

Category: Unclassified

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeBuildAI.galaxy:552

            }
        }
        else if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            AISetUserInt(player, c_lateGameBuildType, e_buildType_Air);
        }

mods/liberty.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:285

        AISetSubStateChance( e_hdBuildIndex_PLateSpecial_Mixed,                 35 ); //  100
    } else if (lateGameType == e_buildType_Air) {
        if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            AISetSubStateChance( e_hdBuildIndex_PLateAir_ZSSAir,                     5 ); //    5
            AISetSubStateChance( e_hdBuildIndex_PLateAir_Voidray,                   15 ); //   20

mods/liberty.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:538

    }
    else if (currentLateGame == e_buildType_Air) {
        if (!AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            if (AITechCount(player, c_PB_Stargate, c_techCountCompleteOnly) < 2) {
                needsNewBuild = true;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:775

        pickNewArmy = true;
    }
    else if (AIEnemyBuildingsOnlyOnOtherIslands(player) && (lateGameType != e_buildType_Air)) {
        // if the enemy is hiding on an island and we're not using an air build, switch to air
        pickNewArmy = true;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:1117

    fixed airMultiplier = 1.0;

    if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
        // when sieging an island limit making ground counters
        groundMultiplier = 0.33;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:295

        AISetSubStateChance( e_hdBuildIndex_TLateSpecial_MechBansheeRaven,  35 ); //  100
    } else if (lateGameType == e_buildType_Air) {
        if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            AISetSubStateChance( e_hdBuildIndex_TLateAir_VikingBC,              75 ); //   75
            AISetSubStateChance( e_hdBuildIndex_TLateAir_MixedAir,              25 ); //  100

mods/liberty.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:570

    }
    else if (currentLateGame == e_buildType_Air) {
        if (!AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            if (AITechCount(player, c_TB_Starport, c_techCountCompleteOnly) < 2) {
                needsNewBuild = true;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:807

        pickNewArmy = true;
    }
    else if (AIEnemyBuildingsOnlyOnOtherIslands(player) && (lateGameType != e_buildType_Air)) {
        // if the enemy is hiding on an island and we're not using an air build, switch to air
        pickNewArmy = true;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:1192

    fixed airMultiplier = 1.0;

    if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
        // when sieging an island limit making ground counters
        groundMultiplier = 0.33;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:274

        AISetSubStateChance( e_hdBuildIndex_ZLateSpecial_InfestorFocus,         100 ); //   100
    } else if (lateGameType == e_buildType_Air) {
        if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            AISetSubStateChance( e_hdBuildIndex_ZLateAir_BroodRoachHydra,           10 ); //   10
            AISetSubStateChance( e_hdBuildIndex_ZLateAir_BroodRoachInfest,           5 ); //   15

mods/liberty.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:524

    }
    else if (currentLateGame == e_buildType_Air) {
        if (!AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            if (AITechCount(player, c_ZB_Spire_Alias, c_techCountCompleteOnly) <= 0) {
                needsNewBuild = true;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:764

        pickNewArmy = true;
    }
    else if (AIEnemyBuildingsOnlyOnOtherIslands(player) && (lateGameType != e_buildType_Air)) {
        // if the enemy is hiding on an island and we're not using an air build, switch to air
        pickNewArmy = true;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:1130

    fixed airMultiplier = 1.0;

    if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
        // when sieging an island limit making ground counters
        groundMultiplier = 0.33;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:285

        AISetSubStateChance( e_hdBuildIndex_PLateSpecial_Mixed,                 35 ); //  100
    } else if (lateGameType == e_buildType_Air) {
        if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            AISetSubStateChance( e_hdBuildIndex_PLateAir_ZSSAir,                     5 ); //    5
            AISetSubStateChance( e_hdBuildIndex_PLateAir_Voidray,                   15 ); //   20

mods/swarm.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:538

    }
    else if (currentLateGame == e_buildType_Air) {
        if (!AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            if (AITechCount(player, c_PB_Stargate, c_techCountCompleteOnly) < 2) {
                needsNewBuild = true;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:775

        pickNewArmy = true;
    }
    else if (AIEnemyBuildingsOnlyOnOtherIslands(player) && (lateGameType != e_buildType_Air)) {
        // if the enemy is hiding on an island and we're not using an air build, switch to air
        pickNewArmy = true;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:1112

    fixed airMultiplier = 1.0;

    if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
        // when sieging an island limit making ground counters
        groundMultiplier = 0.33;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:295

        AISetSubStateChance( e_hdBuildIndex_TLateSpecial_MechBansheeRaven,  35 ); //  100
    } else if (lateGameType == e_buildType_Air) {
        if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            AISetSubStateChance( e_hdBuildIndex_TLateAir_VikingBC,              75 ); //   75
            AISetSubStateChance( e_hdBuildIndex_TLateAir_MixedAir,              25 ); //  100

mods/swarm.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:570

    }
    else if (currentLateGame == e_buildType_Air) {
        if (!AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            if (AITechCount(player, c_TB_Starport, c_techCountCompleteOnly) < 2) {
                needsNewBuild = true;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:807

        pickNewArmy = true;
    }
    else if (AIEnemyBuildingsOnlyOnOtherIslands(player) && (lateGameType != e_buildType_Air)) {
        // if the enemy is hiding on an island and we're not using an air build, switch to air
        pickNewArmy = true;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:1183

    fixed airMultiplier = 1.0;

    if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
        // when sieging an island limit making ground counters
        groundMultiplier = 0.33;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:278

        AISetSubStateChance( e_hdBuildIndex_ZLateSpecial_SwarmHostInfestor,     35 ); //  100
    } else if (lateGameType == e_buildType_Air) {
        if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            AISetSubStateChance( e_hdBuildIndex_ZLateAir_BroodRoachHydra,           10 ); //   10
            AISetSubStateChance( e_hdBuildIndex_ZLateAir_BroodRoachInfest,           5 ); //   15

mods/swarm.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:534

    }
    else if (currentLateGame == e_buildType_Air) {
        if (!AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            if (AITechCount(player, c_ZB_Spire_Alias, c_techCountCompleteOnly) <= 0) {
                needsNewBuild = true;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:774

        pickNewArmy = true;
    }
    else if (AIEnemyBuildingsOnlyOnOtherIslands(player) && (lateGameType != e_buildType_Air)) {
        // if the enemy is hiding on an island and we're not using an air build, switch to air
        pickNewArmy = true;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:1148

    fixed airMultiplier = 1.0;

    if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
        // when sieging an island limit making ground counters
        groundMultiplier = 0.33;

mods/void.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:291

        AISetSubStateChance( e_hdBuildIndex_PLateSpecial_Mixed,                 35 ); //  100
    } else if (lateGameType == e_buildType_Air) {
        if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            AISetSubStateChance( e_hdBuildIndex_PLateAir_ZSSAir,                     5 ); //    5
            AISetSubStateChance( e_hdBuildIndex_PLateAir_Voidray,                   15 ); //   20

mods/void.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:571

    }
    else if (currentLateGame == e_buildType_Air) {
        if (!AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            if (AITechCount(player, c_PB_Stargate, c_techCountCompleteOnly) < 2) {
                needsNewBuild = true;

mods/void.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:808

        pickNewArmy = true;
    }
    else if (AIEnemyBuildingsOnlyOnOtherIslands(player) && (lateGameType != e_buildType_Air)) {
        // if the enemy is hiding on an island and we're not using an air build, switch to air
        pickNewArmy = true;

mods/void.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:1149

    fixed airMultiplier = 1.0;

    if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
        // when sieging an island limit making ground counters
        groundMultiplier = 0.33;

mods/void.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:298

        AISetSubStateChance( e_hdBuildIndex_TLateSpecial_MechCycloneLib,    35 ); //  100
    } else if (lateGameType == e_buildType_Air) {
        if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            AISetSubStateChance( e_hdBuildIndex_TLateAir_VikingBC,              75 ); //   75
            AISetSubStateChance( e_hdBuildIndex_TLateAir_MixedAir,              25 ); //  100

mods/void.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:573

    }
    else if (currentLateGame == e_buildType_Air) {
        if (!AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            if (AITechCount(player, c_TB_Starport, c_techCountCompleteOnly) < 2) {
                needsNewBuild = true;

mods/void.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:810

        pickNewArmy = true;
    }
    else if (AIEnemyBuildingsOnlyOnOtherIslands(player) && (lateGameType != e_buildType_Air)) {
        // if the enemy is hiding on an island and we're not using an air build, switch to air
        pickNewArmy = true;

mods/void.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:1197

    fixed airMultiplier = 1.0;

    if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
        // when sieging an island limit making ground counters
        groundMultiplier = 0.33;

mods/void.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:288

        AISetSubStateChance( e_hdBuildIndex_ZLateSpecial_ViperLurker,           35 ); //  100
    } else if (lateGameType == e_buildType_Air) {
        if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            AISetSubStateChance( e_hdBuildIndex_ZLateAir_BroodRoachHydra,           10 ); //   10
            AISetSubStateChance( e_hdBuildIndex_ZLateAir_BroodRoachInfest,           5 ); //   15

mods/void.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:552

    }
    else if (currentLateGame == e_buildType_Air) {
        if (!AIEnemyBuildingsOnlyOnOtherIslands(player)) {
            if (AITechCount(player, c_ZB_Spire_Alias, c_techCountCompleteOnly) <= 0) {
                needsNewBuild = true;

mods/void.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:792

        pickNewArmy = true;
    }
    else if (AIEnemyBuildingsOnlyOnOtherIslands(player) && (lateGameType != e_buildType_Air)) {
        // if the enemy is hiding on an island and we're not using an air build, switch to air
        pickNewArmy = true;

mods/void.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:1158

    fixed airMultiplier = 1.0;

    if (AIEnemyBuildingsOnlyOnOtherIslands(player)) {
        // when sieging an island limit making ground counters
        groundMultiplier = 0.33;