So lets say I have 3 tables.
LangTable
[id] [Eng] [Jap]
0 "Fire" "ほのお"
...
12 "Water" "みず"
13 "Math" "Whatever"
...
this table is shared by dozzens of other tables, as it only holds the translations of the data for readability to the games user interfaces.
SomeData
[id] [data]
0 0
1 12
...
Somedata displays as: (Working as of now)
[id] [data]
0 "Fire"
1 "Water"
...
Fire is 0, in this db. but I don't list it directly.
Water is set as id 1, but its name is stored in another table because the name isn't important to the program directly.
SomeDataRelationship
[id] [Somedata1] [Somedata2] [effectiveness]
0 0 0 1
1 0 1 0
...
SomeDataRelationship displays as: (Not working)
[id] [Somedata1] [Somedata2] [effectiveness]
0 "Fire" "Fire" 1
1 "Fire" "Water" 0
...
In this last table im showing relationships between my "SomeData" the 0 shows that the SomeData.0 which means fire, is normaly effective agenst fire. And row 1 shows that somedata.0 which means fire, is useless agenst water which is somedata.1
But as for my question, this data stratigy works fine, and makes the game run fine, but its... Really hard to read directly if im inputting data to show new relations.
In access I seen something kinda similar where they used a query like this to show the names. In the look up i hide the id.
SELECT [LangTable].[ID], [LangTable].[Eng] FROM LangTable ORDER BY [ID], [Eng];
Which allows me to select "Fire" from the drop down menu in the access table, but the data saved is the actual numerical value.
Long story short, i'm trying to get the drop down menu of the relationship table to display "Fire". I know that i can use a look up and hide the id, but it doesn't seem to work across another table.
The end result should be that in the Langtable should be an id to word paring used by dossens of other tables.
The Somedata table should be comprised of numbers but display as words (Working already)
And the relationship table should be comprised of numbers aswell, but there numbers are the ids from the somedata table, but display as words from the lang table.