foundryvtt-wh4-lang-fr-fr/scripts/SThruXFhxUdNKCG4.js

8 lines
343 B
JavaScript
Raw Normal View History

2024-10-08 20:52:09 +02:00
const test = await this.actor.setupCharacteristic("int", {fields: {difficulty: "easy"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`});
await test.roll();
if (test.failed) {
this.actor.addCondition('stunned');
}
this.script.scriptNotification(`${this.actor.name} failed the Intelligence Test and gained Stunned Condition!`);