DICE PACKS BUNDLE
  1. #1
    pico's Avatar
    Join Date
    Jan 2017
    Location
    San Antonio, Texas
    Posts
    123

    help with new 5e class unarmored defense

    I have a custom 5e class which has the Unarmored Defense feature exactly like the barbarian class.
    When adding the class to a character, the AC calculation does not add CON to the calculation like the barbarian does.

    I've noticed in manager_char.lua it seems to specify monk and barbarian for this feature. As best I can read how the lua code is working here.

    This assumption would seem to be confirmed when I change the character class name to "Barbarian" it works just fine even though the rest of the custom class stayed the same.

    If this is the case, can I extend the lua class function or do I have to replace it? I'm still very new to this so the help is appreciated.

  2. #2
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    20,825
    Yes, I think you are correct in that Unarmoured Defence is specifically coded for only the Barbarian and Monk classes.

    I don't know anything about scripting so I can't advise with that. But logically it would seem that you'd need to create an extension to allow that feature to be used by another class.
    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 https://www.fantasygrounds.com/featu...rerequests.php

  3. #3
    pico's Avatar
    Join Date
    Jan 2017
    Location
    San Antonio, Texas
    Posts
    123
    Quote Originally Posted by Zacchaeus View Post
    Yes, I think you are correct in that Unarmoured Defence is specifically coded for only the Barbarian and Monk classes.

    I don't know anything about scripting so I can't advise with that. But logically it would seem that you'd need to create an extension to allow that feature to be used by another class.
    Thanks. Yes, my custom ruleset on top of 5e has already got an extension, so that's no big deal. I just don't know enough about how something like this works, I've only been replacing strings and look-ups. The script function seems like a fairly long one, so just copying and modifying it leaves me open to maintenance problems. Plus, I'm not familiar with how to replace an existing function in the base code, or if something could be extended and my code just added to the class' function.

  4. #4
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,266
    Blog Entries
    9
    I'd have to ask how often you are going to be creating characters of this class. I mean if you are only going to create half a dozen or so of these characters, then wouldn't it just be easier to manually modify the AC field and add CON to it rather than create and maintain an extension?
    Screen Shot 01-27-19 at 03.36 PM.PNG

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  5. #5
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,684
    Blog Entries
    1
    Quote Originally Posted by pico View Post
    Thanks. Yes, my custom ruleset on top of 5e has already got an extension, so that's no big deal. I just don't know enough about how something like this works, I've only been replacing strings and look-ups. The script function seems like a fairly long one, so just copying and modifying it leaves me open to maintenance problems. Plus, I'm not familiar with how to replace an existing function in the base code, or if something could be extended and my code just added to the class' function.
    Yes you would copy the whole function and yes it does create a maintenance challenge...

    LordEntrails suggestion is good too.

  6. #6
    pico's Avatar
    Join Date
    Jan 2017
    Location
    San Antonio, Texas
    Posts
    123
    Ok. Just trying to learn new stuff. Giving up on something isn't my strongest attribute.
    I wish my manager would assign my projects and stories based on that reasoning

  7. #7
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,684
    Blog Entries
    1
    Quote Originally Posted by pico View Post
    Ok. Just trying to learn new stuff. Giving up on something isn't my strongest attribute.
    I wish my manager would assign my projects and stories based on that reasoning
    Go the coding route!

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
  •  
FG Spreadshirt Swag

Log in

Log in