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

9 lines
364 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
let item = await fromUuid("Compendium.wfrp4e-core.items.aE3pyW20Orvdjzj0")
let data = item.toObject();
let target = await game.wfrp4e.tables.rollTable("fixations")
if (target)
{
data.system.specification.value = target.result
this.script.scriptNotification(target.result);
}
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id})