Character Sheet Stat Bonus
Revision as of 20:56, 6 March 2026 by ArrothThaiel (Talk | contribs) (Created page with "Creator: Khyro Purpose: Correct stat bonus caps on the character sheet. Default Behavior The character sheet indicates a stat bonus and stat bonus cap (XX/XX) for Health,...")
Creator: Khyro
Purpose: Correct stat bonus caps on the character sheet.
Default Behavior
The character sheet indicates a stat bonus and stat bonus cap (XX/XX) for Health, Stamina, and Mana. While a character can have bonuses for all three stats, a stat bonus cap only applies for Health. Stamina and Mana do not have a stat bonus cap.
Modified Behavior The character sheet indicates a stat bonus and stat bonus cap (XX/XX) for Health, but only a stat bonus for Stamina and Mana.
To create the mod, open the file CharacterSheet.lua to function CharacterSheet.HealthStaminaManaBonus( which ). Replace the code chunk
if max > 0 then
heal = L"/+"..StringToWString(tostring(max))..L")"
elseif max < 0 then
heal = L"/"..StringToWString(tostring(max))..L")"
end
if heal == L"" then
if val > 0 then
heal = L"(+"..StringToWString(tostring(val))..L")"
elseif val < 0 then
heal = L"("..StringToWString(tostring(val))..L")"
end
else
if val > 0 then
heal = L"(+"..StringToWString(tostring(val))..heal
elseif val < 0 then
heal = L"("..StringToWString(tostring(val))..heal
else
heal = L"(+0"..heal
end
end
with the code chunk
-- check for cap value if (CharacterSheet.Caps[which] ~= nil) then heal = L"(+" .. StringToWString(tostring(max)) .. L" / " .. StringToWString(tostring(CharacterSheet.Caps[which])) .. L")" else heal = L"(+" .. StringToWString(tostring(max)) .. L")" end
Remember to save the file and load your custom UI from the login screen