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

5 lines
259 B
JavaScript
Raw Normal View History

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