# Reset Bully Rebuild Counts In Region

Grammar — Resets the bully rebuild counts in region region for player player
FlagsNative | Action

Resets the rebuild counts for bullies owned by a specific player in a specific region.

# Arguments

  • int — Player
  • region — Region

Returns — void

native void AIResetBullyRebuildCountsInRegion(
	int player,
	region reg,
);

Category: AI / Bullies / Actions

# Examples

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

    TriggerEnable(gt_ProtossChronoBoost, true);
    TriggerExecute(gt_ProtossAttackWaves, true, false);
    AIResetBullyRebuildCountsInRegion(gv_p3_ENEMY_PROTOSS, RegionEntireMap());
    libNtve_gf_CreateUnitsWithDefaultFacing(1, "Nexus", 0, gv_p3_ENEMY_PROTOSS, RegionGetCenter(RegionFromId(2)));
    libNtve_gf_CreateUnitsWithDefaultFacing(1, "Pylon", 0, gv_p3_ENEMY_PROTOSS, RegionGetCenter(RegionFromId(2)));

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

    TriggerEnable(gt_ProtossChronoBoost, true);
    TriggerExecute(gt_ProtossAttackWaves, true, false);
    AIResetBullyRebuildCountsInRegion(gv_p3_ENEMY_PROTOSS, RegionEntireMap());
    libNtve_gf_CreateUnitsWithDefaultFacing(1, "Nexus", 0, gv_p3_ENEMY_PROTOSS, RegionGetCenter(RegionFromId(2)));
    libNtve_gf_CreateUnitsWithDefaultFacing(1, "Pylon", 0, gv_p3_ENEMY_PROTOSS, RegionGetCenter(RegionFromId(2)));

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:433

        if ((lp_activateDeactivate == true)) {
            gv_celestialLocks[lp_index].lv_recaptureCount += 1;
            AIResetBullyRebuildCountsInRegion(autoA6E7E7AF_var, gv_celestialLocks[lp_index].lv_bulliesStage1);
            AIToggleBulliesInRegion(autoA6E7E7AF_var, gv_celestialLocks[lp_index].lv_bulliesStage1, true);
            gf_LockBullyUpgrades(lp_index);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:776

            auto52EA6682_var = PlayerGroupNextPlayer(auto52EA6682_g, auto52EA6682_var);
            if (auto52EA6682_var < 0) { break; }
            AIResetBullyRebuildCountsInRegion(auto52EA6682_var, gv_celestialLocks[lp_index].lv_bulliesStage2);
            AIToggleBulliesInRegion(auto52EA6682_var, gv_celestialLocks[lp_index].lv_bulliesStage2, true);
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:796

            auto3F91E586_var = PlayerGroupNextPlayer(auto3F91E586_g, auto3F91E586_var);
            if (auto3F91E586_var < 0) { break; }
            AIResetBullyRebuildCountsInRegion(auto3F91E586_var, gv_celestialLocks[lp_index].lv_bulliesStage3);
            AIToggleBulliesInRegion(auto3F91E586_var, gv_celestialLocks[lp_index].lv_bulliesStage3, true);
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2mapMapScript.galaxy:433

        if ((lp_activateDeactivate == true)) {
            gv_celestialLocks[lp_index].lv_recaptureCount += 1;
            AIResetBullyRebuildCountsInRegion(autoA6E7E7AF_var, gv_celestialLocks[lp_index].lv_bulliesStage1);
            AIToggleBulliesInRegion(autoA6E7E7AF_var, gv_celestialLocks[lp_index].lv_bulliesStage1, true);
            gf_LockBullyUpgrades(lp_index);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2mapMapScript.galaxy:776

            auto52EA6682_var = PlayerGroupNextPlayer(auto52EA6682_g, auto52EA6682_var);
            if (auto52EA6682_var < 0) { break; }
            AIResetBullyRebuildCountsInRegion(auto52EA6682_var, gv_celestialLocks[lp_index].lv_bulliesStage2);
            AIToggleBulliesInRegion(auto52EA6682_var, gv_celestialLocks[lp_index].lv_bulliesStage2, true);
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2mapMapScript.galaxy:796

            auto3F91E586_var = PlayerGroupNextPlayer(auto3F91E586_g, auto3F91E586_var);
            if (auto3F91E586_var < 0) { break; }
            AIResetBullyRebuildCountsInRegion(auto3F91E586_var, gv_celestialLocks[lp_index].lv_bulliesStage3);
            AIToggleBulliesInRegion(auto3F91E586_var, gv_celestialLocks[lp_index].lv_bulliesStage3, true);
        }