1. #1

    Trying to create an extension for a new 5E based campaign/world

    What is a good starting point on learning how to write an extension that will rename Spellcasting into Weavecasting and allow for more slots per level than current spellcasting gives?

    I know I have to write XML and lua coding but I have no idea where to even start at this point.
    Running 2 Dungeons and Dragons 5E games:

    Storm King's Thunder: Game Calendar
    Curse of Strahd: Game Calendar

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Newcastle, UK (for a bit)
    Posts
    24,629
    https://www.fantasygrounds.com/wiki/...eveloper_Guide

    Then look at a couple of small extensions from the forums - referencing the developer guide (especially the section on Extensions) understand how the extension works by overriding and adding to the existing code.

    Then, look for where you will want to change the existing 5E code and see what's needed to make what you want.
    FG Con 16 Fantasy Grounds Online RPG Convention - Friday April 24th to Sunday April 26th, 2020
    Register at www.fg-con.com for all the latest info.

    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!

  3. #3
    The Developer Guide doesn't point towards the lines/syntax I would have to make for editing the 5E ruleset. If someone could get me a better reference, I would appreciate it.
    Running 2 Dungeons and Dragons 5E games:

    Storm King's Thunder: Game Calendar
    Curse of Strahd: Game Calendar

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Newcastle, UK (for a bit)
    Posts
    24,629
    Quote Originally Posted by tstory30 View Post
    The Developer Guide doesn't point towards the lines/syntax I would have to make for editing the 5E ruleset. If someone could get me a better reference, I would appreciate it.
    You won't get a line by line (or even function by function) description of a ruleset. Sorry.

    To manage your expectations: this is not something that you can follow a step-by-step guide and do in 30 minutes. If you want to start hacking around FG, then you'll have to be prepared to spend time learning, looking at code, doing "find in files" to see how things are done in the ruleset or extension.

    Have a look at the 5E ruleset campaign\scripts\manager_char.lua file - and look for "spellcasting" and see how this is defined and used within that script (as a variable called FEATURE_SPELLCASTING). The main area it is used is the addClassFeatureDB function, which is called a few times within that script file.

    Some details on the main file structure of a ruleset here: https://www.fantasygrounds.com/wiki/...lesets_-_Files

    The "Rulesets (Game System Frameworks)" section of the Developer Guide takes you through the various aspects of the FG code used in a ruleset - and ends in the API reference guide.
    FG Con 16 Fantasy Grounds Online RPG Convention - Friday April 24th to Sunday April 26th, 2020
    Register at www.fg-con.com for all the latest info.

    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!

  5. #5
    That was actually enough information to figure out how to start. I didn't even know which LUA file to look at to begin.
    Running 2 Dungeons and Dragons 5E games:

    Storm King's Thunder: Game Calendar
    Curse of Strahd: Game Calendar

  6. #6
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    GMT -7
    Posts
    8,827
    Blog Entries
    9
    If you are like me, do the Custom Decal Tutorial found on this page; https://www.fg-con.com/free-downloads/

    Yes you have no need for it. BUT, it is simple, easy and has step by step instructions. It's a very simple tutorial, but it gives a good sense of some of the simplest things to do and have to start etc.

    Current Projects: Ultimate Undermountain (NYDUM)
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets
    DMsGuild Content: Balance Disturbed (Adventure), Dungeon Room Descriptions
    FG Product Reviews: Virtual Scribe Reviews

Thread Information

Users Browsing this Thread

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

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