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 - though 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% cap - 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% damage from any single attack (as you are no doubt familiar 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 out 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 probably an easier thing to mod (getting the targetting to work well will be the harder part - though it doesn't sound like you've had any specific issues with HP troops being targeted 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.

... which could actually be a plus to limit demon commander's OPness: the demons are technically invicible unless someone uses Chaos or Nikkou against them... and Kentarou as an enemy is pretty pitiful. Having demons on your team is very much overpowered, but troop based damage means they are much less OP on harder difficulties since their troop count will be lower compared to others