I was looking for a script that checks if the player's hitpoints are below a percentage; ie <50%.
perhaps it can check if the player is afflicted by a disease.
I'd want to use it as a conditional in conversation trees. So npcs might be like "oh gross your skin is falling off your bones", "Oh man, thats a nasty wound get that checked out dude!" Of course they won't talk like that in the campaign but as an exmaple.
object oPC = GetPCSpeaker();
nInt = GetHitDice(oPC);
SetLocalInt(oPC, "HitPoints", nInt);
if (GetLocalInt(oPC, "Hitpoints")<= .5f)