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

4 lines
218 B
JavaScript
Raw Permalink Normal View History

let item = await fromUuid("Compendium.wfrp4e-core.items.nbhn2wX35b7Jrcbg")
let data = item.toObject();
data.system.location.value = "Jaw"
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id})