yeti_c wrote:Problem is - you can't tell who won the attacks with this format...
You can see that attacker lost 3 and defender lost 2...
However we don't know how many were there to start with?
Perhaps a <Success> tag?
Also - you need to know how many armies were advanced into the space.
The last - and probably most valid point...
This is all well and good - for "auto attacks" - but the normal attack button will spawn a multitude of these logs - is the server meant to condense these into one?
What happens if you attack one territory - kill a few - then attack a different one kill a few - then attack the first territory again?
Well, yes you can tell who won the attack, but I haven't clearly explained the scope of the output.
I think it's too much to store every single dice roll, therefore
no point in recording every "sub-attack" either.
So if you restrict to just conquer and failed to conquer
then all you need to do is look at the sign of the armies.
So <armies>8</armies><defender>-1</defender>
means a successful attack
moving 8 armies into the space occupied by the 1 defender.
So that means
<armies>-2</armies>
means a cumulative failed attack attempt losing 2 armies.
So the attacker might have made several attempts but ultimately
failed to remove all defenders.
I think that addresses all of your points.