#Choice Sets with Active Effects
1 messages · Page 1 of 1 (latest)
Lemme try it again and get back to you
Sounds good
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
This seems to be working
Perfect!
Now the question is thus
How does one update an item in a compendium when one has json file?
Are you familiar with the Foundry CLI tool for unpacking compendia to JSON files?
Nope
One sec...
This might make things easier...
https://github.com/foundryvtt/foundryvtt-cli
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
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.
Lovely
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?
Yes