In the ruleset, hit dice must be entered like "5d6+5d6+0" but paizo statblocks can also be presented as "10 HD; 5d6+5d6"
I have accommodated for this format in my Live Hitpoints extension and it could be integrated into the ruleset.
in the addNPC function of manager_combat2.lua, just change this:
to thisCode:if sOptHRNH == "max" and sHD ~= "" then
nHP = StringManager.evalDiceString(sHD, true, true);
elseif sOptHRNH == "random" and sHD ~= "" then
nHP = math.max(StringManager.evalDiceString(sHD, true), 1);
end
Code:if sOptHRNH == "max" and sHD ~= "" then
sHD = string.gsub(sHD, "%d+%s-HD%;", "")
nHP = StringManager.evalDiceString(sHD, true, true);
elseif sOptHRNH == "random" and sHD ~= "" then
sHD = string.gsub(sHD, "%d+%s-HD%;", "")
nHP = math.max(StringManager.evalDiceString(sHD, true), 1);
end