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

5 lines
269 B
JavaScript
Raw Permalink Normal View History

let item = await fromUuid("Compendium.wfrp4e-core.items.EO05HX7jql0g605A")
item = item.toObject()
item.system.specification.value = 20
this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id})
this.script.scriptNotification(item.name + " added")