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

5 lines
279 B
JavaScript
Raw 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 || " of your species"
item.name = `Animosity (all not ${species})`
this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id})