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

6 lines
263 B
JavaScript
Raw Permalink Normal View History

2024-06-06 21:09:27 +02:00
const chanties = await WFRP_Utility.findAll('wfrp4e-soc.chanty');
let choice = await ItemDialog.create(chanties, 1, "Choose Chanty");
if (choice.length) {
console.log(choice);
this.actor.createEmbeddedDocuments("Item", choice, {fromEffect: this.effect.id});
}