Some time ago, SeeleyOne provided me with the following code to one of my questions:
Pre-Traits, 5000
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.
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.