talent_chr is basically an empty variable placed in order to pass quicktest (a tool to proofread bugs), which ignores conditional statements and will show an error otherwise. Actual code for increasing attributes/spending exp looks like this
Oh, that's good to know. I was stat editing it on anyways.