PDA

View Full Version : Extracting all npc types



Tideturner
September 10th, 2017, 02:01
This is for the 5e / core rules set.

I want to create a list of all the known npc types in whatever modules the user has installed. Like what I can find in the NPC window, but with the added info of possible subtype info that can be found in parantheses in the type field of the npc record.

Can this be done? Is there a way to iterate the npc database?

If so, can you point me in the direction to how I'd do this? I've tried searching the 5e ruleset for how the npc list is built, but I'm not fluent enough in the fantasy grounds ruleset structure to find this.

Any help would be appreciated.

Thanks,
Tideturner

Nickademus
September 10th, 2017, 05:24
Most of the 5e products are encrypted and you can't access the database.

Trenloe
September 10th, 2017, 06:23
Have a look at the data structure here: https://www.fantasygrounds.com/wiki/index.php/Data_Structure_Overview_and_Best_Practices You can iterate the various databases using LUA code, I'm not sure where you're going to store the results though.