foundryvtt-wh4-lang-fr-fr/scripts/w6tr8mWy0ZSUkHLt.js

7 lines
318 B
JavaScript

const uuids = [
"Compendium.wfrp4e-core.items.Item.77p3QRKgFWakkndF", // Blather
"Compendium.wfrp4e-core.items.Item.b4x1qEWcevX7xK58", // Schemer
];
const items = await Promise.all(uuids.map(uuid => fromUuid(uuid)));
await this.actor.createEmbeddedDocuments("Item", items, {fromEffect: this.effect.id});