Add all systems effects scripts + translations
This commit is contained in:
11
reference_scripts/8ZAUBSH9CM9OTpTL.js
Normal file
11
reference_scripts/8ZAUBSH9CM9OTpTL.js
Normal file
@ -0,0 +1,11 @@
|
||||
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Perception"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "easy"}});
|
||||
await test.roll();
|
||||
|
||||
if (test.succeeded)
|
||||
{
|
||||
this.actor.addCondition("stunned")
|
||||
}
|
||||
else if (test.failed)
|
||||
{
|
||||
this.actor.addCondition("poisoned", 2);
|
||||
}
|
Reference in New Issue
Block a user