michalzc / oq-system

Foundry VTT system for OpenQuest SRD
Other
3 stars 1 forks source link

Default Items Compendium won't use new items in an alternate compendium #121

Open tuirgin opened 4 months ago

tuirgin commented 4 months ago

I tried using this by setting up a new compendium in a world, and placed all skills + wealth (which is missing despite being in the SRD) + gear items I want everyone to start with (like Fist/Kick) and the only items picked up were those which match the built-in Skills compendium. I thought perhaps it just wasn't using it, so I tried a few things:

  1. Point to an empty compendium: new PCs start with no skills. So it is honoring the compendium.
  2. A compendium with duplicates: two different folders, with identically named items, both skills and items. PCs start with duplicates of the original skills, none of the custom skills, and no items.
  3. Place only items and custom skills in the compendium. PCs start with no skills or items.

No joy. So I used foundryvtt-cli to unpack the basic-skills pack and threw in a couple of my custom items to see what would happen. Packed it back up. Restarted foundry and confirmed that my custom items were showing up in the Skills compendium. Set the default back to Skills and made a new character. It still only created the character with the original default list.

Effectively, you can reduce the defaults, by dropping them from the compendium the system is configured to use, but you can't add to the defaults.

There's no relevant logs either in the browser console, nor in the node.js console.

michalzc commented 4 months ago

There is a mechanism for applying different items to characters and NPCs. I have to describe it in the documentation. You have to add custom flags to items, to add them to newly created actors. There is no way to set them from the foundry UI so far.

flags:
  oq:
    newActor:
      - character
      - npc
tuirgin commented 4 months ago

Ah, okay. Thanks for the info. I'll give that a try. It's honestly not a big deal, since I can just drop the extras as needed.

tuirgin commented 3 months ago

Just an update to say that this worked a treat. Granted it requires manually editing items, but I now have a way to set up default skills and gear for new characters.

michalzc commented 3 months ago

I have to add a field or even dialogue to set this flag. I will leave it open for now.