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

8 lines
281 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
if (args.test.characteristicKey == "wp")
{
if (args.test.failed)
{
this.actor.addSystemEffect("convulsions")
this.script.scriptMessage(`Willpower Test failed, <b>${this.actor.prototypeToken.name}</b> gains @Symptom[Convulsions] for [[1d10]] hours`)
}
}