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

8 lines
398 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.createEmbeddedDocuments("ActiveEffect", [game.wfrp4e.config.symptomEffects["malaise"]])
this.script.scriptMessage(`Test de Force Mentale échoué, <b>${this.actor.prototypeToken.name}</b> subit @Condition[Malaise] pour [[1d10]] heures`, {whisper: ChatMessage.getWhisperRecipients("GM")})
2024-05-16 17:57:51 +02:00
}
}