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

12 lines
485 B
JavaScript
Raw Permalink Normal View History

let tooth = await fromUuid("Compendium.wfrp4e-core.items.pLW9SVX0TVTYPiPv")
tooth = tooth.toObject()
tooth.system.specification.value = 3
tooth.system.qualities.value = [{name : "magical"}]
let claw = await fromUuid("Compendium.wfrp4e-core.items.AtpAudHA4ybXVlWM")
claw = claw.toObject()
claw.system.specification.value = 4
claw.system.qualities.value = [{name : "magical"}]
claw.name = "Claw"
this.actor.createEmbeddedDocuments("Item", [tooth, claw], {fromEffect : this.effect.id})