ScriptOnJoin Date: 2010-08-22 Post Count: 10885 |
I've known this for a while but I think its cool for script shortness:
rando = math.random(1,10) if rando == 1 then
You can literally put an entire scirpt in one line, and have it work. I figured this out like 5 years ago at a script builder. |
|
Lou_DogJoin Date: 2010-09-07 Post Count: 15146 |
Joined in 2010...
5 years ago...
seems legit. |
|
geogloryJoin Date: 2013-04-02 Post Count: 1718 |
legit
~tiny plant head~ |
|
ScriptOnJoin Date: 2010-08-22 Post Count: 10885 |
@psp, I have a 2008 account, which actually means with months, I've got 6 years on here. |
|
Lou_DogJoin Date: 2010-09-07 Post Count: 15146 |
Oh. |
|
|
I figured it out, but it just seems to messy for me to use. Also, there is one slight problem.
*Writes a very lengthy code that is very complex, and manage to put it all on one line.*
*Does not work.*
*Checks output.*
Me: Oh for crying out loud... |
|
ScriptOnJoin Date: 2010-08-22 Post Count: 10885 |
l0l |
|
|
You are just now learning this, and your name is something related to scripting? Disgrace! |
|
ScriptOnJoin Date: 2010-08-22 Post Count: 10885 |
Where does it say I just learned this? |
|
|
Even then, why are you posting about this? One liners do not promote anything but uncleanliness? |
|
|
This is game design, not basic scripting discussion. |
|
ScriptOnJoin Date: 2010-08-22 Post Count: 10885 |
This is not basic at all, it removes a level of compaction that the script does. If you don't believe me, put a long script into one line, it will run faster. |
|
|
You and I must have different definitions of basic. |
|
ScriptOnJoin Date: 2010-08-22 Post Count: 10885 |
For me, basic = (x+1)
For you, your levels of basic and such must be shifted due to join dates, which I can understand. |
|
|
ScriptOnJoin Date: 2010-08-22 Post Count: 10885 |
All lua is, all coding is, is just creating and changing values, which is what math is. |
|
|
@scripton
We're discussing syntax...? |
|
ZulsorasJoin Date: 2008-09-10 Post Count: 963 |
Found it out five years ago :)
2008 + 5 = 2013 |
|
AotrouJoin Date: 2008-04-26 Post Count: 11936 |
"For you, your levels of basic and such must be shifted due to join dates, which I can understand."
Was that a condescending remark about join dates? Because Game Design will have no part of that. Even for me, that line was basic, and I'm an awful scripter.
Point is, don't judge knowledge base on join dates. They're meaningless in an argument. |
|
|
ScriptOnJoin Date: 2010-08-22 Post Count: 10885 |
Obviously you haven't been scripting since you haven't heard about cancelled functions and abilities. |
|
AotrouJoin Date: 2008-04-26 Post Count: 11936 |
You have no right to make claims on the skill level of anyone on this forum. Game Design is a mature forum, where we treat (mostly) everyone with some form of respect.
Destroyer knows more about scripting than most people (including myself). I don't care how long you've apparently been on ROBLOX, you should still value the skill sets of others, even if they are, in your view or opinion, at a lower skill level than you.
Now with that, go to a scripting forum. This is not relevant to the concept or purpose of Game Design, and if you disagree, please find the rule saying that we share efficient lines of code. |
|
|
"Obviously you haven't been scripting since you haven't heard about cancelled functions and abilities."
I need not say a word. |
|
ScriptOnJoin Date: 2010-08-22 Post Count: 10885 |
@the, thanks for backing down.
@that other guy, this actually got moved by the genius mods.
And I never assume anyone is of a lower or higher scale than me in anything. I just scale to relativity, so that I`m not directly saying I can script better than someone. |
|
|
What did you mean by your statement, scripton?
Are you questioning my ability to understand the useful functions that ROBLOX has locked for no absolute reason? I do son, I do. |
|