Add all systems effects scripts + translations
This commit is contained in:
14
reference_scripts/DmbWR9s5I8LHBwxB.js
Normal file
14
reference_scripts/DmbWR9s5I8LHBwxB.js
Normal file
@ -0,0 +1,14 @@
|
||||
let column = await ValueDialog.create("Select the column to roll on to determine Beast Head", "Select Column", "", ["Undivided", "Khorne", "Nurgle", "Slaanesh", "Tzeentch"]);
|
||||
|
||||
if (column)
|
||||
{
|
||||
let result = await game.wfrp4e.tables.rollTable("beasthead", {}, column);
|
||||
this.script.scriptMessage(`<strong>${result.title}</strong><br>${result.result}`);
|
||||
let uuid = `Compendium.${result.object.documentCollection}.${result.object.documentId}`;
|
||||
let item = await fromUuid(uuid);
|
||||
if (item)
|
||||
{
|
||||
this.actor.createEmbeddedDocuments("Item", [item])
|
||||
this.item.delete();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user