Link function to datatable element

Hello,

I’m not sure if this is possible but I would like to be able to use a specific function based on a data table element.

Essentially i’m making a data table which holds all of the tags for every type of gameplay element for my game. So some effects will have certain functions or objects linked to them. What is a good way for me to go from datatable tag to a reference for the functionality of the effect?

Right now the work around i’m thinking of is that inside of the base class for my effects, have the effect do a switch on the datatable tag and then save the reference for the functionality from there. But I would like it to be linked directly to the data table to save some leg work.

Any pointers would be appreciated!

Thank you.