• 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?

Klonera

Once upon a time.
Joined
Jul 16, 2016
Messages
770
Solutions
7
Reaction score
175
Location
Sweden
Twitch
JoelPersson147
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
 
OP
Klonera

Klonera

Once upon a time.
Joined
Jul 16, 2016
Messages
770
Solutions
7
Reaction score
175
Location
Sweden
Twitch
JoelPersson147
YouTube
Joriku
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
 

Xikini

I whore myself out for likes
Support Team
Joined
Nov 17, 2010
Messages
5,403
Solutions
361
Reaction score
3,513
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.
 
Top