-
August 13th, 2020, 15:31 #1
Help with Bag of Holding Extension (development)
(For use with 5E Ruleset)
So, I might have bitten off a bit more than I can chew with this one.
It's a simple concept, but the implementation is causing me some difficulty.
I do not have a lot of experience with FG, so don't even know if this is possible.
I know some basic LUA and have a reasonable understanding of XML, but I know where to find the resources to help if i get stuck.
What I am attempting to do, is firstly find where (which file) the encumbrance "current" is calculated, and if that can be modified so that if an item has a (in this example) "Bag of Holding" location tag, have its weight deducted from that "current", which then can be added to the Bag of Holdings "current" weight.
If someone can point me in the right direction, to find the script that handles encumbrance "current" weight, or let me know if this is not even possible..
I have attached a screen shot below to show what it looks like on the players inventory tab so far
BoHScreenshot.pngLast edited by BloatedNikNak; August 13th, 2020 at 15:55.
-
August 13th, 2020, 15:49 #2
I don't know, but I can tell you this;
That looks like 5E. 5E is layered on top of CoreRPG, so you'll have to unpack CoreRPG and look in those files as well as the 5E ones. Note that rulesets (.pak) files are just renamed zip files, so you can extract them. I suggest renaming or moving the extracted files because FG will look to unpacked files before using zipped files and it may throw you off when you go to play if you have been modifying ruleset files.
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
August 13th, 2020, 15:56 #3
-
August 13th, 2020, 16:36 #4
From a search through 5E's files, there are three files that factoring encumbrance is mentioned:
record_char_inventory.xml - where it sits on the character sheet and given the look to display it.
char_invlist.lua - function onEncumbranceChange() - How it affects the character in terms of game mechanics
manager_char.lua - function updateEncumbrance - When to check and possibly change the Encumbrance.
You may still have to keep pulling threads, but this should help get you started.Dominic Morta
Ruleset Developer
Smiteworks
How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it
How to provide an Unity Connection issue?-Connection Issues and What to Provide
Unity Updater issue?-Updater Issues
Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained
Comcast or Cox ISP User?-Comcast XFinity and Cox Users
Have a suggestion?-Feature Request
-
August 14th, 2020, 02:31 #5
Out of curiosity, do you really want to develop an extension? Or would a work-around be sufficient?
You could create a Bag of Holding as a Character and have a player take control of it. It's what a number of us do. That way you can easily drag items to it and know they're in the bag. It also calculates how much it is holding in terms of burden.
Just a suggestion.Fantasy Grounds Unity Lives! Good job, Smiteworks!
-
August 14th, 2020, 15:42 #6
- Join Date
- Mar 2007
- Location
- Oulu, Finland
- Posts
- 287
For my characters, I set the location of the item to the bag, and set the "Equipped/Carried/Empty" toggle to "Empty" to zero the weight. If I need to see how much is in actually the bag, I have to change the toggle of the bag, which in turn changes everything underneath it, and then click everything off again, but I don't have to do that often.
-
August 14th, 2020, 15:57 #7
-
August 14th, 2020, 15:58 #8
-
August 14th, 2020, 15:59 #9
-
August 15th, 2020, 19:28 #10
UPDATE:
I have managed to get a working prototype..
I have attached a screen shot below for an example.
If the item has "Bag of Holding" in location, and is "Not Carried" the weight of that item is added to the Bag of Holding, and removed from Current Encumbrance .
Items can be easily removed from the Bag of Holding by either having them marked as "Carried" / "Equipped" - the weight is then removed from the Bag of Holding and added back to Encumbrance Current.
This negates the need to delete "Bag of Holding" from the location column and re typing each time an Item is removed, and then later placed back.
I still want to work on a few things, before I offer it up, namely figuring out how to get it working without having edited the 5E Ruleset directly. (Was done as a quick way to see if it works) - Any pointers on that would be appreciated.
Screenshot.png
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks