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

5 lines
269 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
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")