Combat logs

I’ve been working last week on creating a combat mechanism that combined good sides of the original V2b6 combat alongside with the proposed V2b7 java DCS changes (from 2008). We now have a working prototype that handles all unit actions and gives an example what a 1-vs-2 combat looks like.

In this scenario Noble Jozo is beset by 2 avatars belonging to Noble Pero, each carrying a sizable army.

Noble Jozo has all his army on throne, with both his avatars also on the throne hex, though without any units. As a result Jozo’s battle stats are a sum of throne + avatar stats, and all the units and avatars (and Jozo himself) are merged into one supergroup.

Pero’s avatars are 2 hexes apart and for that reason cannot be combined into a supergroup nor combine their respective stats, and thus act as two separate entities.

I’m adding two logs – the detailed version first. Inside you can see what order actions take place, when the morale is calculated (everything that happens between 2 morale calculations happens simultaneously for all parties). There aren’t any avatar actions yet – but as described in the last post the actions will be as follows:

  • Throne fight – Elder will cast from a list of known spells, burning (a player-defined maximum of) mana.
  • Wud avatar – assassin, has a chance to fail special attack that reduces target avatar stats by up to 20% or in rare occasions kills him.
  • Erol avatar – ranged, influences a small amount (per level) of enemy units to come over.
  • Haad avatar – burrowing – summuns Tuna wraiths that attack and demoralize.
  • Men avatar – melee, can bring back panicked units into fold (ignoring assassins that left entirely).
  • Monolith – restores a portion of morale every tick.

In any case all of the above are yet to be implemented, which is what I’m working on now.


Your army consisting of 13000 units with average morale 35.24 was lead by:
5756567 (1), avatar of Noble Jozo
Additionally the following have joined the fray:
Noble Jozo himself
kyyuyuk (1), avatar of Noble Jozo
Stats affecting army:
Offensive Warfare: 0
Defensive Warfare: 8
Leadership: 2
Charisma: 9
>>> Your army: <<<
Wudin Um: 2000
Un`Menar Ka: 2000
Haadun: 4000
Menar Um: 2000
Ish`Erolek: 3000
Total units: 13000, morale: 35.24
>> Your allies: <<
None.
>> Your opponents: <<
Noble Pero’s army:
Menar Ka: 4000
Un`Menar: 3000
Haadar: 5000
Menar Um: 2000
Total units: 14000, morale: 35.95
Noble Pero’s army:
Haadar: 4000
Erolek: 2000
Menar Um: 5000
Total units: 11000, morale: 24.73
—- Entering round 1: —-
Current morale: 35.24
Throne action phase:
Noble Jozo decided to skip action due to spells not being implemented yet.
Mindbender phase:
3000 mindbenders increase defense by 87.23 for each of 13000 troops.
Assassins phase:
2000 assassins prepare to attack!
1258 Wudin Um (Noble Jozo) killed 550 Menar Ka (Noble Pero)
741 Wudin Um (Noble Jozo) killed 372 Erolek (Noble Pero)
Current morale: 35.24
Terror phase:
3000 Un`Menar (Noble Pero) panicked 0 Wudin Um, 33 Un`Menar Ka, 69 Haadun, 0 Menar Um, 55 Ish`Erolek (Noble Jozo)
2000 units terrorize!
1258 Un`Menar Ka (Noble Jozo) panicked 43 Menar Ka, 41 Un`Menar, 64 Haadar, 0 Menar Um (Noble Pero)
741 Un`Menar Ka (Noble Jozo) panicked 38 Haadar, 18 Erolek, 0 Menar Um (Noble Pero)
Current morale: 34.03
Initial ranged phase:
1610 Erolek (Noble Pero) killed 44 Wudin Um, 32 Un`Menar Ka, 68 Haadun, 38 Menar Um, 54 Ish`Erolek (Noble Jozo)
2945 units fire arrows!
1853 Ish`Erolek (Noble Jozo) killed 106 Menar Ka, 101 Un`Menar, 159 Haadar, 70 Menar Um (Noble Pero)
1091 Ish`Erolek (Noble Jozo) killed 91 Haadar, 43 Erolek, 125 Menar Um (Noble Pero)
Current morale: 32.19
All-out brawl phase:
Melee units:
3871 Haadar (Noble Pero) killed 60 Un`Menar Ka, 142 Menar Um (Noble Jozo)
4875 Menar Um (Noble Pero) killed 80 Un`Menar Ka, 190 Menar Um (Noble Jozo)
3301 Menar Ka (Noble Pero) killed 140 Un`Menar Ka, 331 Menar Um (Noble Jozo)
2858 Un`Menar (Noble Pero) killed 51 Un`Menar Ka, 121 Menar Um (Noble Jozo)
4777 Haadar (Noble Pero) killed 74 Un`Menar Ka, 176 Menar Um (Noble Jozo)
1930 Menar Um (Noble Pero) killed 31 Un`Menar Ka, 75 Menar Um (Noble Jozo)
3897 swordsmen prepare to attack other swordsmen!
1217 Un`Menar Ka (Noble Jozo) killed 42 Menar Ka, 79 Un`Menar, 125 Haadar, 55 Menar Um (Noble Pero)
717 Un`Menar Ka (Noble Jozo) killed 84 Haadar, 116 Menar Um (Noble Pero)
1234 Menar Um (Noble Jozo) killed 14 Menar Ka, 27 Un`Menar, 43 Haadar, 19 Menar Um (Noble Pero)
727 Menar Um (Noble Jozo) killed 29 Haadar, 40 Menar Um (Noble Pero)
Ranged units:
1567 Erolek (Noble Pero) killed 8 Wudin Um, 6 Un`Menar Ka, 13 Haadun, 7 Menar Um, 10 Ish`Erolek (Noble Jozo)
2891 units fire arrows!
1819 Ish`Erolek (Noble Jozo) killed 21 Menar Ka, 19 Un`Menar, 31 Haadar, 13 Menar Um (Noble Pero)
1071 Ish`Erolek (Noble Jozo) killed 17 Haadar, 8 Erolek, 24 Menar Um (Noble Pero)
Burrowing units:
3863 burrowers prepare to attack!
2430 Haadun (Noble Jozo) killed 59 Menar Ka, 56 Un`Menar, 88 Haadar, 38 Menar Um (Noble Pero)
1432 Haadun (Noble Jozo) killed 50 Haadar, 23 Erolek, 69 Menar Um (Noble Pero)
Current morale: 20.18
Monolith phase:
Battle does not involve a monolith.
Current morale: 20.18
Assassins retreat:
1948 Wudin Um withdraw from battlefield.
—- Round 1 ended. —
>>> Your army: <<<
Wudin Um: 0 (0.0%), panicked: 1948 (97.4%), dead: 52 (2.6%)
Un`Menar Ka: 1493 (74.7%), panicked: 33 (1.6%), dead: 474 (23.7%)
Haadun: 3850 (96.2%), panicked: 69 (1.7%), dead: 81 (2.0%)
Menar Um: 920 (46.0%), panicked: 0 (0.0%), dead: 1080 (54.0%)
Ish`Erolek: 2881 (96.0%), panicked: 55 (1.8%), dead: 64 (2.1%)
Total units: 9144 (70.3%), panicked: 2105 (16.2%), dead: 1751 (13.5%), morale: 20.18
>> Your allies: <<
None.
>> Your opponents: <<
Noble Pero’s army:
Menar Ka: 3165 (79.1%), panicked: 43 (1.1%), dead: 792 (19.8%)
Un`Menar: 2677 (89.2%), panicked: 41 (1.4%), dead: 282 (9.4%)
Haadar: 4490 (89.8%), panicked: 64 (1.3%), dead: 446 (8.9%)
Menar Um: 1805 (90.2%), panicked: 0 (0.0%), dead: 195 (9.8%)
Total units: 12137 (86.7%), panicked: 148 (1.1%), dead: 1715 (12.2%), morale: 21.98
Noble Pero’s army:
Haadar: 3691 (92.3%), panicked: 38 (0.9%), dead: 271 (6.8%)
Erolek: 1536 (76.8%), panicked: 18 (0.9%), dead: 446 (22.3%)
Menar Um: 4626 (92.5%), panicked: 0 (0.0%), dead: 374 (7.5%)
Total units: 9853 (89.6%), panicked: 56 (0.5%), dead: 1091 (9.9%), morale: 13.91
—- Entering round 2: —-
Current morale: 20.18
Throne action phase:
Noble Jozo decided to skip action due to spells not being implemented yet.
Mindbender phase:
2881 mindbenders increase defense by 119.1 for each of 9144 troops.
Terror phase:
2677 Un`Menar (Noble Pero) panicked 29 Un`Menar Ka, 79 Haadun, 0 Menar Um, 63 Ish`Erolek (Noble Jozo)
1493 units terrorize!
939 Un`Menar Ka (Noble Jozo) panicked 33 Menar Ka, 30 Un`Menar, 48 Haadar, 0 Menar Um (Noble Pero)
553 Un`Menar Ka (Noble Jozo) panicked 28 Haadar, 13 Erolek, 0 Menar Um (Noble Pero)
Current morale: 18.31
All-out brawl phase:
Melee units:
3663 Haadar (Noble Pero) killed 66 Un`Menar Ka, 96 Menar Um (Noble Jozo)
4626 Menar Um (Noble Pero) killed 88 Un`Menar Ka, 128 Menar Um (Noble Jozo)
3132 Menar Ka (Noble Pero) killed 154 Un`Menar Ka, 224 Menar Um (Noble Jozo)
2647 Un`Menar (Noble Pero) killed 55 Un`Menar Ka, 80 Menar Um (Noble Jozo)
4442 Haadar (Noble Pero) killed 80 Un`Menar Ka, 116 Menar Um (Noble Jozo)
1805 Menar Um (Noble Pero) killed 34 Un`Menar Ka, 50 Menar Um (Noble Jozo)
2384 swordsmen prepare to attack other swordsmen!
921 Un`Menar Ka (Noble Jozo) killed 32 Menar Ka, 59 Un`Menar, 94 Haadar, 41 Menar Um (Noble Pero)
542 Un`Menar Ka (Noble Jozo) killed 64 Haadar, 88 Menar Um (Noble Pero)
578 Menar Um (Noble Jozo) killed 6 Menar Ka, 12 Un`Menar, 20 Haadar, 9 Menar Um (Noble Pero)
341 Menar Um (Noble Jozo) killed 13 Haadar, 19 Menar Um (Noble Pero)
Ranged units:
1523 Erolek (Noble Pero) killed 6 Un`Menar Ka, 16 Haadun, 4 Menar Um, 13 Ish`Erolek (Noble Jozo)
2818 units fire arrows!
1773 Ish`Erolek (Noble Jozo) killed 20 Menar Ka, 19 Un`Menar, 30 Haadar, 13 Menar Um (Noble Pero)
1044 Ish`Erolek (Noble Jozo) killed 17 Haadar, 8 Erolek, 23 Menar Um (Noble Pero)
Burrowing units:
3771 burrowers prepare to attack!
2372 Haadun (Noble Jozo) killed 58 Menar Ka, 54 Un`Menar, 85 Haadar, 38 Menar Um (Noble Pero)
1398 Haadun (Noble Jozo) killed 49 Haadar, 23 Erolek, 67 Menar Um (Noble Pero)
Current morale: 4.82
Monolith phase:
Battle does not involve a monolith.
Current morale: 4.82
—- Round 2 ended. —
>>> Your army: <<<
Wudin Um: 0 (0.0%), panicked: 1948 (97.4%), dead: 52 (2.6%)
Un`Menar Ka: 981 (49.0%), panicked: 62 (3.1%), dead: 957 (47.9%)
Haadun: 3755 (93.9%), panicked: 148 (3.7%), dead: 97 (2.4%)
Menar Um: 222 (11.1%), panicked: 0 (0.0%), dead: 1778 (88.9%)
Ish`Erolek: 2805 (93.5%), panicked: 118 (3.9%), dead: 77 (2.6%)
Total units: 7763 (59.7%), panicked: 2276 (17.5%), dead: 2961 (22.8%), morale: 4.82
>> Your allies: <<
None.
>> Your opponents: <<
Noble Pero’s army:
Menar Ka: 3016 (75.4%), panicked: 76 (1.9%), dead: 908 (22.7%)
Un`Menar: 2503 (83.4%), panicked: 71 (2.4%), dead: 426 (14.2%)
Haadar: 4213 (84.3%), panicked: 112 (2.2%), dead: 675 (13.5%)
Menar Um: 1704 (85.2%), panicked: 0 (0.0%), dead: 296 (14.8%)
Total units: 11436 (81.7%), panicked: 259 (1.9%), dead: 2305 (16.5%), morale: 16.16
Noble Pero’s army:
Haadar: 3520 (88.0%), panicked: 66 (1.6%), dead: 414 (10.3%)
Erolek: 1492 (74.6%), panicked: 31 (1.6%), dead: 477 (23.9%)
Menar Um: 4429 (88.6%), panicked: 0 (0.0%), dead: 571 (11.4%)
Total units: 9441 (85.8%), panicked: 97 (0.9%), dead: 1462 (13.3%), morale: 9.71
—- Entering round 3: —-
Current morale: 4.82
Throne action phase:
Noble Jozo decided to skip action due to spells not being implemented yet.
Mindbender phase:
2805 mindbenders increase defense by 136.58 for each of 7763 troops.
Terror phase:
2503 Un`Menar (Noble Pero) panicked 20 Un`Menar Ka, 82 Haadun, 0 Menar Um, 65 Ish`Erolek (Noble Jozo)
981 units terrorize!
617 Un`Menar Ka (Noble Jozo) panicked 21 Menar Ka, 19 Un`Menar, 31 Haadar, 0 Menar Um (Noble Pero)
363 Un`Menar Ka (Noble Jozo) panicked 18 Haadar, 9 Erolek, 0 Menar Um (Noble Pero)
Current morale: 2.67
All-out brawl phase:
Melee units:
3502 Haadar (Noble Pero) killed 80 Un`Menar Ka, 43 Menar Um (Noble Jozo)
4429 Menar Um (Noble Pero) killed 108 Un`Menar Ka, 57 Menar Um (Noble Jozo)
2995 Menar Ka (Noble Pero) killed 188 Un`Menar Ka, 100 Menar Um (Noble Jozo)
2484 Un`Menar (Noble Pero) killed 66 Un`Menar Ka, 35 Menar Um (Noble Jozo)
4182 Haadar (Noble Pero) killed 96 Un`Menar Ka, 51 Menar Um (Noble Jozo)
1704 Menar Um (Noble Pero) killed 41 Un`Menar Ka, 22 Menar Um (Noble Jozo)
1183 swordsmen prepare to attack other swordsmen!
604 Un`Menar Ka (Noble Jozo) killed 21 Menar Ka, 38 Un`Menar, 61 Haadar, 27 Menar Um (Noble Pero)
356 Un`Menar Ka (Noble Jozo) killed 42 Haadar, 58 Menar Um (Noble Pero)
139 Menar Um (Noble Jozo) killed 1 Menar Ka, 3 Un`Menar, 4 Haadar, 2 Menar Um (Noble Pero)
82 Menar Um (Noble Jozo) killed 3 Haadar, 4 Menar Um (Noble Pero)
Ranged units:
1483 Erolek (Noble Pero) killed 4 Un`Menar Ka, 17 Haadun, 1 Menar Um, 14 Ish`Erolek (Noble Jozo)
2740 units fire arrows!
1724 Ish`Erolek (Noble Jozo) killed 20 Menar Ka, 18 Un`Menar, 29 Haadar, 13 Menar Um (Noble Pero)
1015 Ish`Erolek (Noble Jozo) killed 16 Haadar, 8 Erolek, 23 Menar Um (Noble Pero)
Burrowing units:
3673 burrowers prepare to attack!
2311 Haadun (Noble Jozo) killed 58 Menar Ka, 52 Un`Menar, 83 Haadar, 37 Menar Um (Noble Pero)
1361 Haadun (Noble Jozo) killed 47 Haadar, 23 Erolek, 65 Menar Um (Noble Pero)
Current morale: -8.33
>>>>>>>      DEFEAT!      <<<<<<<<
>>> Your army: <<<
Wudin Um: 0 (0.0%), panicked: 1948 (97.4%), dead: 52 (2.6%)
Un`Menar Ka: 378 (18.9%), panicked: 82 (4.1%), dead: 1540 (77.0%)
Haadun: 3656 (91.4%), panicked: 230 (5.8%), dead: 114 (2.9%)
Menar Um: 0 (0.0%), panicked: 0 (0.0%), dead: 2000 (100.0%)
Ish`Erolek: 2726 (90.9%), panicked: 183 (6.1%), dead: 91 (3.0%)
Total units: 6760 (52.0%), panicked: 2443 (18.8%), dead: 3797 (29.2%), morale: -8.33
>> Your allies: <<
None.
>> Your opponents: <<
Noble Pero’s army:
Menar Ka: 2895 (72.4%), panicked: 97 (2.4%), dead: 1008 (25.2%)
Un`Menar: 2373 (79.1%), panicked: 90 (3.0%), dead: 537 (17.9%)
Haadar: 4005 (80.1%), panicked: 143 (2.9%), dead: 852 (17.0%)
Menar Um: 1625 (81.2%), panicked: 0 (0.0%), dead: 375 (18.8%)
Total units: 10898 (77.8%), panicked: 330 (2.4%), dead: 2772 (19.8%), morale: 11.43
Noble Pero’s army:
Haadar: 3394 (84.8%), panicked: 84 (2.1%), dead: 522 (13.1%)
Erolek: 1452 (72.6%), panicked: 40 (2.0%), dead: 508 (25.4%)
Menar Um: 4279 (85.6%), panicked: 0 (0.0%), dead: 721 (14.4%)
Total units: 9125 (83.0%), panicked: 124 (1.1%), dead: 1751 (15.9%), morale: 6.36

Your army consisting of 13000 units with average morale 35.24 was lead by:
5756567, Noble Jozo, kyyuyuk
Stats affecting army:
Offensive Warfare: 0
Defensive Warfare: 8
Leadership: 2
Charisma: 9
>>> Your army: <<<
Total units: 13000, morale: 35.24
>> Your allies: <<
None.
>> Your opponents: <<
Noble Pero’s army:
Total units: 14000, morale: 35.95
Noble Pero’s army:
Total units: 11000, morale: 24.73
ROUND 1:
Throne acton phase:
Noble Jozo skips action.
Mindbender phase:
3000 mindbenders increase defense by: 87.23
Assassins phase:
2000 assassins (Noble Jozo) killed: 550 (Noble Pero), 372 (Noble Pero)
Terror phase:
3000 terror units (Noble Pero) panicked: 157 (Noble Jozo)
2000 terror units (Noble Jozo) panicked: 148 (Noble Pero), 56 (Noble Pero)
Initial ranged phase:
1610 archers (Noble Pero) killed: 236 (Noble Jozo)
2945 archers (Noble Jozo) killed: 436 (Noble Pero), 259 (Noble Pero)
All-out brawl phase:
Melee units:
8746 swordsmen (Noble Pero) killed: 472 (Noble Jozo)
12866 swordsmen (Noble Pero) killed: 999 (Noble Jozo)
3897 swordsmen (Noble Jozo) killed: 404 (Noble Pero), 269 (Noble Pero)
Ranged units:
1567 archers (Noble Pero) killed: 44 (Noble Jozo)
2891 archers (Noble Jozo) killed: 84 (Noble Pero), 49 (Noble Pero)
Burrowing units:
3863 burrowers (Noble Jozo) killed: 241 (Noble Pero), 142 (Noble Pero)
Monolith phase:
No monolith nearby.
1948 assassins withdraw from battlefield.
ROUND 1 END
>>> Your army: <<<
Total units: 9144 (70.3%), panicked: 2105 (16.2%), dead: 1751 (13.5%), morale: 20.18
>> Your allies: <<
None.
>> Your opponents: <<
Noble Pero’s army:
Total units: 12137 (86.7%), panicked: 148 (1.1%), dead: 1715 (12.2%), morale: 21.98
Noble Pero’s army:
Total units: 9853 (89.6%), panicked: 56 (0.5%), dead: 1091 (9.9%), morale: 13.91
ROUND 2:
Throne acton phase:
Noble Jozo skips action.
Mindbender phase:
2881 mindbenders increase defense by: 119.1
Terror phase:
2677 terror units (Noble Pero) panicked: 171 (Noble Jozo)
1493 terror units (Noble Jozo) panicked: 111 (Noble Pero), 41 (Noble Pero)
All-out brawl phase:
Melee units:
8289 swordsmen (Noble Pero) killed: 378 (Noble Jozo)
12026 swordsmen (Noble Pero) killed: 793 (Noble Jozo)
2384 swordsmen (Noble Jozo) killed: 273 (Noble Pero), 184 (Noble Pero)
Ranged units:
1523 archers (Noble Pero) killed: 39 (Noble Jozo)
2818 archers (Noble Jozo) killed: 82 (Noble Pero), 48 (Noble Pero)
Burrowing units:
3771 burrowers (Noble Jozo) killed: 235 (Noble Pero), 139 (Noble Pero)
Monolith phase:
No monolith nearby.
ROUND 2 END
>>> Your army: <<<
Total units: 7763 (59.7%), panicked: 2276 (17.5%), dead: 2961 (22.8%), morale: 4.82
>> Your allies: <<
None.
>> Your opponents: <<
Noble Pero’s army:
Total units: 11436 (81.7%), panicked: 259 (1.9%), dead: 2305 (16.5%), morale: 16.16
Noble Pero’s army:
Total units: 9441 (85.8%), panicked: 97 (0.9%), dead: 1462 (13.3%), morale: 9.71
ROUND 3:
Throne acton phase:
Noble Jozo skips action.
Mindbender phase:
2805 mindbenders increase defense by: 136.58
Terror phase:
2503 terror units (Noble Pero) panicked: 167 (Noble Jozo)
981 terror units (Noble Jozo) panicked: 71 (Noble Pero), 27 (Noble Pero)
All-out brawl phase:
Melee units:
7931 swordsmen (Noble Pero) killed: 288 (Noble Jozo)
11365 swordsmen (Noble Pero) killed: 599 (Noble Jozo)
1183 swordsmen (Noble Jozo) killed: 157 (Noble Pero), 107 (Noble Pero)
Ranged units:
1483 archers (Noble Pero) killed: 36 (Noble Jozo)
2740 archers (Noble Jozo) killed: 80 (Noble Pero), 47 (Noble Pero)
Burrowing units:
3673 burrowers (Noble Jozo) killed: 230 (Noble Pero), 135 (Noble Pero)
>>>>>>>      DEFEAT!      <<<<<<<<
>>> Your army: <<<
Total units: 6760 (52.0%), panicked: 2443 (18.8%), dead: 3797 (29.2%), morale: -8.33
>> Your allies: <<
None.
>> Your opponents: <<
Noble Pero’s army:
Total units: 10898 (77.8%), panicked: 330 (2.4%), dead: 2772 (19.8%), morale: 11.43
Noble Pero’s army:
Total units: 9125 (83.0%), panicked: 124 (1.1%), dead: 1751 (15.9%), morale: 6.36