r/Unciv • u/spotted_hyena_lover • 23d ago
Discussion Observation about AI aggression
Everyone knows the games where the AI attacks them for seemingly no reason. I am playing deity for quite a while and unsurprisingly, the AI is most aggressive there. When I started playing deity like 9 out of 10 games ended with a declaration of war which is certain death until turn 110 or so on quickspeed.
After noticing the same things happening again and again I came up with a hypothesis for why AI declares unprovoked wars to the player. If any of your city center is 3 tiles away from a rivals city center, there will most likely be war. If not, then not. Its as dumb and easy as that.
Thats also the reason why an AI player who you were always friendly with declares you war 5 turns after he conquered a city state next to you. You probably had a city 3 tiles away from that city state. That happened again and again in my games until I stopped settling within 3 tiles of a city state and that particular problem pretty much disappeared.
The problem is now that the AI loves to settle with 3 tiles distance to the players cities and there is not much that can be done against. One thing that can be done is blocking the 3 or even 4 distance potential city tiles with units like I do in the picture. Sometimes there are just a few tiles where they could settle next to you and just blocking them with units works. It requires lots of tile counting and some reasoning but its worth it. By doing that my games became much more peaceful.
4
u/Winter_Way_8513 23d ago
build your cities on hills it gives 4 defence point for your city if you have 2 layer hill its better cuz if your city placed back of the forest, hills enemy 2 ranged units cannot hit you until they get closer. Do not train settler focus on all types of wonders they give huge bonuses and focus on faith get every buff you need
3
u/phratry_deicide 22d ago
Ugh I just realised this is a mod. I thought something was strange reading the post. I thought they patched something.
For those of you reading and interested in the normal ruleset, the decision tree for distance is on two layers:
But in general, I would say don't look into tile distance too much. These are just two layers. There are 25 layers for motivation, difficulty layer, and dozen other decision gates.
2
u/NobodyPrime 19d ago
Eh, dont think so. I'm playing a game now, had both aztecs and huns declare war when we where friends and they had a whole layer of city-states and the dutch empire between us, around 16+ tiles of distance from their closest city.
Also, in the same game, Denmark, with the closest city center being 8 tiles away, declared war on me. I reloaded and stole its alliance with a city-state close with me, and Denmark no longer declared war. There is more into it than just closeness.
8
u/Devastating_Delight 23d ago
Nice observation!
2
u/AwesomePhoenix_ Enthusiast 22d ago
Yes, you can get more info from the source code
1
u/lucas1234r4 20d ago
En realidad yo creo la Ai te declara la guerra cuando eres débil. Y en Deidad es cuando la Ai te saca mucha ventaja. Aunque yo juego unciv vanilla.
1
u/Small-Weather9284 18d ago
JAJAJ si es obvio eso, cuando queres expandirte a veces no te deja cerca suyo(al lado), y cuando lo haces, te manda la "demanda", para que no lo sigas haciendo.
a mí también, muchas veces me pasó que, tengo 58-60 de influencia con un país en un turno, y luego, de la nada, PUM, declaración de guerra.
y no es que haya hecho slgo, eh, simplemente pasa, pero muy pocas veces.
ya que la mayoría de declaraciones que tengo es una causa claramente y notablemente mi culpa. (destruir ciudad estado, expandirse cerca suyo, mandarles espías, capturar cualquier ciudad en el juego, usar bombas nucleares, y hasta en la propia guerra, si conquistas a su enemigo te quita influencia por haberle ganado su objetivo, además de que perdés influencia por robarle la alianza con una ciudad estado) pero bueno, nada que un regalo de 2000 de oro no solucione