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

4 lines
216 B
JavaScript

let item = await fromUuid("Compendium.wfrp4e-core.items.GRRN3XAKIpEVCY7z")
let data = item.toObject();
data.name += " (A déterminer)"
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id})