forked from public/foundryvtt-wh4-lang-fr-fr
Add all systems effects scripts + translations
This commit is contained in:
16
reference_scripts/f4vvAGQ8OGoEbrgy.js
Normal file
16
reference_scripts/f4vvAGQ8OGoEbrgy.js
Normal file
@ -0,0 +1,16 @@
|
||||
let SL = args.opposedTest.attackerTest.result.SL - args.opposedTest.attackerTest.item.cn.value
|
||||
let difficulty = "challenging"
|
||||
if (SL >= 1)
|
||||
difficulty = "difficult"
|
||||
if (SL >= 2)
|
||||
difficulty = "hard"
|
||||
if (SL >= 3)
|
||||
difficulty = "vhard"
|
||||
|
||||
|
||||
let test = await args.actor.setupCharacteristic("wp", {fields: {difficulty}, skipTargets: true, appendTitle : " - " + this.effect.name, context : {failure: "Gain a Stunned Condition"}})
|
||||
await test.roll();
|
||||
if (test.failed)
|
||||
{
|
||||
args.actor.addCondition("stunned");
|
||||
}
|
Reference in New Issue
Block a user