You'd have to paste the rest of the function, so we can see what it's returning. If it's returning the raceMods, as I suspect, then it is definitely returning visualeffects.2da numbers, as it purports to do. It seems odd that the 'not supported' vfx should be a green eye vfx (567), though, which is why I'm asking to see what it does in the rest of the function.
Most likely, you're going to wind up viewing one 2da or another, whatever the outcome. NWNExplorer Reborn by acaos is a good tool for this:
LinkFunky