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

5 lines
283 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let item = await fromUuid("Compendium.wfrp4e-core.items.Q2MCUrG2HppMcvN0")
item = item.toObject()
let species = args.actor.Species || " de votre espèce"
item.name = `Animosité (tous sauf ${species})`
2024-05-16 17:57:51 +02:00
this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id})