SMUnlimited / AMAI

Advanced Melee Artificial Intelligence Mod For Warcraft 3
Other
209 stars 34 forks source link

Suggestion: build additional farms/zigs/etc in parallel when farm-harassed #384

Open Slayer95 opened 1 month ago

Slayer95 commented 1 month ago

AI is easily abused by attacking farms and other supply buildings while they are still being built, since AI will eagerly cancel them (even when their HP bar is still 50%).

I presume such eager cancellation is built-in AI behavior. As an alternative, it would be nice if AMAI would send additional workers to build more farms, spread out and in parallel, such that the human foe cannot cancel them all.

jzy-chitong56 commented 1 month ago

This is easy to handle When threatened, the building loop should not send any commands to build the building

But this is a bit risky because you can't determine which base is threatened or if all bases are under attack, so you can only stop them all. The reasonable logic is to stop the construction of which base is threatened, and continue to build other bases to minimize the impact

I'm not sure if this translation can accurately convey my meaning. If I can't understand, I can try using a different translation tool

Slayer95 commented 1 month ago

If AMAI already has other bases, stopping building in the threatened base in favor of other bases seems like a very reasonable thing to do. What I am proposing, however, is that when AMAI has only 1 base, it should double down on building, so that the harasser is overwhelmed by the incapability to destroy all the buildings.