# Reset Bully Rebuild Counts In Region
Grammar — Resets the bully rebuild counts in region region for player player
Flags —Native
|Action
Resets the rebuild counts for bullies owned by a specific player in a specific region.
# Arguments
int
— Playerregion
— Region
Returns — void
native void AIResetBullyRebuildCountsInRegion(
int player,
region reg,
);
# Related
Category: AI / Bullies / Actions
- Remove All Bullies —
void
— AIClearAllBullies - Add New Bully —
void
— AIAddBully - Set Minimum Bully Count —
void
— AISetMinimumBullyCount - Set Rebuild Count (Default) —
void
— AISetGeneralRebuildCount - Set Rebuild Count (Specific) —
void
— AISetSpecificRebuildCount - Set Attack Wave Bully Percent —
void
— AISetBullyAttackWavePercent - Set Bully Rebuild Delay —
void
— AISetBullyRebuildDelay - Limit Bully Rebuild To Nearest Town —
void
— AINearestTownBullyRebuild - Limit Bully Wave Gather To Nearest Town —
void
— AINearestTownLimitWaveGather - Activate/Deactivate Bullies In Region —
void
— AIToggleBulliesInRegion - Reset Bully Rebuild Counts In Region —
void
— AIResetBullyRebuildCountsInRegion
# Examples
campaigns/liberty.sc2campaign — base.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.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/void.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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);
}