Olleus
Deity
i have an idea on how to make the ai a lot more intelligent. Right now the ai behaves in exactly the same way, how about making it learn from a game? say if it gets invaded and all its cities are captures, next game it will build a bigger better army, specialy more of the troops that captured its cities. If a civ looses to a cultural win then next game it will concentrate more on culture.
I don't know how to implement these ideas but i have a few ideas. It should be (technicaly) possible to make a script that looks into the game save files and termines which civs lost and how. Then using this information it should be able to alter the XML lines that say how likely it is to build some particular unit or building.
E.G.:
I play as the romans on a map against the aztecs and americans. Early on in the game my knights completely slaughter the aztec's macemen and towards the end of the game i beat the americans in a close fought comflict between tanks and infantry.
Once the game has finnished the 'inteligent AI' program looks at the review video (the thing at the end of the game that shows everything thats happened(forgoten the exact name)). It sees that it took me 10 turns to destroy the aztecs, from declaring war to capturing there last city, and sees that i built a lot of knights and them a lot of macemen. So it lowers the chance of ai building maceman and increases the chance of it building knights. It then looks at the war against America and sees it took 80 turns for them to die, judges this to be a long time and so alters nothing.
As i said i have no idea on how to make this work but i am (quite) sure that someone who knows a complex programming language could do it. This could be the start of AI that actualy learns?
I don't know how to implement these ideas but i have a few ideas. It should be (technicaly) possible to make a script that looks into the game save files and termines which civs lost and how. Then using this information it should be able to alter the XML lines that say how likely it is to build some particular unit or building.
E.G.:
I play as the romans on a map against the aztecs and americans. Early on in the game my knights completely slaughter the aztec's macemen and towards the end of the game i beat the americans in a close fought comflict between tanks and infantry.
Once the game has finnished the 'inteligent AI' program looks at the review video (the thing at the end of the game that shows everything thats happened(forgoten the exact name)). It sees that it took me 10 turns to destroy the aztecs, from declaring war to capturing there last city, and sees that i built a lot of knights and them a lot of macemen. So it lowers the chance of ai building maceman and increases the chance of it building knights. It then looks at the war against America and sees it took 80 turns for them to die, judges this to be a long time and so alters nothing.
As i said i have no idea on how to make this work but i am (quite) sure that someone who knows a complex programming language could do it. This could be the start of AI that actualy learns?