foundryvtt-wh4-lang-fr-fr/reference_scripts/6hAgggYpNR3r4QWC.js

5 lines
279 B
JavaScript
Raw Permalink Normal View History

let item = await fromUuid("Compendium.wfrp4e-core.items.Q2MCUrG2HppMcvN0")
item = item.toObject()
let species = args.actor.Species || " of your species"
item.name = `Animosity (all not ${species})`
this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id})