
on("change:encumbrload", function() { getAttrs(["encumbrload","encumbrmaxdexhidden","encumbracphidden","encumbrspeedhidden","encumbrrunhidden"], function(values) { const encumbrload = parseFloat(values.encumbrload) let encumbrmaxdexhidden let encumbracphidden let encumbrspeedhidden let encumbrrunhidden if (encumbrload = 1) { encumbrmaxdexhidden=20; encumbracphidden=0; encumbrrunhidden=4; } else if (encumbrload = 0.67) { encumbrmaxdexhidden=3; encumbracphidden=-3; encumbrrunhidden=4; } else { encumbrmaxdexhidden=1; encumbracphidden=-6; encumbrrunhidden=3; } setAttrs({ encumbrmaxdexhidden, encumbracphidden, encumbrrunhidden}); }); }); encumbrload is a dropdown with only 3 values (1, 0.67, 0.667) this function doesn't break my sheet so something is right about it? I've tried for a while and cant seem to get it working... I think I'm messing up the setAttrs? I'm just about done automating the encumbrance section of the 3.5 character sheet. After this I need to compare these printed values with the values placed from the armor and shield section and print the highest number. I'm so close if anyone has an