Hello everyone! I’m making this to help out people who want to learn Lua so they can get in on modding as soon as the game is in beta. I’m gonna start off by giving a small overview of Lua, and my personal background in Lua.
Lua is a scripting language made in South America, by a few gentlemen who spoke Portugese; hence the name Lua which means “moon”. When Lua is referenced we call it by the Portugese word not as L-U-A. It has a syntax similar to C and Java in many ways, but is FAR less picky about how you put it together and is FAR easier to code something simple; here is an example–
To print a line in C++;
#include <iostream>
void main()
{
cout << "Hello World" << endl;
system("PAUSE")
}
To print a line in Lua;
print("Hello World")
It seems to have no similarities, but this is to prove a looser syntax and how much easier Lua is to code. In C++ a “;” is required to end each line, whereas in Lua it can be put there, but is not required.
Lua can make a great first computer language, it is easy and kind of fun.
Now to explain my background in Lua. It was my first computer language, I learned it to code mods for Garry’s Mod roughly 5 years ago. After 5 years of coding Lua I have run into a brick wall with what I can do with it(I have made mods for many games, and used Lua engines like Love2D and torque2D). I really want to do some modding for this game and get back into Lua, but I also want to see some new faces in the community, and I want to teach people Lua. In my opinion the best place i have found to learn Lua right now is here. This teaches basic Lua and scripting arithmetic, the game will likely have it’s own hooks and libraries that we will have to learn too; when it is revealed I may make videos on how to code with the system the game has given us.
Feel free to ask any Lua questions here