forked from public/foundryvtt-wh4-lang-fr-fr
Add all systems effects scripts + translations
This commit is contained in:
13
reference_scripts/Z6jNlyZMECkW4Hon.js
Normal file
13
reference_scripts/Z6jNlyZMECkW4Hon.js
Normal file
@ -0,0 +1,13 @@
|
||||
let spells = await game.wfrp4e.utility.findAll("spell", "Loading Spells", true);
|
||||
|
||||
let choice = await ItemDialog.create(spells, 1);
|
||||
|
||||
if (choice[0])
|
||||
{
|
||||
this.script.scriptMessage(`Chose @UUID[${choice[0].uuid}]{${choice[0].name}}`)
|
||||
let spell = (await fromUuid(choice[0].uuid)).toObject(); // Might be an index so retrieve item object for sure
|
||||
setProperty(spell, "flags.wfrp4e.boonOfTzeentch", true);
|
||||
spell.system.wind.value = "Channelling (Dhar)";
|
||||
spell.system.memorized.value = true;
|
||||
this.actor.createEmbeddedDocuments("Item", [spell], {fromEffect: this.effect.id})
|
||||
}
|
Reference in New Issue
Block a user