Lua. What is it yand why?

BlitzMax Forums/BlitzMax Beginners Area/Lua. What is it yand why?

siread(Posted 2006) [#1]
Please excuse my ignorance, but I have read some wiki, searched the forums and skimmed the lua manual but all I want to know is, what is it useful for. I gather it is a scripting language, but what does that mean exactly?


Regular K(Posted 2006) [#2]
LUA isn't compiled, but is read and interpreted from the file.

You can use it in conjunction with games to do stuff that you do not want to hard code. Like for missions for a game.

Or, as Im gonna do for my current project (MegaCake), use LUA to add plugins into my application.

It's very useful.


Diablo(Posted 2006) [#3]
as i see it..

It makes modding 100% easier. i.e. I mean people can edit the scripts and diectly change somthing that happerns in a game - or they could make more content. It depends on how much of the game elements you would want scripted.


tonyg(Posted 2006) [#4]
Scripting is also used in large games to reduce the number of times a program needs to be compiled.
Rather than set a value, compile and test, you can keep
set the value in file and read it from your compiled program.


teamonkey(Posted 2006) [#5]
Lua also has some useful features. For example, if you want to parse a date string (or indeed, any text at all) in BlitzMax, it's actually easier to write a function in Max that calls Lua.


Dreamora(Posted 2006) [#6]
To see a good usage of LUA: WoW AddOns are all LUA ... the stuff added there should give you some idea of what potentially is possible.

Or directly checking out Nebula / Nebula 2 Engine ... full 3d engine scriptable through lua.

so in the end, with usefull functions you give it, there is theoretically nothing you can't do :-)