Ok. Here is the code:
_|pWeightS={Calc~(%DieHolder%-32)}| {if~%pWeightS% < 0 ? |pWeightS = 0|}
_|pWeightF={Calc~(%DieHolder%+32)}| {if~%pWeightF% > 54 ? |pWeightF = 54|}?
_|pWeightS=[WeightMultA=%pWeightS%]| |pWeightS={Calc~(%pHeight%*%pWeightS%)}|?
_|pWeightF=[WeightMultA=%pWeightF%]| |pWeightF={Calc~(%pHeight%*%pWeightF%)}|
Here is the output:
Weight: 122.4 pounds (Scrawny Weakness 102, Fat Weakness?
***ERROR on line 157 of table 'Age of Ambition Background' - : 'Input string was not in a correct format.'. ***
?
)
So it looks like it's doing the scrawny value correctly, but it's burping on the fat value. I've looked at the code and they seem identical. Not sure why it's erroring out.