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

6 lines
267 B
JavaScript
Raw Normal View History

2024-06-06 22:07:28 +02:00
const chanties = await WFRP_Utility.findAll('wfrp4e-soc.chanty');
2024-10-08 20:52:09 +02:00
let choice = await ItemDialog.create(chanties, 1, "Choisissez Chanty");
2024-06-06 22:07:28 +02:00
if (choice.length) {
console.log(choice);
this.actor.createEmbeddedDocuments("Item", choice, {fromEffect: this.effect.id});
}