• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Learn to write revscripts?

Joriku

Working in the mines, need something?
Joined
Jul 16, 2016
Messages
1,076
Solutions
15
Reaction score
370
Location
Sweden
YouTube
Joriku
Hi,
Is there any tutorial or things existing in-order to start read and learn how to write lua + revscripts?
Open for Ideas, want to get started
For revscript I'll use ?? /Finding nothing about it?

For LUA, I'll start with this
 
Alright, so one thing I can't understand Is when you use the io.write function and the "" and '' which was the same stuff just used If you needed more Inside the first one.
I can't understand:
"" -- Usage of this?
when do I use Print and when do I use IO.Write?? -- What Is the diffrence and when do I use what?
Will come up with more, and try to write a simple script
 
Alright, so one thing I can't understand Is when you use the io.write function and the "" and '' which was the same stuff just used If you needed more Inside the first one.
I can't understand:
"" -- Usage of this?
when do I use Print and when do I use IO.Write?? -- What Is the diffrence and when do I use what?
Will come up with more, and try to write a simple script
As a rule, you should use print for quick-and-dirty programs, or for debugging, and write when you need full control over your output:

Lua:
    > print("hello", "Lua"); print("Hi")
      --> hello   Lua
      --> Hi
    
    > io.write("hello", "Lua"); io.write("Hi", "\n")
      --> helloLuaHi

Unlike print, write adds no extra characters to the output, such as tabs or newlines. Moreover, write uses the current output file, whereas print always uses the standard output. Finally, print automatically applies tostring to its arguments, so it can also show tables, functions, and nil.
 
Back
Top