# Set Difficulty Parameter

Grammarstate|Enable/Disable index for player player
FlagsNative | Action

Enables or disables a particular difficulty parameter for a player.

# Arguments

Returns — void

native void AISetDifficulty(
	int player,
	int index,
	bool state,
);

Category: AI Advanced / Difficulty / Actions

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:2897

    libNtve_gf_DeclareNextTown(gv_pLAYER_03_INFESTED_REFUGEES, UnitGetPosition(UnitFromId(36)));
    AINearestTownBullyRebuild(gv_pLAYER_03_INFESTED_REFUGEES, true);
    AISetDifficulty(gv_pLAYER_03_INFESTED_REFUGEES, c_diffPressForward, true);
    AISetDifficulty(gv_pLAYER_04_INFESTEDREFUGEES, c_diffPressForward, true);
    AIAttackWaveSetTargetPlayer(gv_pLAYER_03_INFESTED_REFUGEES, PlayerGroupSingle(gv_pLAYER_01_USER));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:2898

    AINearestTownBullyRebuild(gv_pLAYER_03_INFESTED_REFUGEES, true);
    AISetDifficulty(gv_pLAYER_03_INFESTED_REFUGEES, c_diffPressForward, true);
    AISetDifficulty(gv_pLAYER_04_INFESTEDREFUGEES, c_diffPressForward, true);
    AIAttackWaveSetTargetPlayer(gv_pLAYER_03_INFESTED_REFUGEES, PlayerGroupSingle(gv_pLAYER_01_USER));
    AIAttackWaveSetTargetPlayer(gv_pLAYER_04_INFESTEDREFUGEES, PlayerGroupSingle(gv_pLAYER_01_USER));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:671

    }
    else if (auto3687E612_val == 3) {
        AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffRepairDamage, true);
        TechTreeUpgradeAddLevel(gv_pLAYER_02_DOMINION, "TerranInfantryArmorsLevel1", 1);
        TechTreeUpgradeAddLevel(gv_pLAYER_02_DOMINION, "TerranVehicleArmorsLevel1", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:677

    }
    else if (auto3687E612_val == 4) {
        AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffRepairDamage, true);
        TechTreeUpgradeAddLevel(gv_pLAYER_02_DOMINION, "TerranInfantryArmorsLevel1", 1);
        TechTreeUpgradeAddLevel(gv_pLAYER_02_DOMINION, "TerranInfantryWeaponsLevel1", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:913

    }
    if (((PlayerDifficulty(1) == 3 || PlayerDifficulty(1) == 4) == true)) {
        AISetDifficulty(gv_p3_DOMINION_RED, c_diffPressForward, true);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1205

    PlayerGroupLoopBegin(gv_allEnemyPlayers);
    while (!PlayerGroupLoopDone()) {
        AISetDifficulty(PlayerGroupLoopCurrent(), c_diffNormalTargetPrio, true);
        lv_bool = AICombatDiffFlagTieBreakHealers(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagTieBreakInjured(PlayerGroupLoopCurrent(), c_combatFlagEnable);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:2897

    libNtve_gf_DeclareNextTown(gv_pLAYER_03_INFESTED_REFUGEES, UnitGetPosition(UnitFromId(36)));
    AINearestTownBullyRebuild(gv_pLAYER_03_INFESTED_REFUGEES, true);
    AISetDifficulty(gv_pLAYER_03_INFESTED_REFUGEES, c_diffPressForward, true);
    AISetDifficulty(gv_pLAYER_04_INFESTEDREFUGEES, c_diffPressForward, true);
    AIAttackWaveSetTargetPlayer(gv_pLAYER_03_INFESTED_REFUGEES, PlayerGroupSingle(gv_pLAYER_01_USER));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:2898

    AINearestTownBullyRebuild(gv_pLAYER_03_INFESTED_REFUGEES, true);
    AISetDifficulty(gv_pLAYER_03_INFESTED_REFUGEES, c_diffPressForward, true);
    AISetDifficulty(gv_pLAYER_04_INFESTEDREFUGEES, c_diffPressForward, true);
    AIAttackWaveSetTargetPlayer(gv_pLAYER_03_INFESTED_REFUGEES, PlayerGroupSingle(gv_pLAYER_01_USER));
    AIAttackWaveSetTargetPlayer(gv_pLAYER_04_INFESTEDREFUGEES, PlayerGroupSingle(gv_pLAYER_01_USER));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2mapMapScript.galaxy:671

    }
    else if (auto3687E612_val == 3) {
        AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffRepairDamage, true);
        TechTreeUpgradeAddLevel(gv_pLAYER_02_DOMINION, "TerranInfantryArmorsLevel1", 1);
        TechTreeUpgradeAddLevel(gv_pLAYER_02_DOMINION, "TerranVehicleArmorsLevel1", 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2mapMapScript.galaxy:677

    }
    else if (auto3687E612_val == 4) {
        AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffRepairDamage, true);
        TechTreeUpgradeAddLevel(gv_pLAYER_02_DOMINION, "TerranInfantryArmorsLevel1", 1);
        TechTreeUpgradeAddLevel(gv_pLAYER_02_DOMINION, "TerranInfantryWeaponsLevel1", 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2mapMapScript.galaxy:913

    }
    if (((PlayerDifficulty(1) == 3 || PlayerDifficulty(1) == 4) == true)) {
        AISetDifficulty(gv_p3_DOMINION_RED, c_diffPressForward, true);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:1205

    PlayerGroupLoopBegin(gv_allEnemyPlayers);
    while (!PlayerGroupLoopDone()) {
        AISetDifficulty(PlayerGroupLoopCurrent(), c_diffNormalTargetPrio, true);
        lv_bool = AICombatDiffFlagTieBreakHealers(PlayerGroupLoopCurrent(), c_combatFlagEnable);
        lv_bool = AICombatDiffFlagTieBreakInjured(PlayerGroupLoopCurrent(), c_combatFlagEnable);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:7032


    CampaignInitAI();
    AISetDifficulty(gv_pLAYER_02_ZERG, c_diffNormalVision, true);
    AIToggleBulliesInRegion(gv_pLAYER_02_ZERG, RegionEntireMap(), false);
    return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:4554

    TriggerExecute(gt_RaynorAttackPrepTiming, true, false);
    AISetAPM(gv_PLAYER_07_DOMINION_GREEN22, 10000);
    AISetDifficulty(gv_PLAYER_07_DOMINION_GREEN22, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_PLAYER_07_DOMINION_GREEN22, c_diffRepairDamage, true);
    AISetDefenseRadii(gv_PLAYER_07_DOMINION_GREEN22, 10.0, 50.0, 50.0);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:4555

    AISetAPM(gv_PLAYER_07_DOMINION_GREEN22, 10000);
    AISetDifficulty(gv_PLAYER_07_DOMINION_GREEN22, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_PLAYER_07_DOMINION_GREEN22, c_diffRepairDamage, true);
    AISetDefenseRadii(gv_PLAYER_07_DOMINION_GREEN22, 10.0, 50.0, 50.0);
    if ((libHots_gf_DifficultyValueInt2(1, 1, 0) == 1)) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition03.sc2mapMapScript.galaxy:7032


    CampaignInitAI();
    AISetDifficulty(gv_pLAYER_02_ZERG, c_diffNormalVision, true);
    AIToggleBulliesInRegion(gv_pLAYER_02_ZERG, RegionEntireMap(), false);
    return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:4554

    TriggerExecute(gt_RaynorAttackPrepTiming, true, false);
    AISetAPM(gv_PLAYER_07_DOMINION_GREEN22, 10000);
    AISetDifficulty(gv_PLAYER_07_DOMINION_GREEN22, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_PLAYER_07_DOMINION_GREEN22, c_diffRepairDamage, true);
    AISetDefenseRadii(gv_PLAYER_07_DOMINION_GREEN22, 10.0, 50.0, 50.0);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:4555

    AISetAPM(gv_PLAYER_07_DOMINION_GREEN22, 10000);
    AISetDifficulty(gv_PLAYER_07_DOMINION_GREEN22, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_PLAYER_07_DOMINION_GREEN22, c_diffRepairDamage, true);
    AISetDefenseRadii(gv_PLAYER_07_DOMINION_GREEN22, 10.0, 50.0, 50.0);
    if ((libHots_gf_DifficultyValueInt2(1, 1, 0) == 1)) {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:4368

    AISetAPM(gv_pLAYER_02_DOMINION, 10000);
    AISetAPM(gv_pLAYER_02_DOMINION2, 10000);
    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffRepairDamage, true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:4369

    AISetAPM(gv_pLAYER_02_DOMINION2, 10000);
    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffRepairDamage, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffRepairDamage, true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:4370

    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffRepairDamage, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffRepairDamage, true);
    AIToggleBulliesInRegion(gv_pLAYER_02_DOMINION, RegionFromId(1), true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:4371

    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffRepairDamage, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffRepairDamage, true);
    AIToggleBulliesInRegion(gv_pLAYER_02_DOMINION, RegionFromId(1), true);
    autoAB6A00D6_g = UnitGroup("HybridDominatorVoid", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2mapMapScript.galaxy:4368

    AISetAPM(gv_pLAYER_02_DOMINION, 10000);
    AISetAPM(gv_pLAYER_02_DOMINION2, 10000);
    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffRepairDamage, true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2mapMapScript.galaxy:4369

    AISetAPM(gv_pLAYER_02_DOMINION2, 10000);
    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffRepairDamage, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffRepairDamage, true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2mapMapScript.galaxy:4370

    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffRepairDamage, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffRepairDamage, true);
    AIToggleBulliesInRegion(gv_pLAYER_02_DOMINION, RegionFromId(1), true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2mapMapScript.galaxy:4371

    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION, c_diffRepairDamage, true);
    AISetDifficulty(gv_pLAYER_02_DOMINION2, c_diffRepairDamage, true);
    AIToggleBulliesInRegion(gv_pLAYER_02_DOMINION, RegionFromId(1), true);
    autoAB6A00D6_g = UnitGroup("HybridDominatorVoid", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

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

    // Automatic Variable Declarations
    // Implementation
    AISetDifficulty(lp_player, c_diffAvoidMindControlled, false);
    AICombatDiffFlagTieBreakHealers (lp_player, c_combatFlagDisable);
}

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:114

    }
    
    AISetDifficulty(player, c_diffRepairDamage, true);
    AISetDifficulty(player, c_diffOptimizeGas, true);
    AISetDifficulty(player, c_diffDefendWithPeons, true);

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:115

    
    AISetDifficulty(player, c_diffRepairDamage, true);
    AISetDifficulty(player, c_diffOptimizeGas, true);
    AISetDifficulty(player, c_diffDefendWithPeons, true);
    AISetDifficulty(player, c_diffEnableDangerMap, true);

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:116

    AISetDifficulty(player, c_diffRepairDamage, true);
    AISetDifficulty(player, c_diffOptimizeGas, true);
    AISetDifficulty(player, c_diffDefendWithPeons, true);
    AISetDifficulty(player, c_diffEnableDangerMap, true);
    AISetDifficulty(player, c_diffNormalTargetPrio, true);

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:117

    AISetDifficulty(player, c_diffOptimizeGas, true);
    AISetDifficulty(player, c_diffDefendWithPeons, true);
    AISetDifficulty(player, c_diffEnableDangerMap, true);
    AISetDifficulty(player, c_diffNormalTargetPrio, true);
    AISetDifficulty(player, c_diffAllowResourceReq, true);

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:118

    AISetDifficulty(player, c_diffDefendWithPeons, true);
    AISetDifficulty(player, c_diffEnableDangerMap, true);
    AISetDifficulty(player, c_diffNormalTargetPrio, true);
    AISetDifficulty(player, c_diffAllowResourceReq, true);
    AISetDifficulty(player, c_diffAdvancedRetreatLogic, true);

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:119

    AISetDifficulty(player, c_diffEnableDangerMap, true);
    AISetDifficulty(player, c_diffNormalTargetPrio, true);
    AISetDifficulty(player, c_diffAllowResourceReq, true);
    AISetDifficulty(player, c_diffAdvancedRetreatLogic, true);
    AISetDifficulty(player, c_diffSupportsBeacons, true);

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:120

    AISetDifficulty(player, c_diffNormalTargetPrio, true);
    AISetDifficulty(player, c_diffAllowResourceReq, true);
    AISetDifficulty(player, c_diffAdvancedRetreatLogic, true);
    AISetDifficulty(player, c_diffSupportsBeacons, true);
    AISetDifficulty(player, c_diffAutoBuildPrereqs, true);

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:121

    AISetDifficulty(player, c_diffAllowResourceReq, true);
    AISetDifficulty(player, c_diffAdvancedRetreatLogic, true);
    AISetDifficulty(player, c_diffSupportsBeacons, true);
    AISetDifficulty(player, c_diffAutoBuildPrereqs, true);
    AISetDifficulty(player, c_diffAllowBuildInDanger, true);

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:122

    AISetDifficulty(player, c_diffAdvancedRetreatLogic, true);
    AISetDifficulty(player, c_diffSupportsBeacons, true);
    AISetDifficulty(player, c_diffAutoBuildPrereqs, true);
    AISetDifficulty(player, c_diffAllowBuildInDanger, true);
    AISetDifficulty(player, c_diffTimeoutMakeRequests, true);

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:123

    AISetDifficulty(player, c_diffSupportsBeacons, true);
    AISetDifficulty(player, c_diffAutoBuildPrereqs, true);
    AISetDifficulty(player, c_diffAllowBuildInDanger, true);
    AISetDifficulty(player, c_diffTimeoutMakeRequests, true);
    AISetDifficulty(player, c_diffSetRallyPoints, true);

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

    AISetFlag(player, e_flagsDiversion, true);
    AISetFlag(player, e_flagsEarlyDefScout, false);
    AISetDifficulty(player, c_diffEarlyGameRepair, false);

    AIEarlyDefenseEnable(player, false, false);

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

void libNCMI_gf_EnableNovaCampaignAIBehaviorForPlayer (int lp_player) {
    // Implementation
    AISetDifficulty(lp_player, c_diffAvoidMindControlled, false);
    AICombatDiffFlagTieBreakHealers (lp_player, c_combatFlagDisable);
}

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:8036

    AINearestTownBullyRebuild(gv_pLAYER_04_FERALZERG_RIGHTBULLIES, true);
    AINearestTownBullyRebuild(gv_pLAYER_05_FERALZERG_LEFTBULLIES, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffRepairDamage, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffEarlyGameRepair, true);

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:8037

    AINearestTownBullyRebuild(gv_pLAYER_05_FERALZERG_LEFTBULLIES, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffRepairDamage, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffEarlyGameRepair, true);
    libNtve_gf_DeclareNextTown(gv_pLAYER_03_FERALZERG_MIDDLEBULLIES, PointFromId(470));

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:8038

    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffRepairDamage, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffEarlyGameRepair, true);
    libNtve_gf_DeclareNextTown(gv_pLAYER_03_FERALZERG_MIDDLEBULLIES, PointFromId(470));
    libNtve_gf_DeclareNextTown(gv_pLAYER_03_FERALZERG_MIDDLEBULLIES, PointFromId(1878));

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:8036

    AINearestTownBullyRebuild(gv_pLAYER_04_FERALZERG_RIGHTBULLIES, true);
    AINearestTownBullyRebuild(gv_pLAYER_05_FERALZERG_LEFTBULLIES, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffRepairDamage, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffEarlyGameRepair, true);

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:8037

    AINearestTownBullyRebuild(gv_pLAYER_05_FERALZERG_LEFTBULLIES, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffRepairDamage, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffEarlyGameRepair, true);
    libNtve_gf_DeclareNextTown(gv_pLAYER_03_FERALZERG_MIDDLEBULLIES, PointFromId(470));

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:8038

    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffAutoLoadBunkers, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffRepairDamage, true);
    AISetDifficulty(gv_pLAYER_06_DEFENDERSOFMAN, c_diffEarlyGameRepair, true);
    libNtve_gf_DeclareNextTown(gv_pLAYER_03_FERALZERG_MIDDLEBULLIES, PointFromId(470));
    libNtve_gf_DeclareNextTown(gv_pLAYER_03_FERALZERG_MIDDLEBULLIES, PointFromId(1878));

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

        autoE85E0ABA_var = PlayerGroupNextPlayer(autoE85E0ABA_g, autoE85E0ABA_var);
        if (autoE85E0ABA_var < 0) { break; }
        AISetDifficulty(autoE85E0ABA_var, c_diffTargetSpawners, libCOMI_gv_cM_DebugAITargetSpawners);
    }
    return true;

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:150

    }
    
    AISetDifficulty(player, c_diffRepairDamage, true);
    AISetDifficulty(player, c_diffOptimizeGas, true);
    AISetDifficulty(player, c_diffDefendWithPeons, true);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:151

    
    AISetDifficulty(player, c_diffRepairDamage, true);
    AISetDifficulty(player, c_diffOptimizeGas, true);
    AISetDifficulty(player, c_diffDefendWithPeons, true);
    AISetDifficulty(player, c_diffEnableDangerMap, false);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:152

    AISetDifficulty(player, c_diffRepairDamage, true);
    AISetDifficulty(player, c_diffOptimizeGas, true);
    AISetDifficulty(player, c_diffDefendWithPeons, true);
    AISetDifficulty(player, c_diffEnableDangerMap, false);
    AISetDifficulty(player, c_diffNormalTargetPrio, true);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:153

    AISetDifficulty(player, c_diffOptimizeGas, true);
    AISetDifficulty(player, c_diffDefendWithPeons, true);
    AISetDifficulty(player, c_diffEnableDangerMap, false);
    AISetDifficulty(player, c_diffNormalTargetPrio, true);
    AISetDifficulty(player, c_diffAllowResourceReq, true);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:154

    AISetDifficulty(player, c_diffDefendWithPeons, true);
    AISetDifficulty(player, c_diffEnableDangerMap, false);
    AISetDifficulty(player, c_diffNormalTargetPrio, true);
    AISetDifficulty(player, c_diffAllowResourceReq, true);
    AISetDifficulty(player, c_diffAdvancedRetreatLogic, true);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:155

    AISetDifficulty(player, c_diffEnableDangerMap, false);
    AISetDifficulty(player, c_diffNormalTargetPrio, true);
    AISetDifficulty(player, c_diffAllowResourceReq, true);
    AISetDifficulty(player, c_diffAdvancedRetreatLogic, true);
    AISetDifficulty(player, c_diffSupportsBeacons, true);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:156

    AISetDifficulty(player, c_diffNormalTargetPrio, true);
    AISetDifficulty(player, c_diffAllowResourceReq, true);
    AISetDifficulty(player, c_diffAdvancedRetreatLogic, true);
    AISetDifficulty(player, c_diffSupportsBeacons, true);
    AISetDifficulty(player, c_diffAutoBuildPrereqs, true);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:157

    AISetDifficulty(player, c_diffAllowResourceReq, true);
    AISetDifficulty(player, c_diffAdvancedRetreatLogic, true);
    AISetDifficulty(player, c_diffSupportsBeacons, true);
    AISetDifficulty(player, c_diffAutoBuildPrereqs, true);
    AISetDifficulty(player, c_diffAllowBuildInDanger, true);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:158

    AISetDifficulty(player, c_diffAdvancedRetreatLogic, true);
    AISetDifficulty(player, c_diffSupportsBeacons, true);
    AISetDifficulty(player, c_diffAutoBuildPrereqs, true);
    AISetDifficulty(player, c_diffAllowBuildInDanger, true);
    AISetDifficulty(player, c_diffTimeoutMakeRequests, true);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:159

    AISetDifficulty(player, c_diffSupportsBeacons, true);
    AISetDifficulty(player, c_diffAutoBuildPrereqs, true);
    AISetDifficulty(player, c_diffAllowBuildInDanger, true);
    AISetDifficulty(player, c_diffTimeoutMakeRequests, true);
    AISetDifficulty(player, c_diffSetRallyPoints, true);

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

    AISetFlag(player, e_flagsDiversion, true);
    AISetFlag(player, e_flagsEarlyDefScout, false);
    AISetDifficulty(player, c_diffEarlyGameRepair, false);

    AIEarlyDefenseEnable(player, false, false);

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

    AISetFlag(player, e_flagsDiversion, true);
    AISetFlag(player, e_flagsEarlyDefScout, false);
    AISetDifficulty(player, c_diffEarlyGameRepair, false);

    AIEarlyDefenseEnable(player, false, false);

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

        lv_player = PlayerGroupNextPlayer(autoBC7BEAAC_g, lv_player);
        if (lv_player < 0) { break; }
        AISetDifficulty(lv_player, c_diffWaveLeashing, true);
        AISetDifficulty(lv_player, c_diffFleeDanger, true);
        AISetDifficulty(lv_player, c_diffPressForward, true);

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

        if (lv_player < 0) { break; }
        AISetDifficulty(lv_player, c_diffWaveLeashing, true);
        AISetDifficulty(lv_player, c_diffFleeDanger, true);
        AISetDifficulty(lv_player, c_diffPressForward, true);
    }

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

        AISetDifficulty(lv_player, c_diffWaveLeashing, true);
        AISetDifficulty(lv_player, c_diffFleeDanger, true);
        AISetDifficulty(lv_player, c_diffPressForward, true);
    }
}

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

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

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

        if ((PlayerType(lv_p) == c_playerTypeComputer)) {
            AISetDifficulty(lv_p, c_diffRepairDamage, true);
            AISetDifficulty(lv_p, c_diffEarlyGameRepair, true);
            AISetDifficulty(lv_p, c_diffEnableDangerMap, true);
            AISetDifficulty(lv_p, c_diffSetRallyPoints, true);

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

            AISetDifficulty(lv_p, c_diffRepairDamage, true);
            AISetDifficulty(lv_p, c_diffEarlyGameRepair, true);
            AISetDifficulty(lv_p, c_diffEnableDangerMap, true);
            AISetDifficulty(lv_p, c_diffSetRallyPoints, true);
            AISetDifficulty(lv_p, c_diffFleeDamage, true);

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

            AISetDifficulty(lv_p, c_diffEarlyGameRepair, true);
            AISetDifficulty(lv_p, c_diffEnableDangerMap, true);
            AISetDifficulty(lv_p, c_diffSetRallyPoints, true);
            AISetDifficulty(lv_p, c_diffFleeDamage, true);
            AISetDifficulty(lv_p, c_diffFleeDanger, true);

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

            AISetDifficulty(lv_p, c_diffEnableDangerMap, true);
            AISetDifficulty(lv_p, c_diffSetRallyPoints, true);
            AISetDifficulty(lv_p, c_diffFleeDamage, true);
            AISetDifficulty(lv_p, c_diffFleeDanger, true);
            AISetDifficulty(lv_p, c_diffAutoTransport, true);

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

            AISetDifficulty(lv_p, c_diffSetRallyPoints, true);
            AISetDifficulty(lv_p, c_diffFleeDamage, true);
            AISetDifficulty(lv_p, c_diffFleeDanger, true);
            AISetDifficulty(lv_p, c_diffAutoTransport, true);
            AISetDifficulty(lv_p, c_diffNormalVision, false);

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

            AISetDifficulty(lv_p, c_diffFleeDamage, true);
            AISetDifficulty(lv_p, c_diffFleeDanger, true);
            AISetDifficulty(lv_p, c_diffAutoTransport, true);
            AISetDifficulty(lv_p, c_diffNormalVision, false);
            AISetDifficulty(lv_p, c_diffLimitAPM, false);

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

            AISetDifficulty(lv_p, c_diffFleeDanger, true);
            AISetDifficulty(lv_p, c_diffAutoTransport, true);
            AISetDifficulty(lv_p, c_diffNormalVision, false);
            AISetDifficulty(lv_p, c_diffLimitAPM, false);
            if ((PlayerDifficulty(lv_p) >= 6)) {

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

            AISetDifficulty(lv_p, c_diffAutoTransport, true);
            AISetDifficulty(lv_p, c_diffNormalVision, false);
            AISetDifficulty(lv_p, c_diffLimitAPM, false);
            if ((PlayerDifficulty(lv_p) >= 6)) {
                AIHarvestBonus(lv_p,3);

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

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