Lua Coding Tutorial 02 - Variables and Functions

preview_player
Показать описание
3:21 - Variables
10:53 - Basic Math Stuff
16:53 - Functions
34:13 - Tables
48:06 - Testing your code

The tutorial file:

To test your lua files online (like in the end of the video):
Рекомендации по теме
Комментарии
Автор

Great Tutorial man. Was really easy to undestand, becasue i'm used a little bit to c++ and javascript, but really helped me out to get a nice overview about LUA and you probally will see some mods coded by me soon ;). Hope i see you in HoN once!

PS: Your bot made me lose to my friend, he was feeding like hell. Man i put all my trust in your Bot :D

DrwinTBONTB
Автор

Really helpful, great tutorial for beginners. Thanks.

TheBazookapmp
Автор

Nope, thats great.
If you stick to the suggested prefixes its not a problem at all, and actually makes stuff way easier.
Its just a behaviour you have to get into, but commonly it should be possible to learn lua in like 2 days if you know other programming languages before.

StolenID
Автор

Hi. Thanks for the vid. Got me up to speed with Lua in a day. A few questions. Does Lua have classes? Or do you use tables in place of classes? 

Also, I tried doing something like
local table a  ={};

a.Name = "Allan Jeremy"
print (a.Name);

and it worked just like 

local  a  ={};
a.Name = "Allan Jeremy"

does this mean they are the same thing or is there any fundamental difference? 

AllanJeremy
Автор

Can something tell me why you'd use '#' i.e

if a and #a == 2 then ... return end.

ceecone
Автор

i dont even know how to get up the texts about HoN^^

NudelKungen.
Автор

That was too Elliot Linn. I am an Idiot

Mr.Gadsden
Автор

function
     LUA = Awesome
if LUA = Bad
  Then print("You suck")

ansa
Автор

local onScreen = fuckFace

function shutDownMyPc ()

if ( fuckFace == onScreen) then
shutDownMyPc ()
else
watchThisVid & beHappy
end

CYTE-GAMES
welcome to shbcf.ru