From adfde0236a1f6db7fc4a6a4d058d0431e4a21e8f Mon Sep 17 00:00:00 2001 From: aurelien chabani Date: Wed, 11 Sep 2024 17:27:54 +0200 Subject: [PATCH] [BREAK!!] Upgrading attribute roll commands --- BREAK!!/BREAK.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BREAK!!/BREAK.html b/BREAK!!/BREAK.html index 59bfb203230..56c963f945f 100644 --- a/BREAK!!/BREAK.html +++ b/BREAK!!/BREAK.html @@ -352,7 +352,7 @@ getAttrs(["character_name"], function(values) { var character_name = values["character_name"]||""; - const rollString = "@{rollWhisperType} &{template:carac} {{charName=" + character_name + "}} {{rollName=" + attribute + " " + squareNumber + "}} {{roll1=[[2d20]]}} {{modifier=[[?{Modifiers|0}]]}} {{rollType=[[?{Roll Type|Basic, 0|Edge, 1|Snag, -1}]]}} {{total=[[0]]}} {{attribute=[[0]]}} {{result=[[0]]}}"; + const rollString = "@{rollWhisperType} &{template:carac} {{charName=" + character_name + "}} {{rollName=" + attribute + " " + squareNumber + "}} {{modifier=[[?{Modifiers|0}]]}} {{rollType=[[?{Roll Type|Basic, 0|Edge, 1|Snag, -1}]]}} {{roll1=[[[[1+abs(?{Roll Type})]]d20]]}} {{total=[[0]]}} {{attribute=[[0]]}} {{result=[[0]]}}"; startRoll(rollString, function(results) { const l_roll1 = results.results.roll1; @@ -397,7 +397,7 @@ var attribute = parseInt(values[`${attributeName}_total`])||0; var character_name = values["character_name"]||""; - const rollString = "@{rollWhisperType} &{template:carac} {{charName=" + character_name + "}} {{rollName=" + attributeName + "}} {{roll1=[[2d20]]}} {{modifier=[[?{Modifiers|0}]]}} {{attribute=[[0]]}} {{rollType=[[?{Roll Type|Basic, 0|Edge, 1|Snag, -1}]]}} {{total=[[0]]}} {{result=[[0]]}}"; + const rollString = "@{rollWhisperType} &{template:carac} {{charName=" + character_name + "}} {{rollName=" + attributeName + "}} {{modifier=[[?{Modifiers|0}]]}} {{attribute=[[0]]}} {{rollType=[[?{Roll Type|Basic, 0|Edge, 1|Snag, -1}]]}} {{roll1=[[[[1+abs(?{Roll Type})]]d20]]}} {{total=[[0]]}} {{result=[[0]]}}"; startRoll(rollString, function(results) { const l_roll1 = results.results.roll1;