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

5 lines
269 B
JavaScript
Raw Permalink Normal View History

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