Thread:TsuchiNoKao/@comment-26544499-20200927173301/@comment-46261745-20200927195020

Huh, that's interesting - I didn't actually realize it affected their attack damage, just knew about the counterattack. It shouldn't be surprising though, considering the battle calculation for troop battles calculates damage and damage cap based on troop count, not health.

I guess that's probably 90% of the puzzle right there. There's no special 'HP commander' function - thought we could add such a thing in - it just goes through the normal damage calculation function.

In fact, I did notice this in terms fo the 50% cp - AliceSoft has a 1:1 ratio for HP and troop damage. So a 700 HP commander basically has 700 troops in terms of defending. The main difference, however, is that HP commanders will never receive more than 50% daamaage from any single attack (s you are no doubt faamiliar with with Motonari).

As for their troop couunts themselves, it's all in their base character array, so the only key difference is that when they have the 個人 attribute, they will simply have a different HP bar in battle and die when HP hits 0 instead of troop count.

That might be all there is to it, in fact... and of course graphical stuff and the fact you can't buy them new troops.

The 'buggy' part of this is really that the game is telling you that they are single troop units, while the damage calculation is entirely based on their hidden troop numbers... As FixSRWiki hsa explaind before in the wiki pages and his blog, this is why AaliceSoft went with the fixed damage gimmicks for Mouri, and it's also why they went with that HP damage cap aat 50% gimmick. I've essentially left the HP damage cap there, but smoothed it out using a few different damage thresholds and fractions of health based on the overall damage of the attack, but the damage is still capped ouut at ~50%.

I could probably fairly easily rig the damage calculation to use a number that is not their hidden troop value, if we wanted to explore that. Options include character related events, a hidden 'HP military power' type stat for a country that could be modified in different dificulties or when demons are enemies or allies, etc. If anything, this is probalyy an easier thing to mod (getting the targetting to work well will be the hrder part - though it doesn't sound like you've had any specific issues with HP troops being targetted by enemies, Beneblade?)

Of course, we can also leave it as is, but my impression is that this won't scale well in different difficulties as it is.