Add all systems effects scripts + translations
This commit is contained in:
10
reference_scripts/oDNfCNyt5KaUYmg2.js
Normal file
10
reference_scripts/oDNfCNyt5KaUYmg2.js
Normal file
@ -0,0 +1,10 @@
|
||||
if(args.opposedTest.result.winner == "defender")
|
||||
{
|
||||
let roll = Math.ceil(CONFIG.Dice.randomUniform() * 10)
|
||||
let msg = `Rolled ${roll}.`
|
||||
if (roll >= 7)
|
||||
{
|
||||
msg = `Attack hits with an SL of ${roll - 6}.`
|
||||
}
|
||||
this.script.scriptMessage(msg, {blind: true, whisper : ChatMessage.getWhisperRecipients("GM")})
|
||||
}
|
Reference in New Issue
Block a user