Open jzy-chitong56 opened 11 months ago
One is for AMAI, one is for blizzard ai scripts.
The factory logic as I understand only affects buildings and in theory peons. An insane AMAI can create extra buildings in one go instead of 1 by 1.
I still don't understand why there are only two human barracks and no other buildings or units if it's to distinguish between regular AI and Amai
for AI
function main takes nothing returns nothing
call PickMeleeHero(RACE_NIGHTELF)
call set_skills()
call StandardAI(function SkillArrays, function peon_assignment, function attack_sequence)
call StartThread(function set_vars)
call PlayGame()
endfunction
in PickMeleeHero and StandardAI
call InitAiUnits() run twice , repeated
Did you consider some AI not selecting heroes through standard procedures?
https://www.bilibili.com/video/BV1NcpsefEX5/?spm_id_from=333.999.0.0&vd_source=c6519bad27f84d37dad6d4315fd128bf https://www.bilibili.com/video/BV1jw4m1a7p2/?spm_id_from=333.999.0.0&vd_source=c6519bad27f84d37dad6d4315fd128bf
Here are some player videos, VS homemade AI - lost. I still want to emphasize that many people have given feedback that version 3.1.1 performs better than it does now
Tests have found that AMAI is difficult to defeat this player's homemade AI
3 reasons have been identified so far
why have two hars ??
Factory is not barracks???
Get_f_qty
if buy_type[unitid] != BT_UNIT or unitid == racial_peon or IsOneOnlyBuilding(needed1[unitid]) then
I think this is to obtain the number of factories but why buy_type[unitid] != BT_UNIT?? maybe is buy_type[unitid] == BT_UNIT , barracks should all is BUILDING , here will return all barracks to 1 ???
undead2.zip