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

5 lines
256 B
JavaScript

const uuid = "Compendium.wfrp4e-core.items.Item.pTorrE0l3VybAbtn";
const item = await fromUuid(uuid);
const data = item.toObject();
data.system.specification.value = 1;
await this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id});