Encumbrance Help

... A place to ask for help on any topic whether it be starting out to player killing to IT issues.
Post Reply
Emily
Posts: 125
Joined: Tue Nov 19, 2019 9:51 pm

Encumbrance Help

Post by Emily » Sat Jan 22, 2022 11:15 am

Could I get someone who knows the encumbrance calculations to help look over my algorithm? Pulling the numbers from here:
https://wotmud.fandom.com/wiki/Encumbrance

I use zmud, but treat it as pseudocode.

#MATH maxCarryWeight {(3.5 * @statSTR) + @statCON}
#MATH maxWornWeight {(5 * @statSTR) + (2.5 * @statCON)}
#MATH maxWeightTotal {@maxCarryWeight + @maxWornWeight}
#MATH currentweight {@statWornWeight + @statCarryWeight}
#MATH OffensiveWeightMult {( 1.0 - %float( (5.0 * @currentweight) / (25.0 * @maxWeightTotal)))}
#MATH DodgeWeightMult {( 1.0 - %float( (5.0 * @currentweight) / (8.0 * @maxWeightTotal)))}
#MATH ParryWeightMult {( 1.0 - %float( (5.0 * @currentweight) / (16.0 * @maxWeightTotal)))}
#MATH tmovesregenrate {( @tbaseregen - %float( (10.0 * @currentweight) / ((8.5 * @statSTR) + (3.5 * @statCON))))}
#MATH UnWeightedOffensive {@statOffensive / @OffensiveWeightMult}
#VAR UnWeightedOffensive {%format( 2, @UnWeightedOffensive)}
#MATH UnWeightedDodge {@statDodge / @DodgeWeightMult}
#VAR UnWeightedDodge {%format( 2, @UnWeightedDodge)}
#MATH UnWeightedParry {@statParry / @ParryWeightMult}
#VAR UnWeightedParry {%format( 2, @UnWeightedParry)}
#SHOW OB: @StatOffensive / @UnWeightedOffensive
#SHOW DB: @StatDodge / @UnWeightedDodge
#SHOW PB: @StatParry / @UnWeightedParry

-----------------------------------------

With my staff and dodge eq (no trinkets):

Your height is 5 feet, 6 inches, and you weigh 140.0 lbs. Base BMI:0.32
You are carrying 0.0 lbs and wearing 16.2 lbs, peanuts. Total BMI:0.35
Offensive bonus: 134 / 137.18, Dodging bonus: 116 / 127.92, Parrying bonus: 138 / 142.66, Total defense: 254 / 270.58
Your armor absorbs about 9% on average.

OB: 134 / 136.39
DB: 116 / 122.72
PB: 138 / 141.88

----------------------------------------

After picking up my traveling supplies:

Your height is 5 feet, 6 inches, and you weigh 140.0 lbs. Base BMI:0.32
You are carrying 32.2 lbs and wearing 16.2 lbs, very light. Total BMI:0.35
Offensive bonus: 130 / 136.39, Dodging bonus: 107 / 122.72, Parrying bonus: 131 / 141.88, Total defense: 238 / 264.60
Your armor absorbs about 9% on average.

OB: 130 / 137.18
DB: 107 / 127.92
PB: 131 / 142.66

----------------------------------------

I can get the script to do the math, I just don't know if my logic is right. Ultimately I was trying to figure out what my ob, db, and pb would be without encumbrance. But of course the worn equipment gives a lot of the points AND adds weight. I'll have to think if I want to seperate the math to just account for carried items and not worn items.

All-in-all I'd appreciate any expertise in weight, encumbrance, etc, so I can get my script to show something useful. The problem is I'm used to carrying a TON of weight in terms of herbs and wisdom equipment, and I want to start being more aware of its effects.

Post Reply