foundryvtt-wh4-lang-fr-fr/reference_scripts/dk02qSJfJaIo3Geh.js

4 lines
255 B
JavaScript
Raw Normal View History

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