kestrelgames.com
Dynamic variable names in Lua
When scripting it’s often necessary to get the name of a variable from the data file in order to set it. The Lua manual suggests using the construct value = _G[varname] This doesn’t wor…