purplepizza117 wrote:
F. Marion wrote:
the Alsace - Lorraine swapping between France and Germany
As far as I know you can achieve this by trading provinces between players, but I assume you mean for war consequences?
Yes. As you know, the Alsace - Lorraine swap(s) were a result of winning / losing wars. For as far back as european history goes, it has always been about the winner getting land from the loser. If we attempt to replicate that in the game, it would entail the AI having a mechanism to agree to a land transfer in return for peace.
The real challenge to this whole idea is making sure the AI has a metric for whether or not it is winning or losing the war.
I am guessing that there is _something_ in the AI code but I have not seen enough of the AI actually doing anything to guess what that something might be.
As a simple metric, I would have it look at things I know it is already calculating. Or at least are being calculated for players...
Trend in number of provinces, number of VPs, and positive / negative flows for goods are all good proxy indicators of victory or defeat. Certainly all those things could be in the red right before a grand victory or in the green just prior to a crushing loss but in general they make good proxies. We can worry about the edge cases later, after the first order code is done.
I don't deny this is a significant coding effort but it is certainly in the realm of possible. Even better, it does not muck with existing code. Pulling data from variables that already exist in the slate is a pretty trivial thing. The output is a a fairly straight forward range of responses.
Winning = SurrenderOffer is false
Tie = SurrenderOffer is 1 return to status quo
Losing = SurrenderOffer is 2 land/goods for peace
Disaster = SurrenderOffer is 3 or Vichy France style of puppet government
Implementing that output is not trivial. I don't know how complex or simple the AI is. Getting the military forces of the NonPlayerCountry to behave correctly for this will be a challenge. Especially since, at the moment, there does not even seem to be a way to tell them they have lost the war and should surrender.
Anyway, I'm sure the programmers would love to tackle this if there were enough time/money in the budget. It is just too much fun to not want to code this. As we can tell from the fact that I am writing about it instead of writing code for my employer. Gotta go...