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

5 lines
265 B
JavaScript

let item = await fromUuid("Compendium.wfrp4e-core.items.9GNpAqgsKzxZKJpp")
let data = item.toObject();
data.system.specification.value = "When Alone";
data.effects[0].disabled = true;
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id})