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

3 lines
212 B
JavaScript
Raw Permalink Normal View History

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})