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

7 lines
492 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
if (args.test.item?.type == "skill" && args.test.item.name.includes(game.i18n.localize("NAME.Stealth")))
{
args.test.result.description = "Echech Stupéfiant";
2024-05-16 17:57:51 +02:00
args.test.result.outcome = "failure";
ChatMessage.create({content : "<em>SQUEAK</em>", speaker : ChatMessage.getSpeaker({token: this.actor.getActiveTokens()[0]?.document, actor: this.actor})}, {chatBubble : true})
AudioHelper.play({ src: `${game.settings.get("wfrp4e", "soundPath")}squeek.wav` }, true);
}