I'm bugged with issues in the AI editor. I'm trying to make an all in one AI for my map, to save space and have better editing flexibility. I had 5 different ones that worked, and I'm fairy familiar with the AI editor.
To train different units for different factions, I'm using conditions based on upgrades. For example, Macedonians use archers as their starting unit, while other factions use spearmen. So archers queued get a condition ("Civ - Macedonians" upgrade level equal to 1), while other factions' spearmen get ("Civ - not Macedonians/Romans") and Romans get ("Civ - Romans" + "food lower than 120" + "Marian reforms" upgrade not researched), so that they won't bug trying to train spearmen after they are replaced by legionaries in their tech tree.
The problem is, while archer conditions work, and Macedonians get the desired number of archers, the other factions conditions somehow get messed up, resulting in all of them (besides spartans who have a limit of 10 spearmen) training the entire number of spearmen in the queue even those they were conditioned to not to train.
I can't seem to find a logical solution, tried many things and I'd like to keep all factions under one AI file. Does anyone have a good clue on how the AI editor works in the aspect?
To train different units for different factions, I'm using conditions based on upgrades. For example, Macedonians use archers as their starting unit, while other factions use spearmen. So archers queued get a condition ("Civ - Macedonians" upgrade level equal to 1), while other factions' spearmen get ("Civ - not Macedonians/Romans") and Romans get ("Civ - Romans" + "food lower than 120" + "Marian reforms" upgrade not researched), so that they won't bug trying to train spearmen after they are replaced by legionaries in their tech tree.
The problem is, while archer conditions work, and Macedonians get the desired number of archers, the other factions conditions somehow get messed up, resulting in all of them (besides spartans who have a limit of 10 spearmen) training the entire number of spearmen in the queue even those they were conditioned to not to train.
I can't seem to find a logical solution, tried many things and I'd like to keep all factions under one AI file. Does anyone have a good clue on how the AI editor works in the aspect?