What does the group [WeightMultiA] look like? You might be getting an error due to that group returning a non-number to pWeightF, and then when you try to use pWeightF in a Calc~ it throws the error.
Erol K. Bayburt
ErolB1@...
toggle quoted message
Show quoted text
On 9/27/2020 2:16 AM, wooterslw@... wrote:
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.