# Set Attack Wave Bully Percent

Grammar — Allow percent% of bullies to be used for attack waves for player player
FlagsNative | Action

Sets the percentage of bullies that are allowed to be used for attack waves for a player.

# Arguments

  • int — Percent
  • int — Player

Returns — void

native void AISetBullyAttackWavePercent(
	int percent,
	int player,
);

Category: AI / Bullies / Actions

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3233

    AIAttackWaveSetGatherPoint(gv_p4_SE_PROTOSSRight, PointFromId(232));
    AIAttackWaveSetGatherPoint(gv_p5_NW_PROTOSSLeft, PointFromId(255));
    AISetBullyAttackWavePercent(100, gv_p2_NE_PROTOSSMiddle);
    AISetBullyAttackWavePercent(100, gv_p4_SE_PROTOSSRight);
    AISetBullyAttackWavePercent(100, gv_p5_NW_PROTOSSLeft);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3234

    AIAttackWaveSetGatherPoint(gv_p5_NW_PROTOSSLeft, PointFromId(255));
    AISetBullyAttackWavePercent(100, gv_p2_NE_PROTOSSMiddle);
    AISetBullyAttackWavePercent(100, gv_p4_SE_PROTOSSRight);
    AISetBullyAttackWavePercent(100, gv_p5_NW_PROTOSSLeft);
    TriggerExecute(gt_AIAttackWaves, true, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3235

    AISetBullyAttackWavePercent(100, gv_p2_NE_PROTOSSMiddle);
    AISetBullyAttackWavePercent(100, gv_p4_SE_PROTOSSRight);
    AISetBullyAttackWavePercent(100, gv_p5_NW_PROTOSSLeft);
    TriggerExecute(gt_AIAttackWaves, true, false);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:3233

    AIAttackWaveSetGatherPoint(gv_p4_SE_PROTOSSRight, PointFromId(232));
    AIAttackWaveSetGatherPoint(gv_p5_NW_PROTOSSLeft, PointFromId(255));
    AISetBullyAttackWavePercent(100, gv_p2_NE_PROTOSSMiddle);
    AISetBullyAttackWavePercent(100, gv_p4_SE_PROTOSSRight);
    AISetBullyAttackWavePercent(100, gv_p5_NW_PROTOSSLeft);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:3234

    AIAttackWaveSetGatherPoint(gv_p5_NW_PROTOSSLeft, PointFromId(255));
    AISetBullyAttackWavePercent(100, gv_p2_NE_PROTOSSMiddle);
    AISetBullyAttackWavePercent(100, gv_p4_SE_PROTOSSRight);
    AISetBullyAttackWavePercent(100, gv_p5_NW_PROTOSSLeft);
    TriggerExecute(gt_AIAttackWaves, true, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:3235

    AISetBullyAttackWavePercent(100, gv_p2_NE_PROTOSSMiddle);
    AISetBullyAttackWavePercent(100, gv_p4_SE_PROTOSSRight);
    AISetBullyAttackWavePercent(100, gv_p5_NW_PROTOSSLeft);
    TriggerExecute(gt_AIAttackWaves, true, false);
    return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4899

    AIToggleBulliesInRegion(gv_pLAYER_03_DOMINION_AI, RegionPlayableMap(), true);
    AIToggleBulliesInRegion(gv_pLAYER_04_DOMINION_CLEANSERS, RegionPlayableMap(), true);
    AISetBullyAttackWavePercent(100, gv_pLAYER_04_DOMINION_CLEANSERS);
    return true;
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2mapMapScript.galaxy:4899

    AIToggleBulliesInRegion(gv_pLAYER_03_DOMINION_AI, RegionPlayableMap(), true);
    AIToggleBulliesInRegion(gv_pLAYER_04_DOMINION_CLEANSERS, RegionPlayableMap(), true);
    AISetBullyAttackWavePercent(100, gv_pLAYER_04_DOMINION_CLEANSERS);
    return true;
}

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

    AIHarvestRate(player, 1);
    AISetNumScouts(player, 0);
    AISetBullyAttackWavePercent(AICampaignDiffSelect(player, 100, 100, 50, 0), player);

    AIAttackWaveSetGatherPoint(player, AIGetGatherLocation(player, c_townMain));

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

    AISetNumScouts(player, 0);
    //AISetBullyAttackWavePercent(AICampaignDiffSelect(player, 100, 100, 50, 0, 0, 0), player);
	AISetBullyAttackWavePercent(0, player);

    AIAttackWaveSetGatherPoint(player, AIGetGatherLocation(player, c_townMain));