Hello there. When I found out the pattern of the Orc AI (meaning how does the computer building their base) extracted from the war3.mpq, then when I open the orc.ai under the war3mpq/scripts, I found this:
I want to imitate into my new Orc AI script but with different unit-type, so can anybody explain what is this talking about mentioned above?
JASS:
// need a peon or nothing will get built
//
if c_great_hall_done >= 1 then
set peons = 6 - GetWood() / 200
if peons < 3 then
set peons = 3
endif
if c_mines < 2 or c_great_hall_done < 2 then
set peons = peons + 5
else
set peons = peons + 10
endif
if peons > 15 then
set peons = 15
endif
call SetBuildNext( peons, PEON )
endif
I want to imitate into my new Orc AI script but with different unit-type, so can anybody explain what is this talking about mentioned above?