defining variables in the game

hi,i have a very basic question what all things should be kept in mind while setting up different local and global variables along with boolean?

I’m afraid I don’t understand the question.

Best I can say is, ‘avoid globals if not absolutely needed or logical to use them’.

I’m afraid I don’t understand the question.

Best I can say is, ‘avoid globals if not absolutely needed or logical to use them’.