From 047d63dc10ac024f58a2c03bbb8743b0e6cdca88 Mon Sep 17 00:00:00 2001 From: Wes Date: Mon, 20 Apr 2020 11:50:19 -0600 Subject: [PATCH] Zweihander update 04 20 2020 (#6209) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updating URLs adding Image Alien the Roleplaying Game • Changed the URLs of (Eight) images to be hosted from the Roll20 Repository on Github. Added (One) additional Image to the Images Folder. • Fixed a issue with the roll formula in the Panic Roll Button. * Small Update to Zweihander HTML and Template.json Small Update to give 2 attriburtes default values of zero so that a roll button will roll if those attributes do not change. Updated the roll template so that the dynamic i18n inputs and coded output were not showing double outputs in the roll template. * Zweihander Update #2 • Small Template output fixes for Attribute and SKill rolls. • Fixed the display of the range in the template output. • Fixed the roll formula and script calculation for the Parry value in the parry roll button. --- Zweihänder Grim & Perilous/Zweihander.html | 108 ++++++++++---------- Zweihänder Grim & Perilous/translation.json | 4 +- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/Zweihänder Grim & Perilous/Zweihander.html b/Zweihänder Grim & Perilous/Zweihander.html index 74135fe8db..6b568df51e 100644 --- a/Zweihänder Grim & Perilous/Zweihander.html +++ b/Zweihänder Grim & Perilous/Zweihander.html @@ -197,7 +197,7 @@
- +
  @@ -219,7 +219,7 @@ Advance
- +
@@ -260,7 +260,7 @@
- +
@@ -297,7 +297,7 @@
- +
@@ -331,7 +331,7 @@
- +
@@ -355,7 +355,7 @@ Peril Condition Track
- +
  @@ -376,7 +376,7 @@ Advance
- +
@@ -409,7 +409,7 @@
- +
@@ -442,7 +442,7 @@
- +
@@ -478,7 +478,7 @@
- +
@@ -504,7 +504,7 @@
- +
  @@ -527,7 +527,7 @@ Advance
- +
@@ -558,7 +558,7 @@
- +
@@ -589,7 +589,7 @@
- +
@@ -620,7 +620,7 @@
- +
@@ -653,7 +653,7 @@  
- +
@@ -677,7 +677,7 @@
- +
  @@ -698,7 +698,7 @@ Advance
- +
@@ -729,7 +729,7 @@
- +
@@ -760,7 +760,7 @@
- +
@@ -794,7 +794,7 @@
- +
@@ -818,7 +818,7 @@
- +
  @@ -839,7 +839,7 @@ Advance
- +
@@ -870,7 +870,7 @@
- +
@@ -901,7 +901,7 @@
- +
@@ -932,7 +932,7 @@
- +
@@ -959,7 +959,7 @@  
- +
@@ -986,7 +986,7 @@  
- +
@@ -1013,7 +1013,7 @@  
- +
@@ -1046,7 +1046,7 @@  
- +
@@ -1070,7 +1070,7 @@
- +
  @@ -1091,7 +1091,7 @@ Advance
- +
@@ -1122,7 +1122,7 @@
- +
@@ -1153,7 +1153,7 @@
- +
@@ -1187,7 +1187,7 @@
- +
@@ -1211,7 +1211,7 @@
- +
  @@ -1232,7 +1232,7 @@ Advance
- +
@@ -1263,7 +1263,7 @@
- +
@@ -1294,7 +1294,7 @@
- +
@@ -1325,7 +1325,7 @@
- +
@@ -1352,7 +1352,7 @@  
- +
@@ -1379,7 +1379,7 @@  
- +
@@ -1412,7 +1412,7 @@  
- +
@@ -1713,10 +1713,10 @@
- +
- +

@@ -1728,7 +1728,7 @@ - +
@@ -2553,7 +2553,7 @@ {{/attrib}} {{#skill}}
- {{skill}}:{{skill_rank}} + {{skill}}:{{skill_rank}}
{{/skill}} {{#difficulty}} @@ -2563,7 +2563,7 @@ {{/difficulty}} {{#mod}}
- Modifier: + Modifier:{{mod}}
{{/mod}} {{#chaos}} @@ -2643,7 +2643,7 @@ {{/roll}} {{#rating}}
- {{rating}}
+ {{rating}}
Rating
{{/rating}} @@ -2654,7 +2654,7 @@ {{/focus1}} {{#range}}
- Range: + Range: {{range}}
{{/range}} {{#damage}} @@ -3049,18 +3049,18 @@ }); //Parry_skill - on("change:parry_skill change:martial_melee change:simple_melee change:combat", function() { - getAttrs(["parry_skill", "martial_melee", "simple_melee", "combat", ], function(values) { + on("change:parry_skill change:martial_melee change:simple_melee change:combat change:shield_parry_modifier", function() { + getAttrs(["parry_skill", "martial_melee", "simple_melee", "combat", "shield_parry_modifier"], function(values) { var setParry = 0; var setParryRating = 0; var setParryType = 0; if (values.parry_skill == 1) { - setParry = parseInt(values.martial_melee,10) + parseInt(values.combat,10); + setParry = parseInt(values.martial_melee,10) + parseInt(values.combat,10) + parseInt(values.shield_parry_modifier,10); setParryRating = parseInt(values.martial_melee,10); setParryType = "Martial Melee"; } else if (values.parry_skill == 2) { - setParry = parseInt(values.simple_melee,10) + parseInt(values.combat,10); + setParry = parseInt(values.simple_melee,10) + parseInt(values.combat,10) + parseInt(values.shield_parry_modifier,10); setParryRating = parseInt(values.simple_melee,10); setParryType = "Simple Melee"; } diff --git a/Zweihänder Grim & Perilous/translation.json b/Zweihänder Grim & Perilous/translation.json index 8f9399752a..de8407a3ee 100644 --- a/Zweihänder Grim & Perilous/translation.json +++ b/Zweihänder Grim & Perilous/translation.json @@ -169,9 +169,9 @@ "roll20-wiki-link": "Roll20 Wiki Link", "situational-modifier": "Situational Modifier", "difficulty:": "Difficulty:", - "modifier:": "Modifier:$[[3]] ", + "modifier:": "Modifier:", "rating": "Rating", - "range:": "Range: 0 / 0 / 0 ", + "range:": "Range: ", "damage:": "Damage:$[[6]] ", "CRITICAL-SUCCESS-u": "CRITICAL SUCCESS", "chaos:": "Chaos:$[[4]] ",