PDA

View Full Version : Could an extention like this be built? (Coin weight)



BubbaGrim
January 18th, 2017, 23:08
I want my players to be mindful of how much they're carrying, a previous campaign had players with hundreds of feet of rope, dozens of torches, 20 or more flasks of oil, pike awls.

So my question is could someone write an extension that would add up the total number of coins carried by a player, multiply this by the weight of a coin and then add this weight as an item in their inventory?

Moon Wizard
January 18th, 2017, 23:29
In an extension, you could do that by updating the encumbrance calculation function, and adding triggers for changes to number of coins carried.

I remember another user just added a coin object to the PC inventory with the correct weight, and it worked without using any extensions.

Regards,
JPG

BubbaGrim
January 18th, 2017, 23:34
That might have been me, we already do something like that. I have an object in inventory called "Coin Weight" and it weights 0.02 (50 coins to the pound). So what they then do is add up the number of coins carried and update the number of "Coin Weight" they're carrying. It works, I was just looking for a way to automate it.

Trenloe
January 18th, 2017, 23:48
To clarify - do you want some guidance on doing the extension yourself? Or are you asking for someone to do the extension for you?

BubbaGrim
January 18th, 2017, 23:54
I'd give it a shot, but my programming skills are probably not good enough. I guess what I doing is trying to put the idea into the head of a more talented programmer to tackle. (Is this the wrong thread for requests?)

Edit: I'll give it a shot, any advice on where to start?

'Nother Edit: Nope, I had a quick read through of the Creating an Extension tutorial and it's beyond my skill set, full disclosure the last time I did any large scale programing Fortran was all the rage. Should I post this as a request to the wish list?

Nulk
January 19th, 2017, 01:09
Bubba, we use a coin weight system in a game I play in using the method Moon suggests. this works well and is simple to apply in game without an extension.

I suggest giving it a try first.

Nulk

vodokar
January 19th, 2017, 01:20
Without needing to do any coding, this is a method I have used in the past. Simply make an item in your inventory list called coin. Give that item the weight per coin that you want it to weigh. Set the number to be the total number of coins carried. Your good.

BubbaGrim
January 19th, 2017, 01:26
@vodokar we're currently doing something like that. I'm looking for a way to do it without creating an object called "gold coin" or anything like that. When loot is split coins are divided between party members, the software updates the coins carried but not the weight of the coins.

LordEntrails
January 19th, 2017, 01:51
See this thread for the discussions mentioned above; https://www.fantasygrounds.com/forums/showthread.php?33983-About-Weight-and-equipement

dulux-oz
January 19th, 2017, 01:55
This also might be of interest:

https://www.fantasygrounds.com/forums/entry.php?148-Coin-Size-amp-Mass-Results-amp-Recommendations-From-An-Investigation

Bidmaron
January 19th, 2017, 03:41
Fascinating material, Dulux. For those who don't want to go check, the 50 coins/pound should really be 120 coins/pound based upon real world coins. At least that's what I derived from Dulux's thread.

skj310
November 13th, 2017, 05:50
Excellent work Dulux!

celestian
November 13th, 2017, 07:30
For what it's worth it's certainly possible to have coin weight added to the inventory carried weight. I did this for the AD&D Core ruleset which is based on the 5E ruleset.

Be happy to give you some pointers if you need it and you can look at the ruleset itself for full details.

damned
November 13th, 2017, 08:32
I havent looked at either of these extensions but they might have useful code in them for you:
https://www.fantasygrounds.com/forums/showthread.php?23496-Default-Encumbrance-Extension (old extension)
https://www.fantasygrounds.com/forums/showthread.php?40382-Encumbrance-in-Kilogrammes-extension (a current extension)
And the 5e ruleset uses onValueChanged in many locations.

Zuger
November 17th, 2017, 08:24
Hello,

You can have a look at this extension :

https://www.fantasygrounds.com/forums/showthread.php?41109-The-weight-of-the-coins