I am making a turn-based strategy game that requires several global variables to be available at all times and was hoping for a little clarification on global variables. I read the scripting reference on them, and from what I gathered, it means I actually use a script as a “container” to store my global variables. Is this correct?
For example, could I have a script in my project simply called “Global” that is nothing more than a list of variables?
By list, I mean something like this:
static var PlayerMoney;
static var PlayerProgress;
static var DifficultyModifier;
In other words, the script initializes the variables, but other scripts will actually read/modify the data within the script.