DXPowerJoin Date: 2008-10-21 Post Count: 2866 |
What it would do:
It would take the current proccess to any line, also having the ability to share variables without having to make arguments.
How it would be used:
GOSUB, 122
It would take the script to line 122, skipping any lines between the current line and the requested line.
Why it is useful:
You would be able to go to certain lines, any line, skipping other lines, and sharing variables with no arguments. It would remove the hassle of calling other functions, making the functions, sharing the arguments and all that.
The one bad thing:
Lines increase as you make the script. You may add another line above it or delete one above it.
In order to get around it:
The script will automatically detect if a line above has been added or deleted changing the GOSUB line automatcially.
Why it is capitalized:
You know how languages are borrowed from other languages right? Like English is borrowed from Spanish, French, Italian, Greek etc.... Well, I borrowed this from PBASIC 2.5. I edited how it is used a bit, but over-all a form of PBASIC 2.5. It would be a very good update.
Q & A:
Will I have to capitalize it every time:
No, it will do it automatically.
How do I share variables?
It does it automatically.
Can I go UP a line AND down a line?
Yes.
Why would it be borrowed form PBASIC 2.5?
Well, PBASIC 2.5 is a very good language, in my opinnion. It is used in phones, some computers, mouses, calculators etc..
|
|
DXPowerJoin Date: 2008-10-21 Post Count: 2866 |
Bump. |
|
|
Good idea, that could be an easier way to have a multi-outcome script. |
|
theopforJoin Date: 2011-02-08 Post Count: 11003 |
Why not use a goto C++ function? I understand you can't use it in Lua, but something like that, would be more ideal. Instead of messing with line numbers, you could use a word, then a colon afterwards. It would fix the flaw you pointed out. |
|
DXPowerJoin Date: 2008-10-21 Post Count: 2866 |
I pointed out how to fix the problem..
But, good update none the less. |
|
nights192Join Date: 2008-02-22 Post Count: 18071 |
Spaghetti programming should be looked down upon. I suggest using functions instead. |
|
|
DXPowerJoin Date: 2008-10-21 Post Count: 2866 |
Bump! |
|
|
No. Learn to use proper flow control. |
|
rampage29Join Date: 2010-09-02 Post Count: 112 |
ok ok erm... sorry but you have fail your test |
|
|
Well I'm no genius scripter but this sounds great
ᴄᴌаѕѕўӎдяќ |
|
DXPowerJoin Date: 2008-10-21 Post Count: 2866 |
Bump. |
|
DXPowerJoin Date: 2008-10-21 Post Count: 2866 |
Another bump... |
|
|
I don't know about this, you mean roblox Lua or Lua? |
|
DXPowerJoin Date: 2008-10-21 Post Count: 2866 |
I am talking about adding a NEW command, that is slightly edited from PBASIC 2.5, and putting it in rblx.Lua (ROLOX Lua).
Saving the world, one rainbow barf at a time. |
|
DXPowerJoin Date: 2008-10-21 Post Count: 2866 |
Bump, a few more supports and I'll make a V.2!
With a Five-Guys burger in my hands, I am now invincible! |
|
XAXAJoin Date: 2008-08-10 Post Count: 6315 |
Omnomnom I love spaghetti.
I'd rather use a separate script, maybe even functions to make a script more organized.
"You can't debug a script you wrote with the best of your ability. Therefore never try your best when you're writing a script." |
|
|
DXPowerJoin Date: 2008-10-21 Post Count: 2866 |
They can add to ROBLOX Lua, you notice they just added :Destroy() So, facebookrobloxcool, you are wrong, they can add to rblx.Lua, just not Lua itself.
With a Five-Guys burger in my hands, I am now invincible! |
|
|
"they can't add to lua."
Lua is interpreted, so if you make an interpreter and change things, you can in fact, change Lua.
~Ohne dich bin ich nichts~ |
|
|
But that doesn't mean that you should. This would be a useless addition to Lua, and it would discourage use of good flow control techniques like functions, loops, and if statements.
Plus, why would you want to add new things like this to Lua? Adding APIs and libraries, yes. Changing the language itself, no. |
|
|
I never said it was a good idea, or anyone should do it. I'm just educating.
~Ohne dich bin ich nichts~ |
|
|
Just use functions, they work just fine. |
|
javiman2Join Date: 2010-06-08 Post Count: 1453 |
Support sounds useful.
~Hammer Time |
|
DXPowerJoin Date: 2008-10-21 Post Count: 2866 |
I KNOW you can use functions, this is to go to a very SPECIFIC line, not a specific function. |
|