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

2 lines
169 B
JavaScript

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