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

4 lines
219 B
JavaScript

let item = await fromUuid("Compendium.wfrp4e-core.items.oGbDwnLOn3isPJpO")
let data = item.toObject();
data.name += " (To Be Determined)"
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id})