|
| 21 Feb 2014 06:10 PM |
I challenge you, SH'ers!
Someone should try to create a script using all of Lua's key words (function, local, while, etc.) It doesn't have to be extremely useful, but it has to work. Anyone up for the challenge?
I'm bored, if you couldn't tell. |
|
|
| Report Abuse |
|
|
YumERAGON
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 3893 |
|
| |
|
|
| 21 Feb 2014 06:15 PM |
| I was actually hoping someone would cleverly reply 'Challenge accepted!' |
|
|
| Report Abuse |
|
|
YumERAGON
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 3893 |
|
|
| 21 Feb 2014 06:16 PM |
OOOHHHHH ok
print("Challenge accepted") |
|
|
| Report Abuse |
|
|
|
| 21 Feb 2014 06:18 PM |
B = 1 print (B) local function Dostuff() A = 0 local B = 2 print ("hello world!"..A..","..B.."") end while wait() do Dostuff() end |
|
|
| Report Abuse |
|
|
|
| 21 Feb 2014 06:18 PM |
This wouldn't be hard. Just time consuming. And a waste of time at that ... I've got bigger things to work on. :c |
|
|
| Report Abuse |
|
|
|
| 21 Feb 2014 06:18 PM |
Forgot an end..oopsie.. Also "Challenge accepted" |
|
|
| Report Abuse |
|
|
Vuva
|
  |
| Joined: 22 Jan 2010 |
| Total Posts: 1102 |
|
|
| 21 Feb 2014 06:21 PM |
All keywords for reference for people who want to waste their time:
and break do else elseif end false for function if in local nil not or repeat return then true until while |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Feb 2014 09:26 PM |
@Vuva, you forgot some
and break do else elseif end false for function if in local nil not or repeat return then true until while
coroutine, remove, insert, string, gsub, lower, upper, sub, etc etc. |
|
|
| Report Abuse |
|
|