Different DataTables with common Data

Hi there.

I have 5 Item Categories:


All 5 Item Categories should have common “ItemData”, like the Name and Description.

How can I Achieve this in regards of DataTables and Structs?

My current Procedure has a separate Struct “ItemData”, which contains the Common Data
and the 5 Item Structs have this struct as a member.
However, to get this Data from a DataTable Row, I have to check if the Row exists in one of the DataTables with a long If-else, get the Row and get the Data :confused:

It would be nice to have direct access to this data.

Here’s an Example of one of the Structs with the common Data (ItemData)


And here’s the Macro to get the Specific Item Data out of any of the DataTables: