Even better, store the values in a module and require that module. Something like in this example:
https://github.com/britzl/defoldexamples/blob/master/examples/factory_and_properties/factory.script
In the factory.script
I add a string value to a lookup table and use a hash as a key. I then pass the key to the created game object and in the init()
function of the created game object I lookup the string value again using the provided key.