13 years
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:
1 function main takes nothing returns nothing
2 call CampaignAI( MOON_WELL, function hero_levels )
3 call SetWoodPeons(4)
4 //call AttackMoveXY(-6500,-6500) // Just a signal to detect if the AI is working or not5 //call PurchaseZeppelin()6
7 call SetBuildUnitEx( 9, 9, 9, WISP )
8 call SetBuildUnitEx( 1, 1, 1, TREE_LIFE )
9 10 call SetBuildUnitEx( 1, 1, 1, ANCIENT_WAR )
11 call SetBuildUnitEx( 1, 1, 1, ELF_ALTAR )
12 call SetBuildUnitEx( 1, 1, 1, HUNTERS_HALL )
13 call SetBuildUnitEx( 2, 2, 2, ANCIENT_WAR )
14 call SetBuildUnitEx( 2, 2, 2, ELF_ALTAR )
15 call SetBuildUnitEx( 2, 2, 2, HUNTERS_HALL )
16 call SetBuildUnitEx( 4, 4, 4, ANCIENT_WAR )
17 endfunction18
: 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: