PDA

View Full Version : Ability Rolls Extension (CoreRPG)



MatrixDreamer
June 15th, 2020, 21:44
MD Ability Rolls Extension - by Matrix Dreamer
(CoreRPG)

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
-------------------------------------------------------------------------

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

Method1
--------------------------------------------------------------------
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.

Method2
--------------------------------------------------------------------
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


Method3
--------------------------------------------------------------------
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.

Method4
--------------------------------------------------------------------
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


Thanks,

Zacchaeus
June 15th, 2020, 21:47
Welcome to FG MatrixDreamer, and an awesome contribution.

Trenloe
June 15th, 2020, 22:15
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! :-)

LordEntrails
June 15th, 2020, 23:00
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.

Thanks!
https://www.fantasygrounds.com/forums/showthread.php?53781-On-Licensing-Distribution-of-Community-Content

ZergorX
February 26th, 2021, 17:34
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' }

bmos
February 26th, 2021, 20:30
Try this. It needed an update for the new CoreRPG changes.

EDIT: made a mistake

ZergorX
March 5th, 2021, 23:57
Sadly now it doesn't do anything, including roll stats per its commands. Using 5e ruleset. Thanks for trying!!

bmos
March 6th, 2021, 00:47
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.