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

4 lines
220 B
JavaScript

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