Strange Variable Issue with Click Events and Functions

Via button click, I set a number of variables and initiate functions associated with those variables. However, it seems that some variables are not being set and/or some functions are not being initiated.

Is there a limit to the number of variables that can be set or the number of functions that can be initiated via a button click?

Also, is it not good to set variables in a function or initiate other functions in a function?

I’m just not sure what I’m doing wrong, and I worry I’m asking a button and/or function to do too much.