Hi all,
In my game, the player can have various different kinds of object equipped (think of an RPG where the player might have a sword, an axe, a bow and arrow, etc) - At first I tracked all of this through a list of global bool variables (SwordEquipped?, AxeEquipped? etc etc). Effectively I've been using global variables almost as a save game.
As you can imagine, this has lead to me having a huge list of bools in the global variables list, and I'm starting to worry that a) just finding the relevant variable to check in various scripts is becoming a nightmare, and b) this is obviously bad practice as global variables should be used sparingly...
Is there a better way I could be tracking player loadouts that would reduce this spread of global variables? Ideally I would be saving this data into some kind of player config file or something, but I don't know if playmaker can work with external files like that?