First of all, I'm 14 so I don't have a major education but a while ago I tried to learn C++ and it was just way to hard for me... The coolest thing I did was make a rainbow triangle with OpenGL, the problem was ALL of the books and tutorials just did not make sense at all.
So im interested in learning LUA scripting for Garry's Mod but id like to know how hard it is to learn it for a 14 yr old beginner, I have no experience with LUA. The only thing I know about coding is that there are variables, functions ._.
So, yeah how hard do you think it would be? Ive heard LUA is a pretty good language for beginners.
Oh, and what are some good explanatory tutorials for LUA scripting in Gmod?
Lua*
I started learning when I was 14, you'll be fine.
It's not really something you can ask, because everyone probably had a different experience with it
Lua is a good language, for beginners, I recommend you start with reading the [URL="http://www.lua.org/pil/"]Lua PIL[/URL] to start with.
There are syntax highlighters for both Sublime Text 2 and Notepad++ for gLua.
Sublime Text 2 - [url]https://github.com/FPtje/Sublime-GLua-Highlight[/url]
Notepad++ - [url]https://dl.dropboxusercontent.com/u/10382947/GmodLua.xml[/url]
Once you've learnt that the two main pages you'll need are:
[url]http://wiki.garrysmod.com[/url]
[url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index4875.html[/url]
The former is the current wiki, and the latter is the old wiki, the old wiki is more documented but not always right.
As for the Garry's Mod aspect of Lua, the main differences are you have a load more libraries at your disposal and a lot of C operators are available. e.g:
[lua]
||
&&
![/lua]
as well as C comments such as[lua]
// Single Line
/*
Multiline
*/[/lua]
You're in for a treat, Lua is a good place to start, and it's also a great language used in major systems, so it can be used in a lot of places too.
I've been out of the game for too long to know anything about GMOD Lua though, but have patience with the stuff you'll find, and you'll get there eventually!
It was a pain in the ass for me filled with tons of frustration and raging. But after some fiddling and creating a super simple game in TouchLua (ios app), I understand it better.
I started learning when 14 as well. I started some C++ when 15, which helped me with logic.
I'm currently learning.
I'm learning through making codes.
If you look in my profile you'll see my threads, I think it's a good way to learn.
Ofc you need people like Crazyscouter, AnonTakesOver, and other people, that are willing to help even when you sound really stupid :)
Try your way through some basic health settings and derma panels, if you mess up you either come and ask us, where people will treat you well if you do the same, or look up examples on the two wiki's we have.
Was really hard in my first 3 attempts to make something work, but in the fourth i dealed with it and got a sent work...
[QUOTE=gonzalolog;45603065]Was really hard in my first 3 attempts to make something work, but in the fourth i dealed with it and got a sent work...[/QUOTE]
[IMG]http://i.imgur.com/O81UvGh.png[/IMG]
Sorry, I just couldn't..
Oh god, i was so young! (3 years ago lol)
I started when I was 8 with various languages. It helps if you're fluent with one or more languages on top of your mother tongue. Logic is universal. If you keep things simple then they're easier to understand. If you know one language, then moving from that language to another should be fairly simple if you understand logic and understand how things work in each language.
Feel free to add me on Steam; I tutor quite a few people right now, and I'm working on releasing a class with all resources to help people learn at any level.
Sorry, you need to Log In to post a reply to this thread.