• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

A Beasts & Barbarians revisit, Edge and Armour Weight

Gumbytie

Well-known member
Some time ago, SeeleyOne provided me with the following code to one of my questions:

Pre-Traits, 5000
Code:
var weight as number
weight = 0

~ Get total weight from equipped armor
foreach pick in hero from Armor where "Equipped.Equipped"
    weight += eachpick.field[gearWeight].value
nexteach

~ Get total weight from equipped shields
foreach pick in hero from Shield where "Equipped.Equipped"
    weight += eachpick.field[gearWeight].value
nexteach

~ Apply the half of the total as a reduction to total encumbrance.
weight = round(weight / 2,0,-1)
perform #resspent[resEncumb,-,weight,"Reduced Weight"]

It has been a long time since I looked over my B&B files. Dusted them off and working on converting them to SWADE. Not sure if Seeley active on here anymore so maybe this question will fall to Caped.

The code Seeley provided works like a charm...almost. It does total armour and shields worn and cuts their weight in half. But the code also cuts in half the Max Weight a character can carry as well. So not quite right. Any ideas anyone?

I have it on my to-do list but first priority is everything to SWADE first.

Cheers.
 
It might work better if you change the timing.
Run it after Effects/10000.

That's when the Encumbrance is figured. It gets redone after you're doing that at PreTraits 5000.
 
Back
Top