PDA

View Full Version : Total weight carried



Xarxus
April 25th, 2023, 10:54
Here's my problem: I have a custom ruleset in which I have NOT changed anything on the character sheet, leaving
the CoreRPG one. Instead, I changed the class for the items, leaving them with the default name, which is item.
In my class weight is defined; same name, type and same position in the XML structure as the
CoreRPG.

If I take an item and put it into a character's inventory, the item appears correctly, shows the weight correctly, but the
encumbrance (Total weight carried) is not updated. I've tried doing the same directly in a CoreRPG campaign
and the encumbrance updates.

What don't I know? What should I study?

Trenloe
April 25th, 2023, 11:33
Look in the onInit function of scripts\manager_char_encumbrance.lua - this will add the standard encumbrance calculation for supported rulesets (listed in _tStandardSupportedRulesets).

Xarxus
April 25th, 2023, 11:46
Yep, found. TY!