Add all systems effects scripts + translations
This commit is contained in:
14
reference_scripts/tn6SwmjAuNzqE6dx.js
Normal file
14
reference_scripts/tn6SwmjAuNzqE6dx.js
Normal file
@ -0,0 +1,14 @@
|
||||
let damage = 0
|
||||
let test = await this.actor.setupSkill("Dodge", {skipTargets: true, appendTitle : ` - ${this.effect.name}`});
|
||||
await test.roll();
|
||||
|
||||
if (test.succeeded)
|
||||
{
|
||||
damage = 10;
|
||||
}
|
||||
else if (test.failed)
|
||||
{
|
||||
damage = 20;
|
||||
}
|
||||
|
||||
this.script.scriptMessage(await this.actor.applyBasicDamage(damage, {loc : "roll", hideDSN: true, suppressMsg : true}))
|
Reference in New Issue
Block a user