I ask the forum if it is possible to have an API that automatically decreases the PC speed in the character sheet according to the rule Variant: Encumbrance listed on page 176 Player Handbook? as does "ammo" for weapons. Variant: Encumbrance The rules for lifting and carrying are
intentionally simple. Here is a variant if you are looking for more
detailed rules for determining how a character is hindered by the weight
of equipment. When you use this variant, ignore the Strength column of
the Armor table in “Equipment.” If you carry weight in excess of 5 times your Strength score, you are encumbered , which means your speed drops by 10 feet. If you carry weight in excess of 10 times your Strength score, up to your maximum carrying capacity, you are instead heavily encumbered ,
which means your speed drops by 20 feet and you have disadvantage on
ability checks, attack rolls, and saving throws that use Strength,
Dexterity, or Constitution. Thank you