|
| 11 Aug 2015 02:26 AM |
This is for a friend that is horrible at scripting...
but lets say b4 evry script you would copy/past this... (Just a thought) stop = end loop = while true do yes = true no = false Msg = instance.New("Message") home = game.Workspace touch = OnTouched(hit) ! well you get the point, yes the code above wont work, but maybe you could make a plugin? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Aug 2015 02:27 AM |
That actually would be a pretty bad idea. You can do stuff like
yes = true no = false etc
But in all honesty, Lua is simple enough. If you can't learn the real syntax and have to rely on macros (which don't exist in Lua) for a language as simple as Lua, you're doing something wrong.
Tell this friend (whether it might be you or not) to spend more time practicing. |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 11 Aug 2015 02:28 AM |
Why would you want to do this in the first place? Why not use a module to load common used parameters//functions? |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2015 02:30 AM |
@cnt
Yes that works
but im thinking of making a plugin that makes lua simple to newbs.
/w exaples... |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 11 Aug 2015 02:40 AM |
A plugin would work to convert it into valid lua code, but honestly syntax is the easier part, but the biggest hurdle (sort of, if that makes any sense).
Honestly this is just going to dig anyone who uses it deeper into their hole. |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 11 Aug 2015 02:42 AM |
^
if you can't really learn RBX.Lua, or at least the basics, you'll have some trouble when trying to learn anything else probably. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2015 02:43 AM |
but image you could just type this
make a new part put that new part in the game make that new part red make that new part 0.5 invnisible make that new part anchored Wait for 2 seconds deleat that new part loop
|
|
|
| Report Abuse |
|
|
|
| 11 Aug 2015 02:44 AM |
@instawin
.im learning lua, with little experience from c++, ruby, and pro at python. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Aug 2015 02:45 AM |
believe it or not, that'll be even harder to script in then regular lua
I'll gladly make you a basic interpreter, and you will soon realize just how bad it is to program "in english" |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Aug 2015 02:45 AM |
| omg i used then instead of than |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2015 02:47 AM |
@cnt
thats cous your used to LUA
but a new player would find that very simple like really.
LUA: "part = instance.New("part")" Possible Plugin: "make a new part named Part1" |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2015 02:49 AM |
| Well this could open programming to new ppl.. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2015 02:53 AM |
| no that would be impossible to teach lua english |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2015 02:54 AM |
| Well nothing is impossible when programming but it will never be done in a million years |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 11 Aug 2015 02:55 AM |
@pischo What you are talking about here is creating your own language entirely different from Lua. It's not going to help newbs because it'll have entirely less documentation that Roblox's flavor of Lua and they'll have only you to learn from. If they try to move from this to Lua they'll be pretty much where they initially started minus however much time they sank into learning this.
This is something that won't be useful to them anywhere else and they'll have an extremely limited community to help them learn this.
In sort, they'd have to actively try harder to learn your language than they would attempting to learn lua |
|
|
| Report Abuse |
|
|
Iterum
|
  |
| Joined: 30 Jan 2009 |
| Total Posts: 1982 |
|
|
| 11 Aug 2015 03:00 AM |
LUA != Lua
its Lua
-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts |
|
|
| Report Abuse |
|
|
Iterum
|
  |
| Joined: 30 Jan 2009 |
| Total Posts: 1982 |
|
|
| 11 Aug 2015 03:01 AM |
Also, this is an asbolutely terrible idea. I just can't explain how stupid this is.
Sure, it comes from a good heart so I guess that has to count for something, but this is terrible.
-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 11 Aug 2015 03:02 AM |
how would you even implement functions in "that language"?
maybe we should call it Luglish |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2015 03:14 AM |
So:
loop local Answer = true if Answer == yes then Msg.Parent = home Msg.Text = "HI" stop wait(1) stop
?
Bad idea..
Hard hard is it to
while true do local Answer = true if Answer == true then local Msg = Instance.new("Message", game.Workspace).Text = "HI" end wait(1) end
?? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Aug 2015 03:17 AM |
I think he wants something like
i want to set a variable named Answer to yes if Answer is yes then: - create a new Message in Workspace and set the Text to HI stop wait 1 second loop
idk |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2015 03:20 AM |
Maybe ill create my own programming language..
hmm |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Aug 2015 03:22 AM |
Everyone will hate to program in English like that, literally everyone. One of my favorite things about programming is I don't have to deal with the bullsht of the english language. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2015 03:22 AM |
Well, when lua was made noone liked it.
But aftera while. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Aug 2015 03:23 AM |
'Well, when lua was made noone liked it.' You have no idea what you're talking about and don't know the history of Lua, so shut up please. |
|
|
| Report Abuse |
|
|
Everment
|
  |
| Joined: 08 Oct 2009 |
| Total Posts: 6020 |
|
|
| 11 Aug 2015 03:26 AM |
"omg i used then instead of than" CNT HOW DARE YOU.
@OP don't do it. here's why:
no matter what, there's either one of two problems that are guaranteed to arise in the making of an "english" programming langauge:
1. the syntax won't recognise everything well enough, causing users to complain about how they can't just "tell" the interpreter to do stuff, or: 2. you'll have to force users to learn how to tell the interpreter to do certain things, in which case they'd be better off learning regular lua as it's the same thing with a different set of syntax. |
|
|
| Report Abuse |
|
|