foundryvtt-wh4-lang-fr-fr/reference_scripts/06IaVCOC0RCJbxEf.js

4 lines
209 B
JavaScript
Raw Permalink Normal View History

let item = await fromUuid("Compendium.wfrp4e-core.items.8piWcBKFlQ2J1E3A")
let data = item.toObject();
data.system.location.key= this.item.system.location.key
this.actor.createEmbeddedDocuments("Item", [data])