FG Spreadshirt Swag
  1. #1

    Ability Rolls Extension (CoreRPG)

    MD Ability Rolls Extension - by Matrix Dreamer

    This extension has several methods used to generate character ability stats.
    These methods can be accessed using the chat slash commands defined below or
    through the dice button on bottom of character sheet.
    The character sheet die will roll the default method when clicked, or
    the GM may use the right-click radial menu to choose a method.

    For GM to set the default method used by Players (where # is the method number)
    Use: /mdrollsetdefault #

    Roll Methods defined

    Use: /mdrollstats
    For Players and GM this rolls the default method set by the GM.

    Use: /rollstatsm1
    Common Name: 4d6drop
    Generates six rolls by rolling 4d6 and dropping the lowest die.
    Stats range from 3 to 18.
    This is probably the most commonly used method.

    Use: /rollstatsm2
    Common Name: 3up3down
    Generates six rolls using the following calculations.
    Stats range from 9 to 18.
    This one generates a balanced mix of stats.

    10 + d6
    15 - d6
    10 + d8
    15 - d8
    8 + d10
    17 - d10

    Use: /rollstatsm3
    Common Name: herostats
    Generates six rolls by rolling 2d6+6.
    Stats range from 8 to 18.
    This one generates more "hero" like stats.

    Use: /rollstatsm4
    Common Name: epicstats
    Generates six rolls by rolling 2d6+8 (cap at 18).
    Stats range from 10 to 18.
    This one generates more "epic hero" like stats.

    Some notes for developers:
    I have learned much from working on this Extension, and welcome others to use my code as examples for their work.
    I have found that these forums have very good people with generally good conversations, but sometimes lacking in specific information on Extension coding.
    FG has almost nothing for documentation, and it can be quite difficult to find information on coding questions.

    Features of note for coders interest:
    • Save and retrieve settings for your extension (persisted settings by user)
    • OOB communications (passing user defined messages back and forth between clients/host)
    • Radial menus (two deep)
    • Dice rolling and modifying results on the fly

    Attached Images Attached Images
    Attached Files Attached Files

    "Ignorance is bliss.." -- Cypher

  2. #2
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Welcome to FG MatrixDreamer, and an awesome contribution.
    If you need to contact customer support or 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
    Trenloe's Avatar
    Join Date
    May 2011
    Newcastle, UK (for a bit)
    Welcome to the FG forums. Very cool extension, thanks for sharing.

    Regarding your comments about finding information on coding questions - my recommendation to you is to ask those questions if you can’t find answers. There are various examples and some documentation, but as each ruleset can be different and an individual developer's needs can be quite unique, then it often will be the case that there isn’t info specific to your task at hand. So, if you can't find an answer to a question, then please ask that question, we don’t bite! :-)
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  4. #4
    LordEntrails's Avatar
    Join Date
    May 2015
    -7 UTC
    Blog Entries
    Awesome work and thanks for sharing! A great way to contribute on your first post

    If I could ask a favor... you say;
    and welcome others to use my code as examples for their work.
    I'm trying to get our community developers to be a little more explicit in expressing their desires around their community contributions. Would you mind taking a look at the link in my signature and then being a little more explicit with your intent? Personally I love to see folks use the CC-BY-SA license type, but it is totally your option to use, or not, any license.


  5. #5
    Hello, not sure if this extension is still supported. My players all get these types of errors on joining a FGC server or when another player joins it pops up for them, seams to be narrowed down to this extension after loading and unloading others to test.
    Runtime Notice: s'Desktop initialized'
    Runtime Notice: s'*** OOB getDefMethod sent' | { s'dest' = s'HOST', s'type' = s'MDAbilityRolls', s'from' = s'Tyson', s'subtype' = s'getDefMethod' }
    Runtime Notice: s'*** button Received OOB message: ' | { s'defMethod' = s'1', s'from' = s'HOST', s'dest' = s'Tyson', s'type' = s'MDAbilityRolls', s'subtype' = s'setDefMethod' }
    Runtime Notice: s'*** button Received OOB message: ' | { s'dest' = s'HOST', s'type' = s'MDAbilityRolls', s'subtype' = s'getDefMethod', s'from' = s'Tyson' }

  6. #6
    Try this. It needed an update for the new CoreRPG changes.

    EDIT: made a mistake
    Last edited by bmos; March 6th, 2021 at 00:47.
    bmos' extensions
    he/him | Discord Tag: wil.thieme#3396

  7. #7
    Sadly now it doesn't do anything, including roll stats per its commands. Using 5e ruleset. Thanks for trying!!

  8. #8
    Quote Originally Posted by ZergorX View Post
    Sadly now it doesn't do anything, including roll stats per its commands. Using 5e ruleset. Thanks for trying!!
    I made a mistake (didn't capitalize something in the code). Try this one.
    Attached Files Attached Files
    bmos' extensions
    he/him | Discord Tag: wil.thieme#3396

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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

Log in

Log in