Hi,
So quick question, just some advice really. If I am creating a game where by there are characters in a game, but they have no physical presence, they are just data. What or how should I store that data to access it an update it.
So imagine as a player you take on a team member, I need to add them to an array of characters that the player owns so that I know they own them and can access them. But the game is 2D and all the data for the character will do is fill out a widget with data, and be used by the game mode to update other data…so something like adding an engineer to the engine room, grabs his skill level and then applies it to the engine room, the engine room then does something with that information.
So I need to be able to create a lot of different characters, store them in a container and then add that container to an array stored in the game instance. (As I need the data to persist)
I don’t have a “player character” because everything is menus and graphics. I am never spawning these characters in to the world, or doing anything with them physically. They just need all their data stored somewhere.
So I am thinking I will create a data table with all the characters I want in the game, including all their stats, when the game starts to then pour that data in a “X” and then add all the “X” to an array, where the player can then…buy them find them whatever. The player needs to be able to update the data by getting XP and levelling up each character.
I just don’t know what “X” should be other than an actor…but creating like 30 actors that are never going to do anything other than store some variables seems like a waste?
Any thoughts/suggestions welcome. It’s not something I am stuck on, just wanted some thoughts about the best way to handle it. If an actor is just the best way to go? As I certainly don’t need to use player characters, Pawns ETC.
Thanks