#Choice Sets with Active Effects

1 messages · Page 1 of 1 (latest)

nova path
#

If you send me the JSON, I can take a look at it.

pine python
#

Lemme try it again and get back to you

nova path
#

Sounds good

pine python
#

Ok I think I figured out the problem.

#

The effect I wanted to apply was

      "name": "Nimble Fingers (Stealth)",
      "img": "modules/swade-amethyst-untamed/assets/icons/ability.svg",
      "changes": [
        {
          "key": "@Skill{Stealth}[system.die.sides]",
          "mode": 2,
          "value": "2",
          "priority": null
        }
      ],
      "transfer": true,
      "_id": "9zzVH6SYEZYf1BZD",
      "type": "base",
      "system": {},
      "disabled": false,
      "duration": {
        "startTime": 0,
        "seconds": null,
        "combat": null,
        "rounds": null,
        "turns": null,
        "startRound": null,
        "startTurn": null
      },
      "description": "<article class=\"swade-core\"><p>You are skilled either at the construction of crafts or at parting the unwary from their material possessions. You begin with a d6 in either the @UUID[Compendium.swade-core-rules.swade-skills.Item.lTxygYQbGn9OoxFz]{Repair} or @UUID[Compendium.swade-core-rules.swade-skills.Item.bFaYnzftXwQ9p4Si]{Stealth} skill (and your maximum in that skill increases to d12+1).</p></article>",
      "origin": null,
      "tint": "#ffffff",
      "statuses": [],
      "sort": 0,
      "flags": {
        "swade": {
          "expiration": null,
          "loseTurnOnHold": false
        }
      },
      "_stats": {
        "compendiumSource": null,
        "duplicateSource": null,
        "coreVersion": "12.330",
        "systemId": "swade",
        "systemVersion": "4.0.5",
        "createdTime": null,
        "modifiedTime": null,
        "lastModifiedBy": null
      }
    }```
But I was keeping the _stats element which was messing it up
nova path
#

Perfect!

pine python
#

Now the question is thus

#

How does one update an item in a compendium when one has json file?

nova path
#

Are you familiar with the Foundry CLI tool for unpacking compendia to JSON files?

pine python
#

Nope

nova path
#

One sec...

pine python
#

I have no idea how to deal with command line crap

#

npm install -g @foundryvtt/foundryvtt-cli

Seeing crud like this for installation immediately makes my head spin

nova path
#

OK, not a problem. We can still get the JSON into your compendium copy.

#

First thing to do is import your compendium into your world.

#

When you do, tell it to keep the IDs. This is important.

#

Then export the individual item's JSON, and edit that JSON. When you're finished, reimport into the world copy.

pine python
#

Lovely

nova path
#

After you're done editing your world copies, you can then export the folder they're in to the compendium they came from. Because you kept the IDs on import, it'll match and update the items in the compendium.

#

I would make a backup of your data the first time you try this, just in case.

#

I forget, can you drag and drop effects from one Item to another?

pine python
#

Yes

nova path
#

Hmmm... I might have an idea for a UI to create choice sets.

#

I'll have to tackle that at a later time though.