Mjmackan
Mapper ~ Writer
I'm stuck, I need to convert this nameString to a table value, right now im getting error in console: "index field 'namestring' (a nil value).
When printing namestring however i get the correct value, but when trying to use it for localizing in a table it gives me nil val. I have google'd lots and tried several types of lua variables without success.
Code:
When printing namestring however i get the correct value, but when trying to use it for localizing in a table it gives me nil val. I have google'd lots and tried several types of lua variables without success.
Code:
LUA:
effect = 181, rewards0 = {{2160, 2}}
local lvlList =
{75, 150, 250, 400, 600, 800, 1000, 1200, 1400, 1600, 1800, 2000}
for i = 2,#lvlList do
local textString = tostring(lvlList[i])
nameString = ("rewards" .. textString)
local localize = rareType.nameString[1][1]
