FoundryVTT-Level-Up-Official icon indicating copy to clipboard operation
FoundryVTT-Level-Up-Official copied to clipboard

Feat: Allow for limited custom config additions

Open NekroDarkmoon opened this issue 2 years ago • 1 comments

Add settings to allow GMs to add custom data to the world CONFIG.

This includes but is not limited to the following:

  • Skills
  • Object Types
  • Combat Traditions
  • Primary & Secondary Spell Schools

This can be accomplished by pulling the settings data while setting up the world and appending the settings data to the built-in config.

Currently, the skills config can't handle the addition of new skills but will do so in the future.

NekroDarkmoon avatar Feb 05 '23 00:02 NekroDarkmoon

For somebody wanting to tackle spell schools and combat traditions, I think a good approach here is to have a simple text box in the settings where a GM can enter semicolon (;) separated names. We can easily parse this and process the names to make them match the core options. You're going to want an array of nicely processed strings at the end of it.

Once you've got your array, you need to merge that into the existing list of combat traditions or spells schools. There are a few ways you can about this, but updating the config like Nekro suggested above is probably the easiest way. Note that the config for the base options is an object, so you're going to have to turn your nice array into keys and values.

Pjb518 avatar Feb 05 '23 01:02 Pjb518