Lone Wolf Development Forums Modified Bag of Holding / Handy Haversack
 User Name Remember Me? Password
 Register FAQ Members List Search Today's Posts Mark Forums Read

 Notices 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

 Thread Tools Display Modes
The Wyrm Ouroboros
Junior Member

Join Date: Oct 2013
Posts: 27

April 25th, 2020, 10:51 AM
All right, so I'm working on a personal tweak for bags of holding, in that instead of weight X lbs., they'll weigh something like 0.5 lbs (what a normal sack weighs), plus whatever's contained inside, up what that particular bag of holding's 'maximum carry weight' is (15 lbs, or whatever), and that anything over that is ignored.

The standard bag of holding weight-negation text, found in the 'gear' button on the left-hand side, is this:
Quote:
 ~ Our contents count for no weight at all! field[gearNet].value = field[gearWeight].value
Altering this so that the bag fills up from standard weight to normal weight, we first create a new field, 'abValue', in the 'Fields' button, with a value equal to the original maximum weight of the bag of holding. Using the type I bag of holding as our example, that makes the value of 'abValue' 15.

We then change the object's weight from its original weight (15 lbs in our example) to that which the item would normally be -- for a bag, 0.5 lbs.

Finally, we change the weight-negation text to the following:

Quote:
 ~ Our contents' weight caps out! if (field[gearNet].value >= field[abValue].value ) then field[gearNet].value = field[abValue].value endif
If the bag of holding is empty, or only has a few things in it, the weight of the bag and items is that of a standard bag (0.5 lbs) plus the items. Only when the weight goes over the abValue amount (15 lbs in our example) is it reduced/negated. This allows you to carry an empty Type VI bag of holding (which normally weighs 150 lbs) like the minimal-weight item it might / should be. (Okay, in my opinion in that case, but still.)

I've tested it, it works. I am so happy!!

I'm also creating larger handy haversacks, which is what this was originally for, but it's the same functionality.

Shadowrun Fiction, updated 4/10/15: Pananagutan - A Limited-Ongoing Tale
"An inability to handle mathematics or politics is a sign of a subnormal mind." -- The Wyrm Ouroboros
"Look, I could kill you, but then I'd have to fill out paperwork. I hate paperwork. Even more than I hate you." -- Phineas Phentari
#1
Senior Member

Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,393

April 25th, 2020, 11:25 AM
If only the contents were present on the material plane to affect the weight of the bags, instead of being stored in a separate pocket dimension :-)

Good work on the coding, thought ;-)

Farling

Author of the Realm Works Import (http://forums.wolflair.com/showthread.php?t=58156) and Output tools (http://forums.wolflair.com/showthread.php?t=59981)

Patreon: https://www.patreon.com/amusingtime
#2
The Wyrm Ouroboros
Junior Member

Join Date: Oct 2013
Posts: 27

April 25th, 2020, 11:47 AM
Bah!! Bah, I say to you, sir!!

After all, if the contents are being stored in a seperate pocket dimension, why is there weight at all??

Truth is, I was going to try to compute the 'percentage weight shunted', but I figured that was just too much a pain in my tuckus, so ...

edit: ... so I went ahead and did so anyhow.

Change the weight-negation text to the following:
Quote:
 ~ Our contents' weight caps out! if (field[gearNet].value >= field[gWeight].value ) then field[gearNet].value = ( ( field[gearNet].value - field[gWeight].value ) / field[gHeldMaxWt].value ) * ( field[abValue].value - field[gWeight].value ) + field[gWeight].value endif
This divides the carried weight by the maximum carried weight. The item will always weigh the baseline, but the 'weight of the portal' is a percentage of the weight carried.

Shadowrun Fiction, updated 4/10/15: Pananagutan - A Limited-Ongoing Tale
"An inability to handle mathematics or politics is a sign of a subnormal mind." -- The Wyrm Ouroboros
"Look, I could kill you, but then I'd have to fill out paperwork. I hate paperwork. Even more than I hate you." -- Phineas Phentari

Last edited by The Wyrm Ouroboros; April 25th, 2020 at 03:53 PM.
#3

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Lone Wolf Development Web Site Announcements Realm Works Forums     Realm Works Discussion         Realm Works in Action         Realm Works Feature Requests     Realm Works in Action     Realm Works Feature Requests Hero Lab Online Forums     Hero Lab Online Discussion     HLO - Pathfinder 1st Edition     HLO - Pathfinder 2nd Edition     HLO - Starfinder     HLO - Shadowrun Hero Lab Forums     HL - Pathfinder Roleplaying Game     HL - D&D 5th Edition SRD     HL - Shadowrun     HL - Mutants & Masterminds     HL - d20 System     HL - World of Darkness     HL - Call of Cthulhu     HL - 4th Edition     HL - Savage Worlds     HL - Cortex System     HL - Authoring Kit     HL - User Projects     HL - Alternity (user-created)     Hero Lab Discussion Army Builder Forums     Army Builder Army Builder Data Files     Babylon 5: A Call to Arms     Battlefleet Gothic     Blood Bowl     Black Powder, Bolt Action, Hail Caesar, Judge Dredd, and Pike & Shotte     Confrontation - English     Kings of War (2nd Edition)     Lord of the Rings (Tabletop)     Mordheim     Necromunda     Starship Troopers     Star Wars: X-Wing and Armada Miniatures Game     The 9th Age     Warhammer Ancient Battles     Warhammer 40,000     Warhammer Fantasy 8th Ed.     Warhammer Historical: The Great War     Warhammer Fantasy 3rd Ed.     Warlord     Warmachine & Hordes     Warmaster Card Vault Forums     Card Vault Card Vault Data Files     MLB Showdown     Lord of the Rings CCG     .hack//ENEMY     Vs. System     Yu-Gi-Oh!     D&D Miniatures

All times are GMT -8. The time now is 12:18 PM.

 -- Default Style -- Majestic Contact Us - Lone Wolf Development Forums - Archive - Top