player1, that is exactly what I suggested over my last few posts, even down to eventually settling for only %BodyguardKilled :P

The input it takes is an actual percentage though (instead of a ratio), and I settled for 50 since the troops have a less hitpoints than the general.