Support (Read Only) > Help
Where can I learn LUA for starts?
(1/1)
Cariad†:
Ok I know this is probably a stupid question but I just started learning about LUA. I know how to make a basic SWEP but I want to learn how to make more advanced things(NPC to Functions to Gamemodes).
I know that making a Gamemode would require a lot of learning. I am taking it slow until I figure remember how to make scripts of my own easily(Without going to the WIKI every line).
I know the WIKI is a good place to learn but I was wandering if there was any other ways of learning it? Yes I am patient I am not trying to rush it I was just wandering if there
was a specific site, book, or something that is ALL about learning it. Yes I am having trouble explaining what I am trying to say.
What I am basically trying to say is: Where is the best place on this internet to study it?
coolzeldad:
Depends how you learn I guess, whether by example, book, experimenting, etc.
To be clear, LUA is a scripting language that Garry adopted for Garry's Mod.
Garry's Mod is a horrible resource to learn proper coding methods in my opinion as most of the code is not properly documented and it doesn't always perform as expected... Garry's Mod is unreliable and frustrating to debug sometimes. Also, Garry implemented C-style syntax that appear in some of the documentation that is not compatible with official lua.
However, it does have an advantage being that you have interest in manipulating the game play and that it might propel you to learn.
I would suggest checking this out ( http://lua-users.org/wiki/LearningLua ), building a foundation, and then going back to Garry's Mod.
Spoiler (click to show/hide)http://www.lua.org/demo.html --can use this to test your lua code during tutorials and shiz or can get binaries from here http://lua-users.org/wiki/LuaBinaries
http://lua-users.org/wiki/TutorialDirectory --check out the tutorials here
http://lua-users.org/wiki/SampleCode --and here's some sample code you can play with and understand
I think this will give you a better understanding on how to approach the code.
Personally I think that understanding the syntax or structure is most important because you can take it and apply to other languages in the future noting the commonalities... I think it becomes much easier with more experience.
Cariad†:
never have I gotten such an awnser... Thank you so much.
Navigation
[0] Message Index
Go to full version