Thread: [5E] Get the list of all classes
-
July 14th, 2019, 00:56 #1
[5E] Get the list of all classes
Hello!
I'd like to retrieve from codes all the classes that are loaded. So if there's a module that contains new classes I'll be able to get them too.
I'm pretty sure it's very easy to do but I can't really understand how it can be done.
-
July 14th, 2019, 01:18 #2---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
July 14th, 2019, 01:26 #3
-
July 14th, 2019, 01:29 #4
Read-only data (usually in commercial modules) is in the reference.*** database path. Some info on editable and read-only data here: https://www.fantasygrounds.com/wiki/...ta_File_Format
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!
-
July 14th, 2019, 01:33 #5
-
July 14th, 2019, 01:36 #6Private 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!
-
July 15th, 2019, 04:39 #7
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,421
There is a function in the CoreRPG LibraryData script to retrieve all the registered node paths.
Code:local vMappings = LibraryData.getMappings("class"); for i = 1, #vMappings do for _,nodeClass in pairs(DB.getChildrenGlobal(vMappings[i])) do Debug.console("nodeClass:",nodeClass); end end
JPG
-
July 15th, 2019, 11:57 #8
-
July 15th, 2019, 17:49 #9
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,421
Yes, for 5E ruleset.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks