-
+
+
ENC: Input the full enc of each item (-1 if wron is automatically added)
@@ -23557,10 +23579,12 @@
Heavy
-
@@ -36247,7 +36271,26 @@
setAttrs({
translation_targetnumber: getTranslationByKey("TARGET-NUMBER"),
translation_modifier: getTranslationByKey("MODIFIER"),
- translation_roll_modifier: getTranslationByKey("ROLL-MODIFIER")
+ translation_roll_modifier: getTranslationByKey("ROLL-MODIFIER"),
+ blessing_of_battle: getTranslationByKey("BLESSING-BATTLE"),
+ blessing_of_breath: getTranslationByKey("BLESSING-BREATH"),
+ blessing_of_charisma: getTranslationByKey("BLESSING-CHARISMA"),
+ blessing_of_conscience: getTranslationByKey("BLESSING-CONSCIENCE"),
+ blessing_of_courage: getTranslationByKey("BLESSING-COURAGE"),
+ blessing_of_finesse: getTranslationByKey("BLESSING-FINESSE"),
+ blessing_of_fortune: getTranslationByKey("BLESSING-FORTUNE"),
+ blessing_of_grace: getTranslationByKey("BLESSING-GRACE"),
+ blessing_of_hardiness: getTranslationByKey("BLESSING-HARDINESS"),
+ blessing_of_healing: getTranslationByKey("BLESSING-HEALING"),
+ blessing_of_hunt: getTranslationByKey("BLESSING-HUNT"),
+ blessing_of_might: getTranslationByKey("BLESSING-MIGHT"),
+ blessing_of_protection: getTranslationByKey("BLESSING-PROTECTION"),
+ blessing_of_recuperation: getTranslationByKey("BLESSING-RECUPERATION"),
+ blessing_of_righteousness: getTranslationByKey("BLESSING-RIGHTEUSNESS"),
+ blessing_of_savagery: getTranslationByKey("BLESSING-SAVAGERY"),
+ blessing_of_tenacity: getTranslationByKey("BLESSING-TENACITY"),
+ blessing_of_wit: getTranslationByKey("BLESSING-WIT"),
+ blessing_of_wisdom: getTranslationByKey("BLESSING-WISDOM")
});
});
@@ -44997,4 +45040,300 @@ on("change:repeating_spellbookarcane:UsedSpell1 change:repeating_spellbookarcane
});
+on('change:armoractiveH1 change:armoractiveH2 change:armoractiveH3 change:armoractiveT1 change:armoractiveT2 change:armoractiveT3 change:armoractiveLA1 change:armoractiveLA2 change:armoractiveLA3 change:armoractiveLL1 change:armoractiveLL2 change:armoractiveLL3 change:armoropenh3', function(event){
+ if (event.sourceType === 'sheetworker') return;
+ console.log("Armor Change");
+
+ var trigger = event.triggerName;
+
+ console.log(trigger);
+
+ if (trigger = "armoractiveh1") {
+ getAttrs(["armoractiveh1", "armoractiveh2", "armoractiveh3"], function(v) {
+
+ ar = v.armoractiveh1*1 + v.armoractiveh2*1 + v.armoractiveh3*1;
+ if (ar > 0) {ar = 1;} else {ar = 0;}
+
+ setAttrs({
+ "Armorpartial": ar,
+ }, {silent: true});
+
+ });
+ }
+ if (trigger = "armoractiveh2") {
+ getAttrs(["armoractiveh1", "armoractiveh2", "armoractiveh3"], function(v) {
+
+ ar = v.armoractiveh1*1 + v.armoractiveh2*1 + v.armoractiveh3*1;
+ if (ar > 0) {ar = 1;} else {ar = 0;}
+
+ setAttrs({
+ "armorpartial": ar,
+ "armorcoifpenalty": v.armoractiveh2*10,
+ }, {silent: true});
+
+ });
+ getAttrs(["armoractiveh2", "armoractivet2", "armoractivela2", "armoractivell2"], function(v) {
+
+ ar2 = v.armoractiveh2*1 + v.armoractivet2*1 + v.armoractivela2*1 + v.armoractivell2*1;
+ if (ar2 > 0) {ar2 = 10;} else {ar2 = 0;}
+
+ setAttrs({
+ "armormailpenalty": ar2,
+ }, {silent: true});
+
+ });
+ }
+
+ if (trigger = "armoractiveh3") {
+ getAttrs(["armoractiveh1", "armoractiveh2", "armoractiveh3", "armoropenh3", "armoractivet3", "armoractivela3", "armoractivell3"], function(v) {
+
+ ar = v.armoractiveh1*1 + v.armoractiveh2*1 + v.armoractiveh3*1;
+ peq = v.armoractiveh3*1 + v.armoractivet3*1 + v.armoractivela3*1 + v.armoractivell3*1
+
+
+
+ if (ar > 0) {ar = 1;} else {ar = 0;}
+ if (peq > 0) {peq = 1;}
+ if (v.armoropenh3 === "1") { helm = 10; } else { helm = 20; peq = 1; }
+
+ console.log(peq);
+ console.log("Test");
+
+ setAttrs({
+ "armorpartial": ar,
+ "armorhelmpenalty": v.armoractiveh3*helm,
+ "armorimpenetrable": peq,
+ "armorweakpoints": peq,
+ }, {silent: true});
+
+ });
+ getAttrs(["armoractiveh3", "armoractivet3", "armoractivela3", "armoractivell3"], function(v) {
+
+ ar3 = v.armoractiveh3*1 + v.armoractivet3*1 + v.armoractivela3*1 + v.armoractivell3*1;
+ if (ar3 > 0) {ar3 = 10;} else {ar3 = 0;}
+
+ console.log(ar3);
+ console.log("Test");
+
+ setAttrs({
+ "armorplatepenalty": ar3,
+ }, {silent: true});
+
+ });
+ }
+ if (trigger = "armoropenh3") {
+ getAttrs(["armoractiveh1", "armoractiveh2", "armoractiveh3", "armoropenh3"], function(v) {
+
+ ar = v.armoractiveh1*1 + v.armoractiveh2*1 + v.armoractiveh3*1;
+ if (ar > 0) {ar = 1;} else {ar = 0;}
+ if (v.armoropenh3 === "1") { helm = 10; } else { helm = 20; }
+
+ setAttrs({
+ "armorpartial": ar,
+ "armorhelmpenalty": v.armoractiveh3*helm,
+ }, {silent: true});
+
+ });
+ }
+
+
+
+ if (trigger = "armoractivet2") {
+ getAttrs(["armoractiveh2", "armoractivet2", "armoractivela2", "armoractivell2"], function(v) {
+
+ ar = v.armoractiveh2*1 + v.armoractivet2*1 + v.armoractivela2*1 + v.armoractivell2*1;
+ if (ar > 0) {ar = 10;} else {ar = 0;}
+
+ setAttrs({
+ "armormailpenalty": ar,
+ }, {silent: true});
+
+ });
+ }
+
+ if (trigger = "armoractivet3") {
+ getAttrs(["armoractiveh3", "armoractivet3", "armoractivela3", "armoractivell3", "armoropenh3"], function(v) {
+
+ ar = v.armoractiveh3*1 + v.armoractivet3*1 + v.armoractivela3*1 + v.armoractivell3*1;
+ helm = (v.armoractiveh3*1-v.armoropenh3);
+ if (helm < 0) {helm = 0;}
+ peq = helm + v.armoractivet3*1 + v.armoractivela3*1 + v.armoractivell3*1;
+
+ if (ar > 0) {ar = 10;} else {ar = 0;}
+ if (peq > 0) {peq = 1;}
+
+ setAttrs({
+ "armorplatepenalty": ar,
+ "armorimpenetrable": peq,
+ "armorweakpoints": peq,
+ }, {silent: true});
+
+ });
+ }
+
+ if (trigger = "armoractivell3") {
+ getAttrs(["armoractiveh3", "armoractivet3", "armoractivela3", "armoractivell3", "armoropenh3"], function(v) {
+
+ ar = v.armoractiveh3*1 + v.armoractivet3*1 + v.armoractivela3*1 + v.armoractivell3*1;
+ helm = (v.armoractiveh3*1-v.armoropenh3);
+ if (helm < 0) {helm = 0;}
+ peq = helm + v.armoractivet3*1 + v.armoractivela3*1 + v.armoractivell3*1;
+ if (ar > 0) {ar = 10;} else {ar = 0;}
+ if (peq > 0) {peq = 1;} else {peq = 0;}
+
+ setAttrs({
+ "armorplatepenalty": ar,
+ "armorplatelegspenalty": v.armoractivell3*10,
+ "armorimpenetrable": peq,
+ "armorweakpoints": peq,
+ }, {silent: true});
+
+ });
+ }
+
+
+});
+
+
+on('change:Light_armor_equip', function(event){
+ if (event.sourceType === 'sheetworker') return;
+ getAttrs(["Light_armor_equip"], function(v) {
+
+ var trigger = v.Light_armor_equip*1;
+
+ console.log(trigger);
+
+ if (trigger === 0) {
+ console.log("Light Armor Unequip");
+ setAttrs({
+ "armoractiveh1": 0,
+ "armoractivet1": 0,
+ "armoractivela1": 0,
+ "armoractivell1": 0,
+ }, {silent: true});
+
+ } else {
+ console.log("Light Armor Equip");
+ setAttrs({
+ "armoractiveh1": 1,
+ "armoractivet1": 1,
+ "armoractivela1": 1,
+ "armoractivell1": 1,
+ }, {silent: true});
+
+ }
+
+ getAttrs(["armoractiveh2", "armoractiveh3"], function(v) {
+
+ ar = trigger + v.armoractiveh2*1 + v.armoractiveh3*1;
+ if (ar > 0) {ar = 1;} else {ar = 0;}
+
+ setAttrs({
+ "Armorpartial": ar,
+ }, {silent: true});
+
+ });
+
+
+ });
+});
+
+on('change:Medium_armor_equip', function(event){
+ if (event.sourceType === 'sheetworker') return;
+ getAttrs(["Medium_armor_equip"], function(v) {
+
+ var trigger = v.Medium_armor_equip*1;
+
+ console.log(trigger);
+
+ if (trigger === 0) {
+ console.log("Medium Armor Unequip");
+ setAttrs({
+ "armoractiveh2": 0,
+ "armoractivet2": 0,
+ "armoractivela2": 0,
+ "armoractivell2": 0,
+ }, {silent: true});
+
+ } else {
+ console.log("Medium Armor Equip");
+ setAttrs({
+ "armoractiveh2": 1,
+ "armoractivet2": 1,
+ "armoractivela2": 1,
+ "armoractivell2": 1,
+ }, {silent: true});
+
+ }
+
+ getAttrs(["armoractiveh1", "armoractiveh3"], function(v) {
+
+ ar = trigger + v.armoractiveh1*1 + v.armoractiveh3*1;
+ if (ar > 0) {ar = 1;} else {ar = 0;}
+
+ setAttrs({
+ "Armorpartial": ar,
+ "armorcoifpenalty": trigger*10,
+ "armormailpenalty": trigger*10,
+ }, {silent: true});
+
+ });
+
+
+ });
+});
+
+on('change:Heavy_armor_equip', function(event){
+ if (event.sourceType === 'sheetworker') return;
+ getAttrs(["Heavy_armor_equip"], function(v) {
+
+ var trigger = v.Heavy_armor_equip*1;
+
+ console.log(trigger);
+
+ if (trigger === 0) {
+ console.log("Heavy Armor Unequip");
+ setAttrs({
+ "armoractiveh3": 0,
+ "armoractivet3": 0,
+ "armoractivela3": 0,
+ "armoractivell3": 0,
+ "armorplatelegspenalty": 0,
+ "armorimpenetrable": 0,
+ "armorweakpoints": 0,
+ }, {silent: true});
+
+ } else {
+ console.log("Heavy Armor Equip");
+ setAttrs({
+ "armoractiveh3": 1,
+ "armoractivet3": 1,
+ "armoractivela3": 1,
+ "armoractivell3": 1,
+ "armorplatelegspenalty": 10,
+ "armorimpenetrable": 1,
+ "armorweakpoints": 1,
+ }, {silent: true});
+
+ }
+
+ getAttrs(["armoractiveh1", "armoractiveh2", "armoropenh3"], function(v) {
+
+ ar = trigger + v.armoractiveh1*1 + v.armoractiveh2*1;
+ if (ar > 0) {ar = 1;} else {ar = 0;}
+ if (v.armoropenh3 === "1") { helm = 10; } else { helm = 20; }
+
+
+ setAttrs({
+ "Armorpartial": ar,
+ "armorhelmpenalty": trigger*helm,
+ "armorplatepenalty": trigger*10,
+ }, {silent: true});
+
+ });
+
+
+ });
+});
+
\ No newline at end of file
diff --git a/Warhammer 4e Character Sheet/translation.json b/Warhammer 4e Character Sheet/translation.json
index 54ca0c02b6..084f768150 100644
--- a/Warhammer 4e Character Sheet/translation.json
+++ b/Warhammer 4e Character Sheet/translation.json
@@ -1527,6 +1527,8 @@
"GRIMOIRE-MISCAST": "Grimoire Miscast",
"NOT-WORN": "Not Worn",
+ "OPEN?": "Open?",
+ "EQUIP:": "Equip:",
"UNEQUIPED": "Unequiped",
"ALL-WINDS": "All Winds",
"WIZARDS-ROBES": "Wizard’s Robes",