
Hello, I have a custom sheet I'm working on. I'm not programmer (cut and paste amateur). This is the code that I have to display the Defense Score. And below is the java. < span class = " subheading " style = " width: 80px " value = " Ranged Def " >< span class = " subheading " name = " attr_rangedDefense " /> The Java I have to display "attr_rangedDefense": function updateDefense () { getAttrs ([ ' strength ' , ' dexterity ' , ' constitution ' , ' wisdom ' , ' rawEnergy ' , ' penetrationPlus ' , ' armorPenetrationPlus ' , ' shieldsPenetrationPlus ' , ' armorDef ' , ' shieldsDef ' , ' Deflection ' , ' racialHPBonus ' ] , function ( values ) { /* DEFENSE Ranged Def 10 + Dex + armorDef + shieldsDef + psiDeflection + Misc Melee Def Roll off + Melee Skill + Misc + Deflection Mental Def 20+Wis+psiDeflection+psiDomination+RE+Misc CDS _"10+Tech Level"__ HEALTH HP Race Base Bonus + Strength x Constitution P+ P+ = Floor( Con / 10) Regen Floor(CON/5) / day */ let str = parseInt ( values . strength ) || 0 ; let dex = parseInt ( values . dexterity ) || 0 ; let con = parseInt ( values . constitution ) || 0 ; let wis = parseInt ( values . wisdom ) || 0 ; let re = parseInt ( values . RE ) || 0 ; let techLevel = 0 ; let racialHPBonus = parseInt ( values . racialHPBonus ) || 0 ; let basePenetrationPlus = Math . floor ( con / 10 ) ; let armorPenetrationPlus = parseInt ( values . armorPenetrationPlus ) || 0 ; let shieldsPenetrationPlus = parseInt ( values . shieldsPenetrationPlus ) || 0 ; let armorDefense = parsInt ( values . armorDef ) || 0 ; let shieldsDefense = parsInt ( values . shieldsDef ) || 0 ; let psiDef = parseInt ( values . Deflection ) || 0 ; let psiDom = parseInt ( values . Domination ) || 0 ; // DEFENSE setAttrs ( { rangedDefense : 10 + dex + armorDef + shieldsDef + Deflection } ) ; setAttrs ( { CDS : 10 + techLevel } ) ; // HEALTH setAttrs ( { health_max : racialHPBonus + str * con } ) ; setAttrs ( { penetrationPlus : basePenetrationPlus } ) ; setAttrs ( { regen : Math . floor ( con / 5 ) + } ) ; } ) ; Just about to lose my marbles. Full Code Here: <a href="https://github.com/MavSantroy/Drakudai/blob/main/RangeDefense_Wont_Display.html" rel="nofollow">https://github.com/MavSantroy/Drakudai/blob/main/RangeDefense_Wont_Display.html</a>