Author Topic: Where can I learn LUA for starts?  (Read 90 times)

0 Members and 1 Guest are viewing this topic.

Offline Cariad†

  • ****
  • Posts: 446
  • Gender: Male
  • Dw i'n Barod
  • Respect: +125
Where can I learn LUA for starts?
« on: August 16, 2012, 08:42:50 PM »
0
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?




Offline coolzeldad

  • ******
  • OwnerDonatorOld Forum MemberrNd DeveloperLinux UserWindows UserDog LoverLeague PlayerDWO Player
    View More Badges!

  • Posts: 3333
  • I eat ddos for breakfast OMNOMONOM
  • Respect: +2711
    • .:`=-~rANdOm~`-=:. Game Servers
Re: Where can I learn LUA for starts?
« Reply #1 on: August 17, 2012, 11:49:45 AM »
+1
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)

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.
 ▲
▲▲Big thanks to Marie for this awesome sprite! :3

Spoiler: Moar Imagez (click to show/hide)
pingaz
Thanks Cryptokid!

Thanks gamefreak!


-- My youtube: http://www.youtube.com/coolzeldad
-- My deviantart: http://coolzeldad.deviantart.com
-- My soundcloud: http://www.soundcloud.com/coolzeldad
-- My ustream: http://www.ustream.tv/channel/coolzeldapingaz
-- My twitchtv: http://www.twitch.tv/coolzeldad

-- rNd Wiki: http://wiki.randomgs.com
-- rNd Youtube: http://www.youtube.com/RandomgsProductions
-- rNd Steam Group: http://steamcommunity.com/groups/r_A_N_d_O_m

Spoiler: rNd Typography (click to show/hide)





Every time you download Garry's Mod illegally, Garry makes a bug.

When people ask me "Plz" because its shorter than "Please" I feel perfectly justified to answer "No" because its shorter than "Yes".

derp herp lerp perp kerp serp zerp - say faiv timez fazt


Offline Cariad†

  • ****
  • Posts: 446
  • Gender: Male
  • Dw i'n Barod
  • Respect: +125
Re: Where can I learn LUA for starts?
« Reply #2 on: August 17, 2012, 01:22:51 PM »
0
never have I gotten such an awnser... Thank you so much.