Add all systems effects scripts
This commit is contained in:
30
scripts/8zTkDVziBPaNbMQX.js
Normal file
30
scripts/8zTkDVziBPaNbMQX.js
Normal file
@ -0,0 +1,30 @@
|
||||
let filters = [
|
||||
{
|
||||
property : "type",
|
||||
value : "spell"
|
||||
},
|
||||
{
|
||||
property : "system.lore.value",
|
||||
value : "petty"
|
||||
}
|
||||
]
|
||||
|
||||
let petty = await game.wfrp4e.apps.ItemDialog.createFromFilters(filters, 6, "Choose 6 Petty Spells")
|
||||
|
||||
|
||||
filters = [
|
||||
{
|
||||
property : "type",
|
||||
value : "spell"
|
||||
},
|
||||
{
|
||||
property : "system.lore.value",
|
||||
value : ""
|
||||
}
|
||||
]
|
||||
|
||||
let arcane = await game.wfrp4e.apps.ItemDialog.createFromFilters(filters, 9, "Choose 9 Arcane Spells")
|
||||
|
||||
let items = petty.concat(arcane).map(i => i.toObject())
|
||||
|
||||
this.actor.createEmbeddedDocuments("Item", items);
|
Reference in New Issue
Block a user