-
January 27th, 2019, 17:34 #1
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.
-
January 27th, 2019, 18:04 #2
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
-
January 27th, 2019, 19:03 #3
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.
-
January 27th, 2019, 22:37 #4
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.
-
January 27th, 2019, 23:53 #5
-
January 28th, 2019, 01:58 #6
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
-
January 28th, 2019, 02:13 #7
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks