diff --git a/Star Wars Saga Edition/StarWarsSagaEdition.css b/Star Wars Saga Edition/StarWarsSagaEdition.css index 06c00e858ef0..c986f725c492 100644 --- a/Star Wars Saga Edition/StarWarsSagaEdition.css +++ b/Star Wars Saga Edition/StarWarsSagaEdition.css @@ -329,7 +329,11 @@ .pilotSkillShow:not(:checked) ~ .pilotBody, .sectAttack-show:checked ~ .sectAttack, .sect-show:not(:checked) ~ .sect, -.SkillShow:not(:checked) + .SkillBody { +.SkillShow:not(:checked) + .SkillBody, +.other-mod-toggle:not(:checked) ~ .repcontainer .other-mod-off, +.other-mod-toggle:not(:checked) ~ .other-mod-off, +.other-mod-toggle:checked ~ .repcontainer .other-mod-on, +.other-mod-toggle:checked ~ .other-mod-on { display: none; } diff --git a/Star Wars Saga Edition/StarWarsSagaEdition.html b/Star Wars Saga Edition/StarWarsSagaEdition.html index 23475536f166..57660cea055e 100644 --- a/Star Wars Saga Edition/StarWarsSagaEdition.html +++ b/Star Wars Saga Edition/StarWarsSagaEdition.html @@ -5,7 +5,7 @@
-
+
Characters
@@ -18,12 +18,13 @@  Skill Focus as 1/2 level house rule
+  No "Other Modifiers" prompt for skills
+  No "Other Modifiers" prompt for attacks (nonfunctional)
 Speed notes
 Damage Reduction
 Shield Rating
 Immunities
-  Ask for Other Modifiers before rolling skill checks
-   +
@@ -69,15 +70,17 @@  Treat Injury
 Use Computer
 Use the Force
-  Custom skills
+  Custom skills
-
-
Vehicle Sheet
+
+
Vehicles
+  No "Other Modifiers" prompt for attacks
+  No "Other Modifiers" prompt for skills
 Constitution score (for Yuuzhan Vong vehicles)
 Grapple modifier increases beyond Colossal size
@@ -2097,7 +2100,7 @@ CON
Constitution
- + INT
Intelligence
@@ -3890,7 +3893,11 @@ - + + + + + @@ -3950,6 +3957,7 @@
Weapons
+
@@ -3971,9 +3979,11 @@ - - + @@ -4005,6 +4015,7 @@
Crew Assignment and Skills
+
 =  @@ -4054,7 +4071,10 @@
Deception
Deceptive Appearance
- + + + +  =  @@ -4063,7 +4083,10 @@
Initiative - + + + +  =  @@ -4072,7 +4095,10 @@
Mechanics - + + + +  =  @@ -4081,7 +4107,10 @@
Perception - + + + +  =  @@ -4090,7 +4119,10 @@
Pilot - + + + +  =  @@ -4100,7 +4132,10 @@
Stealth - + + + +  =  @@ -4109,7 +4144,10 @@
Use Computer - + + + +  =  @@ -4211,7 +4249,7 @@
For help, please see the wiki page.
-Last updated: 31 August 2023 +Last updated: 19 September 2023
@@ -5229,6 +5267,21 @@ setAttrs({"Status": status}); }); }); + +on('change:QueryAttackModifier', () => { + const section = 'attack'; + repeatingSectionIds(`repeating_${section}`, idarray => { + const fieldnames = idarray.reduce((rows,id) => [...rows, `repeating_${section}_${id}_vehicle-AttackModifierCheckbox`], ''); + getAttrs(['vehicle-AttackModifierCheckbox', ...fieldnames], v => { + const output = {}; + idarray.forEach(id => { + output[`repeating_${section}_${id}_vehicle-AttackModifierCheckbox`] = v['vehicle-AttackModifierPrompt']; + }); + setAttrs(output); + }); + }); +}); + on("change:FocusHouseRule", function() { getAttrs(["FocusHouseRule","AcrobaticsFormula","AthleticsFormula","ClimbFormula","DeceptionFormula","EnduranceFormula","GatherInformationFormula","InitiativeFormula","JumpFormula","Knowledge-BureaucracyFormula","Knowledge-GalacticLoreFormula","Knowledge-LifeSciencesFormula","Knowledge-PhysicalScienceFormula","Knowledge-SocialScienceFormula","Knowledge-TacticsFormula","Knowledge-TechnologyFormula","MechanicsFormula","PerceptionFormula","PersuasionFormula","PilotFormula","RideFormula","StealthFormula","SurvivalFormula","SwimFormula","TreatInjuryFormula","UseComputerFormula","UsetheForceFormula"], function(values) { let FHR = values.FocusHouseRule||0; @@ -5560,6 +5613,38 @@ setAttrs({"repeating_attack_vehicle-WeaponPosition":weaponposition}); }); }); +/* THIS SECTION IS NO LONGER NEEDED, BUT SOMETHING LIKE IT WILL BE NECESSARY FOR replace IN THE REPEATING ATTACKS +on("change:vehicle-AttackModifierPrompt", function(v) { + getAttrs(["vehicle-AttackModifierPrompt"], function(v) { + let VehicleAttackModPrompt = v["vehicle-AttackModifierPrompt"]; + console.log("Checkbox: " + VehicleAttackModPrompt); + getSectionIDs("repeating_attack", function(IDArray) { + var fieldNames = []; + var output = []; + for (var i=0; i < IDArray.length; i++) { + fieldNames.push("repeating_attack_" + IDArray[i] + "_vehicle-AttackModifierCheckbox"); + output.push("repeating_attack_" + IDArray[i] + "_vehicle-AttackModifierCheckbox" + ":" + VehicleAttackModPrompt); + } + console.log(output); + setAttrs({output}); + }); + }); +}); + +on('change:vehicle-AttackModifierPrompt', () => { + const section = 'attack'; + repeatingSectionIds(`repeating_${section}`, idarray => { + const fieldnames = idarray.reduce((rows,id) => [...rows, `repeating_${section}_${id}_vehicle-AttackModifierCheckbox`], ''); + getAttrs(['vehicle-AttackModifierCheckbox', ...fieldnames], v => { + const output = {}; + idarray.forEach(id => { + output[`repeating_${section}_${id}_vehicle-AttackModifierCheckbox`] = v['vehicle-AttackModifierPrompt']; + }); + setAttrs(output); + }); + }); +}); +*/ // ====== Functions ====== \\ var ArmorPerception = function() { diff --git a/Star Wars Saga Edition/sheet.json b/Star Wars Saga Edition/sheet.json index a48a45ea7059..3e119059d468 100644 --- a/Star Wars Saga Edition/sheet.json +++ b/Star Wars Saga Edition/sheet.json @@ -4,7 +4,7 @@ "authors": " Alicia G (original author), Stephen C (maintainer)", "roll20userid": "2889, 436906", "preview": "StarWarsSagaEditionpreview.png", - "instructions": "# Character Sheet\r Inspired by the Saga Edition sheet by Mad Irishman Productions. This sheet auto-calculates statistics using the rules as written. Most (but not all) supplement rules have been taken into account. If you feel that there is something incorrect or missing, please contact the authors. \r\r\r **Last Updated:** 31 August, 2023\r\r\r View the Wiki for the Change Log and more information on the sheet including complete list of attributes and rolls: https://wiki.roll20.net/Star_Wars_Saga_Edition_Character_Sheet", + "instructions": "# Character Sheet\r Inspired by the Saga Edition sheet by Mad Irishman Productions. This sheet auto-calculates statistics using the rules as written. Most (but not all) supplement rules have been taken into account. If you feel that there is something incorrect or missing, please contact the authors. \r\r\r **Last Updated:** 19 September, 2023\r\r\r View the Wiki for the Change Log and more information on the sheet including complete list of attributes and rolls: https://wiki.roll20.net/Star_Wars_Saga_Edition_Character_Sheet", "legacy": false, "printable": true }
 +  + + +