glider1
Deity
People over at Civ5 strategy have mentioned that the AI will occasionally build forts and man them, but usually at a poor strategic location. I realize that it is a big computational load for the AI to calculate best placement for forts, but what about if fort placement was pre-computed during the initial map generation based on terrain features, and the fort location points stored in a database, so that when the AI get's the urge to build a fort during the game, it simply looks up the database and checks whether the optimal fort location is in it's territory, and then places it there. This would be a fair bit of work to code and it would mean modifying Lua map algorithms to add fort location logic, but could it be worth it?
First question is whether the AI's fort placement even can be intercepted in Lua during the game. Second question is what is a good fort location that can be pre-computed? I think that it must be possible to compute terrain based choke points that fill in a gap in a line of mountains for example. We don't know where cities will be located during pre-compute, but there are positions on the map that are good choke points merely by terrain feature I think. Things like peninsulas etc.
Cheers
First question is whether the AI's fort placement even can be intercepted in Lua during the game. Second question is what is a good fort location that can be pre-computed? I think that it must be possible to compute terrain based choke points that fill in a gap in a line of mountains for example. We don't know where cities will be located during pre-compute, but there are positions on the map that are good choke points merely by terrain feature I think. Things like peninsulas etc.
Cheers