SmurfMikeJoin Date: 2010-11-04 Post Count: 91 |
Hey ingot a book about lua called Beginning Lua Programming
I was wondering if this would be a good book ton understand lua, thing I'm worried about is, is their a difference between lua and lua.rblx ? |
|
|
Lua.RBLX just has added functions and easability. |
|
|
In other words, you'll learn a lot, but it would be good to go over the ROBLOX wiki, as well. |
|
SmurfMikeJoin Date: 2010-11-04 Post Count: 91 |
Oh ok then I guess this means I can get started and read meh book thanks :D |
|
|
ROBLOX's version of Lua is modified to comply with their game engine and interface.
Regular Lua is the raw language and serves very little purpose without an application to work with. |
|
SmurfMikeJoin Date: 2010-11-04 Post Count: 91 |
So it's just tweaked other than that it's the same? |
|
adarkJoin Date: 2008-01-13 Post Count: 6412 |
Yeah, the added functions are the stuffs that directly modify something in the game area, like Instance.new(whatever) and (for tools) MouseButton1Down. (I may be mistaked about some of them, but I'm pretty positive about these.) |
|
Alley_CatJoin Date: 2008-09-28 Post Count: 10145 |
What's the name of the book? I'd like to know.
I have another book, but I'm trying to get a smany as I can. P: |
|
Alley_CatJoin Date: 2008-09-28 Post Count: 10145 |
Wow fail, I just re read the first poast.
Sorry. I thoughtyo usaid about, not called. X_x |
|
SmurfMikeJoin Date: 2010-11-04 Post Count: 91 |
Yea those are right, I'm learning about Variables :D
>print([[1+1]]) -- you can put [[ or not
2
also like;
a = 2
A = 2
print(a+A)
4
so far I got the hang of it, thats just some simple stuff ive learned i love the book and I'm already on compound statments :D |
|
Muddy101Join Date: 2010-06-05 Post Count: 1579 |
Oh YEAH? Well I got Beggining PROGRAMMING book! :3! I'm probably gonna start learning Java or something soon. :3 |
|
EmessJoin Date: 2010-04-01 Post Count: 13331 |
Don't worry.
Roblox Lua (RBX.Lua) is a version of Lua with several added/removed functions, etc.. You might learn that in your book. |
|
Muddy101Join Date: 2010-06-05 Post Count: 1579 |
And, you print like this:
print("Hello world.") --Notice the ""s.
Just thought you should know. ;) |
|
|
Just letting you know, I've read that book. And for absolute beginners to programming and scripting. It will be very difficult to learn. That being if you have no experience with any bit of coding. |
|
roserversJoin Date: 2011-03-21 Post Count: 365 |
I have like a billion programming books.
I have one on JavaScript, Java, C#, HTML, 2 on Objective-C, and one on hacking ;O |
|
|
roserversJoin Date: 2011-03-21 Post Count: 365 |
hacking as in some C, some Assembly, some Perl. In like, the second chapter they're teaching how to hack with buffer overflows and ish confusing... |
|
SmurfMikeJoin Date: 2010-11-04 Post Count: 91 |
Their are actually 3 ways you can do
>print([[WORD]])
word
>print('word')
word
and
>print("word")
word
they all have the same affect, I like it the traditional "Hello World" sort of way I find it the best but you can choose which ever one you want :) |
|
SmurfMikeJoin Date: 2010-11-04 Post Count: 91 |
I know a bit of C++ and C, in the book it said it would be a good idea to learn that so i finished C for dummies :P since Lua is written in plain C I think that might help me, so im not a noob to the coding world... just to the Lua world xD |
|
roserversJoin Date: 2011-03-21 Post Count: 365 |
Did it include you can also say
print "hello" |
|
SmurfMikeJoin Date: 2010-11-04 Post Count: 91 |
for the lua book no ._. it only said those 3. |
|
adarkJoin Date: 2008-01-13 Post Count: 6412 |
Just thought it should be known that the default text in a script made via Insert>Object>Script was changed from "print("Hello World!")" to "print 'Hello World!'" and it sitll functions properly. |
|
SmurfMikeJoin Date: 2010-11-04 Post Count: 91 |
I dont think that would work either way because I dont know or not but doesnt it need parnthesis |
|
roserversJoin Date: 2011-03-21 Post Count: 365 |
You'll probably never need to know this but...
Functions don't have to have parenthesis IF:
the function has one argument and the one argument you fill in is a string or a table (as in {}, not a variable).
For instance:
print "hi" -- valid
print 5 --not valid
print {"hello","world"} --valid
print somevariable --not valid |
|
SmurfMikeJoin Date: 2010-11-04 Post Count: 91 |
I probs wont use it just for the facts their are easier ones to use xD |
|