STAR TREK 2d20
Page 1 of 10 123 ... Last
  1. #1

    The weight of the coins

    Hello everybody,

    This is an extension that compute the weight of the coins for DD5E.

    This is my first extension, so advices and comments are welcome. So are bug reports (if any)



    Updated version
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Zuger; November 20th, 2017 at 13:22.

  2. #2
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    20,663
    Hi Zuger, well done.

    Unfortunately you've zipped up the extension wrongly. When zipping up your extension only zip the contents of your folder not the top level folder itself. The way you have it now the extension doesn't show up in the extension list. So go back to your folder and only zip up the file called extension.xml and the scripts folder, not the folder called coins-weight.

    (You may also way to say a word or two about how the extension can be used )
    If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here http://fgapp.idea.informer.com/

  3. #3
    My bad, sorry, this is a new version of the extension that is working

    The extension is very simple to use. Once activated, you will see a Coins field in the Encumbrance area. Each time you change the coins values this field will reflect the weight according to the DD5E rules. That's it
    Last edited by damned; November 16th, 2017 at 12:41.

  4. #4
    JohnD's Avatar
    Join Date
    Mar 2012
    Location
    Johnstown ON
    Posts
    5,313
    Blog Entries
    1
    Nice. Please maintain this going forward through new versions.
    "I am a Canadian, free to speak without fear, free to worship in my own way, free to stand for what I think right, free to oppose what I believe wrong, or free to choose those who shall govern my country. This heritage of freedom I pledge to uphold for myself and all mankind."

    - John Diefenbaker

    RIP Canada, February 21, 2022

  5. #5

    Join Date
    May 2013
    Location
    Slovakia (+1 GMT) after March 29 due to Summer time (+2 GMT)
    Posts
    258
    Blog Entries
    8
    nice thanks

  6. #6
    Very cool extension, just what I've been looking for! Thanks.

    I've managed to split it out so you can see weight, coin weight and total weight, and per coin weight but was wondering if you had some idea for making it update the values when inventory is changed? Couldn't find quite the right syntax to make that happen - only when you changed a coin value.


  7. #7
    You have a function called updateEncumbrance in manager_char.lua. Maybe you where there already ?

    I guess you have to override this method, but how you call the overridden function is still a mystery for me.

  8. #8
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,638
    Blog Entries
    1
    You will need to look at the code that updates the Current value and tell it to update the Coins+Gear value at the same time.

  9. #9
    skj310's Avatar
    Join Date
    Jun 2016
    Location
    Queensland, Australia
    Posts
    222
    Blog Entries
    4
    Well done Zuger! Well done.
    Question though: the ext above, it doesn't have the Coins+Gear textbox as in the pictures of this thread. Is that cause you are working on it still?

  10. #10
    Quote Originally Posted by skj310 View Post
    Well done Zuger! Well done.
    Question though: the ext above, it doesn't have the Coins+Gear textbox as in the pictures of this thread. Is that cause you are working on it still?
    The default version adds one field with coin weight in it. The Coin+Gear is a feature I added to my copy.

    I'd been trying to figure out how to do this sort of thing and used Zuger's great extension to learn from.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in