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

3 lines
184 B
JavaScript

let item = await fromUuid("Compendium.wfrp4e-core.items.CnydL8p3PVAuF98w")
let data = item.toObject();
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id})