2024-10-08 20:52:09 +02:00
|
|
|
let choices = await Promise.all([warhammer.utility.findItemId("PzimjNx9Ojq4g6mV"), warhammer.utility.findItemId("rOPmyLWa37e7s9v6")])
|
|
|
|
let items = await game.wfrp4e.apps.ItemDialog.create(choices, 1, "Choisissez a Skill")
|
2024-05-16 17:57:51 +02:00
|
|
|
|
|
|
|
items = items.map(i => i.toObject())
|
|
|
|
items.forEach(i => i.system.advances.value = 20)
|
|
|
|
|
2024-10-08 20:52:09 +02:00
|
|
|
items.forEach(i => i.system.equipped.value = true;)
|
2024-05-16 17:57:51 +02:00
|
|
|
|
|
|
|
this.actor.createEmbeddedDocuments("Item", items);
|