foundryvtt-wh4-lang-fr-fr/tools/test01.lua

7 lines
383 B
Lua
Raw Normal View History

2024-05-31 12:13:20 +02:00
let item1 = await fromUuid("Compendium.wfrp4e-core.items.Item.EO05HX7jql0g605A")
let item2 = await fromUuid("Compendium.wfrp4e-core.items.Item.Bvd2aZ0gQUXHfCTh")
let ids = await this.actor.createEmbeddedDocuments("Item", [item1, item2], {fromEffect : this.effect.id})
console.log(ids)
this.actor.updateEmbeddedDocuments('Item', [ {_id: ids[0], `system.specification.value`: 16} ] )