PDA

View Full Version : Dice Set Roller



Ebein
January 5th, 2021, 18:00
I'm trying to recreate the various character ability roll Methods for 2nd Edition D&D as an extension and have it output to the chat window.

I'm new to writing extensions, xml, and lua. I do have plenty of C/C#/C++ experience.

I have figured out how to open a window in FGU, but cant find an example of creating a button, dice rolling or sending ( hopefully formatted ) text to the chat window.

Any help/examples would be great.

Thanks in advance.

superteddy57
January 5th, 2021, 18:09
Examples can be found if you unpack any of the provided rulesets with Fantasy Grounds. I would suggest checking out 5E as this is more the most up to date approach. If you are just looking for it to roll dice and output to the chat, the manager_action_init.lua would be a great start. It lays out a proper setup for roll dice and sending a chat message along with making the roll available to clients as well.

Ebein
January 5th, 2021, 19:14
Oh wow didnt realize they where just renamed zip files.

Thanks for the help!