So, I was fooling around with Lua and I had a little surprise.
is working but
is not.
Why is that ? Is there a way to obtain something similar ?
The purpose :
I made a MFD and it needs some custom Lua code depending on the ship.
I don't want to make a INI file with the need to parse it, as the Lua code will mostly be conditions using Lua functions and not just var == given value.
Please help
Code:
require "test"
Code:
f = "test"
require f
Why is that ? Is there a way to obtain something similar ?
The purpose :
I made a MFD and it needs some custom Lua code depending on the ship.
I don't want to make a INI file with the need to parse it, as the Lua code will mostly be conditions using Lua functions and not just var == given value.
Please help
