That's a good point, yeah, I've missed that. But I'm guessing that the game_start function will be cluttered rather unpplesantly in the end.
May be there is a way to initialize the array somewhere inside the script module? I'm guessing it's impossible to call functions in the global scope outside of a function?
EDIT:
So what I did was make an overall module function initMainCharacterModule() and there I put my function that initializes the array, then I put this function inside the game_start function. I'll probably do another function to enclose all the module initializers and then put it into the game_start instead to reduce clutter further. Kinda used to a deeper abstraction, haha.
May be there is a way to initialize the array somewhere inside the script module? I'm guessing it's impossible to call functions in the global scope outside of a function?
EDIT:
So what I did was make an overall module function initMainCharacterModule() and there I put my function that initializes the array, then I put this function inside the game_start function. I'll probably do another function to enclose all the module initializers and then put it into the game_start instead to reduce clutter further. Kinda used to a deeper abstraction, haha.