Add all systems effects scripts + translations
This commit is contained in:
12
reference_scripts/P29tT1eMMdAw3CPF.js
Normal file
12
reference_scripts/P29tT1eMMdAw3CPF.js
Normal file
@ -0,0 +1,12 @@
|
||||
let item = await fromUuid("Compendium.wfrp4e-core.items.3S4OYOZLauXctmev")
|
||||
let data = item.toObject();
|
||||
data.system.location.key = this.item.system.location.key
|
||||
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id})
|
||||
|
||||
|
||||
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty: "hard"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`})
|
||||
await test.roll();
|
||||
if (test.failed)
|
||||
{
|
||||
this.actor.addCondition("unconscious")
|
||||
}
|
Reference in New Issue
Block a user