Hi all, I have level up information for my characters stored in data tables with stats for each level, with each character having their own table. When the characters level up, I need to find the appropriate table and then the appropriate row given the inputs name and integer/level.
Finding the row is easy (Get Data Table Row, integer > string > name), but I’m struggling with how to call the actual data table object for each character. I could use switch on name and just manually set it for X options, but there must be a way to find a data table object by name. The idea is I make the data table the same name as my character name input, then just grab the appropriate data table. Am I missing some function that allows this? Any advice greatly appreciated!
I did try that, but I couldn’t figure out how to stick a data table onto the character struct; I can add the level up struct that the data table is based on, but it just gives me options to put a single row of data in the character struct. Is there a way to tell the Character struct “this data table belongs to you?”
How I solved a similar problem for my crafting system. In that system I have all the different crafting station items in their own data tables with their recipes. Each uses the same data structure. Whenever the player activates a crafting station that station transfers the relevant data table to an array by cycling through the whole data table. This ensures that my crafting system doesn’t have to worry about which data table its dealing with as they all use the same structure. Perhaps you could do something similar to where in the begin play of each character they place their data tables into an array. That way you could cycle through the array for the relevant entry.