Making a Dungeon Crawler RPG (Think Wizardy/Etrian Odyssey)
Character abilities are represented in Ranks tiers from best to worst S → A → B → C
I have data tables for each ability score and how they scale according to level up progression:
I am setting up a generic character object I can use to make children for each specific player character.
I have their character level represented as a integer, which I am converting to a Name for the Data Table Row Name.
I have made an Enum file for the ability scores S/A/B/C as well as appropriate Enum variables mySpeed, myStrength, etc.
I am setting all those base values off of a separate Data Table that contains all the player characters
What I cannot figure out for the life of me is how I can get ONE cell value from the Data Tables for the ability scores.
My specific example: Maximum Hit Points is determined by the character’s level (defaulted to 1) and the character’s Endurance score (S/A/B/C).
I have a function that converts the Integer value of Level to a string, then to a name and stores it in variable RankRowName
I have Get Data Table Row with the appropriate Data Table and RankRowName as the row to retrieve from the data table (ie. character level 1 = Row Name 1)
I have Get Data Table Column as String for the same Data Table and I’m passing in the appropriate Enum for the character by turning it into a Name for the column.
I have no idea how to proceed from this point though. There has to be a way to find the cell at the intersection of a given Row Name and a given Column Name and then put it into a variable but I just don’t know what I’m looking for as an art major who can’t program for beans and just wants to use the blueprints.
Is there some way I need to convert the Data Tables into something so I can use the character’s level as the X and their Stat Score Enum as the Y to locate a cell (i thought that was the entire point of using the data table)? Or some other data structure?