Thalassicus
Bytes and Nibblers
AIs use a priority system to figure out what to build. Say an AI wants to build a defensive unit. It compares all the units it can build, and the unit with the highest "defense" priority gets chosen. If you'd like to help refine the AI's decision-making, please change these to 1 in the options file:
The basic patterns I followed are:
Each AI has the preferences listed below. These determine which type of priorities the AI focuses on. It then selects something from that category to build or research. For example, let's say Alexander is deciding what to build. We can see from the table he's twice as likely to get a Mobile unit (horse/tank) as a Ranged unit (archer). Let's say he decides on a Mobile unit. He now looks at the mobile units available in one of his cities. He can build Chariots or Companion Cavalary. The cavalry have a higher mobile priority, so he purchases a cavalry.
You can then see AI priorities ingame like:UPDATE Civup SET Value = 1 WHERE Type = 'SHOW_AI_PRIORITY_UNITS';
UPDATE Civup SET Value = 1 WHERE Type = 'SHOW_AI_PRIORITY_BUILDINGS';
UPDATE Civup SET Value = 1 WHERE Type = 'SHOW_AI_PRIORITY_POLICIES';
UPDATE Civup SET Value = 1 WHERE Type = 'SHOW_AI_PRIORITY_TECHS';
Archer
2 offense
3 defense
2 ranged
Horseman
4 offense
3 defense
4 mobile
2 offense
3 defense
2 ranged
Horseman
4 offense
3 defense
4 mobile
- The AI considers horsemen twice as powerful as archers for offense.
- The two units are equal for defense.
- Archers are useful for ranged warfare.
- Horsemen are useful for mobile warfare.
The basic patterns I followed are:
- Strategic and Siege units are valued higher than non-strategic units.
- Each era is valued higher than the previous era.
- Ranged units have higher priority for defense.
- Strategic units have lower priority for defense. (pillagable resources)
Each AI has the preferences listed below. These determine which type of priorities the AI focuses on. It then selects something from that category to build or research. For example, let's say Alexander is deciding what to build. We can see from the table he's twice as likely to get a Mobile unit (horse/tank) as a Ranged unit (archer). Let's say he decides on a Mobile unit. He now looks at the mobile units available in one of his cities. He can build Chariots or Companion Cavalary. The cavalry have a higher mobile priority, so he purchases a cavalry.