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

3 lines
184 B
JavaScript

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