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