I am going to try this
Lua console from source forge, no idea how to use it yet though. ^_^
Does anyone know a good Lua console that is easy to run like Python and Ruby?
Lua Code:
Harvest.langs = { "en", "de", "fr", }
Harvest.woodworking = {
["en"] = {
"Ashtree",
"Beech",
"Birch",
"Hickory",
"Mahogany",
"Maple",
"Nightwood",
"Oak",
"Yew",
},
["de"] = {
"Eschenholz",
"Buche", -- "Buchenholz"
"Birkenholz",
"Hickoryholz",
"Mahagoniholz",
"Ahornholz",
"Nachtholz",
"Eiche",
"Eibenholz",
},
["fr"] = {
"Frêne",
"Hêtre",
"Bouleau",
"Hickory",
"Acajou",
"Érable",
"Bois de nuit",
"Chêne",
"If",
},
}
function Harvest.IsValidWoodworkingName(name)
local nameMatch = false
for lang, langs in pairs(Harvest.langs) do
for k, v in pairs(Harvest.woodworking[langs]) do
if v == name then
nameMatch = true
end
end
end
return nameMatch
end
That all works fine, so I have to build off of it and try to apply it to what I want with the map names.