foundryvtt-wh4-lang-fr-fr/scripts/8wG9l4T9fc1bM0TN.js

3 lines
212 B
JavaScript

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