Hello, moyackx.
Now, I am hoping to discuss thing about AI. I really don't know why so many are not interested in it.
Anyways, you were saying something about building up some kind of table, does that mean I can't command the AI to build a certain building, lets say 2 Ancient of War then later increase them to 4 ? because I make something like that and it worked:
Now, I am hoping to discuss thing about AI. I really don't know why so many are not interested in it.
Anyways, you were saying something about building up some kind of table, does that mean I can't command the AI to build a certain building, lets say 2 Ancient of War then later increase them to 4 ? because I make something like that and it worked:
function main takes nothing returns nothing
call CampaignAI( MOON_WELL, function hero_levels )
call SetWoodPeons(4)
//call AttackMoveXY(-6500,-6500) // Just a signal to detect if the AI is working or not
//call PurchaseZeppelin()
call SetBuildUnitEx( 9, 9, 9, WISP )
call SetBuildUnitEx( 1, 1, 1, TREE_LIFE )
call SetBuildUnitEx( 1, 1, 1, ANCIENT_WAR )
call SetBuildUnitEx( 1, 1, 1, ELF_ALTAR )
call SetBuildUnitEx( 1, 1, 1, HUNTERS_HALL )
call SetBuildUnitEx( 2, 2, 2, ANCIENT_WAR )
call SetBuildUnitEx( 2, 2, 2, ELF_ALTAR )
call SetBuildUnitEx( 2, 2, 2, HUNTERS_HALL )
call SetBuildUnitEx( 4, 4, 4, ANCIENT_WAR )
endfunction
: I'm deleoping a kind of "AI system" where you can easily define a strategy. You just have to Define the unit requirements and you just have to writ something like this: