Log in
Tome of Knowledge Menu

Character Sheet Stat Bonus

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

See Also

  • [[Enhanced Client Mod List]]

  • [[Enhanced Client Modding]]

Block tree (JSON)
{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Creator: Khyro"}],"attrs":{"align":null}},{"type":"paragraph","content":[{"type":"text","text":"Purpose: Correct stat bonus caps on the character sheet."}],"attrs":{"align":null}},{"type":"paragraph","content":[{"type":"text","text":"Default Behavior"}],"attrs":{"align":null}},{"type":"paragraph","content":[{"type":"text","text":"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."}],"attrs":{"align":null}},{"type":"paragraph","content":[{"type":"text","text":"Modified Behavior"}],"attrs":{"align":null}},{"type":"paragraph","content":[{"type":"text","text":"The character sheet indicates a stat bonus and stat bonus cap (XX/XX) for Health, but only a stat bonus for Stamina and Mana."}],"attrs":{"align":null}},{"type":"paragraph","content":[{"type":"text","text":"To create the mod, open the file CharacterSheet.lua to function CharacterSheet.HealthStaminaManaBonus( which ). Replace the code chunk"}],"attrs":{"align":null}},{"type":"paragraph","content":[{"type":"text","text":"if max > 0 then\n  heal = L\"/+\"..StringToWString(tostring(max))..L\")\"\n elseif max < 0 then\n  heal = L\"/\"..StringToWString(tostring(max))..L\")\"\n end"}],"attrs":{"align":null}},{"type":"paragraph","content":[{"type":"text","text":"if heal == L\"\" then\n  if val > 0 then\n   heal = L\"(+\"..StringToWString(tostring(val))..L\")\"\n  elseif val < 0 then\n   heal = L\"(\"..StringToWString(tostring(val))..L\")\"\n  end\n else\n  if val > 0 then\n   heal = L\"(+\"..StringToWString(tostring(val))..heal\t\t\t\t\n  elseif val < 0 then\n   heal = L\"(\"..StringToWString(tostring(val))..heal\n  else\n   heal = L\"(+0\"..heal\n  end\n end"}],"attrs":{"align":null}},{"type":"paragraph","content":[{"type":"text","text":"with the code chunk"}],"attrs":{"align":null}},{"type":"paragraph","content":[{"type":"text","text":"-- check for cap value\n if (CharacterSheet.Caps[which] ~= nil) then\n  heal = L\"(+\" .. StringToWString(tostring(max)) .. L\" / \" .. StringToWString(tostring(CharacterSheet.Caps[which])) .. L\")\"\n else\n  heal = L\"(+\" .. StringToWString(tostring(max)) .. L\")\"\n end"}],"attrs":{"align":null}},{"type":"paragraph","content":[{"type":"text","text":"Remember to save the file and load your custom UI from the login screen"}],"attrs":{"align":null}},{"type":"heading","attrs":{"level":2},"content":[{"type":"text","text":"See Also"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"[[Enhanced Client Mod List]]"}],"attrs":{"align":null}}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"[[Enhanced Client Modding]]"}],"attrs":{"align":null}}]}]}]}