Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Savage Worlds
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Gumbytie
Senior Member
 
Join Date: Jun 2010
Location: Florida
Posts: 258

Old August 25th, 2024, 12:10 PM
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.
Gumbytie is offline   #1 Reply With Quote
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,569

Old August 25th, 2024, 09:02 PM
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.

_
Currently In Development: Savage Pathfinder, SWADE Fantasy Companion
Future Development: SWADE Super Powers Companion, SWADE Sci-Fi Companion
_
Currently Running: Savage Unity Inc. (homebrew multiverse theme)
Setting Files Supported: Deadlands: Reloaded, Flash Gordon, Gaslight, Hellfrost, Interface Zero 2.0, Seven Worlds, Slipstream, Solomon Kane
Future Setting Files: Savage Judge Dredd
CapedCrusader is offline   #2 Reply With Quote
Gumbytie
Senior Member
 
Join Date: Jun 2010
Location: Florida
Posts: 258

Old August 26th, 2024, 09:19 AM
The timing was indeed the issue. All good now.

Another win for Caped.

Last edited by Gumbytie; August 26th, 2024 at 10:01 AM.
Gumbytie is offline   #3 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:53 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.