|
| 05 Aug 2014 11:05 AM |
Hello fellow Scripting Helpers. I know this is just advertising, but I figured that this forum might be a good place to slap the link down because many people come here looking for help with scripting.
Over the past few weeks I've been working on a game that will hopefully help teach scripting in Roblox to people looking to get started. It has interactive questions, lots of pictures, and project ideas so people can get some practice.
I hope an interactive and chronological way of learning scripting in Roblox will be helpful to people. http://www.roblox.com/Learn-to-Script-place?id=167721659 |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 05 Aug 2014 01:59 PM |
| I got stuck on the starter gui part because it was "case sensitive". |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2014 03:51 PM |
was there an error with it being case sensitive? I'm pretty sure I copied it all right.
bump x3 |
|
|
| Report Abuse |
|
|
| |
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
|
| 05 Aug 2014 06:26 PM |
| you ######## suck kill yourself ########## noob |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Aug 2014 10:03 AM |
| Very nice game, only had time to play it for a short while, but it goes into detail very well. Good job! |
|
|
| Report Abuse |
|
|
| |
|
| |
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 07 Aug 2014 08:41 AM |
Well i went there and it is a nice place. Good work i guess, |
|
|
| Report Abuse |
|
|
| |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 07 Aug 2014 08:55 PM |
QQ I can't do Game and I can't index with brackets and I can't use semi-colons...
It would be better to check by actually checking if it exists as opposed to if the text equals something. |
|
|
| Report Abuse |
|
|
togov
|
  |
| Joined: 21 Apr 2010 |
| Total Posts: 3740 |
|
| |
|
|
| 08 Aug 2014 02:42 PM |
| @cntkillme Sorry about it being tedious sometimes, but I don't really know how to take a string and actually run it as a script. Hopefully you can figure out what I intended for you to type in the question. The typed questions never have really crazy answers. |
|
|
| Report Abuse |
|
|
12packkid
|
  |
| Joined: 24 Jun 2011 |
| Total Posts: 1418 |
|
|
| 08 Aug 2014 02:50 PM |
| I just entered a script that would work, but it's more advanced than the actual reference thing and it took away 2 points. q.q |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 08 Aug 2014 03:04 PM |
An easy way would be loadstring but that is going to be removed in the future. You can do some string manipulation to have it ignore some spaces and words and whatnot.
Like define local x = 5 can be tested like: str = "local x= 5"; local correct = str:match("[local]+%s+[x]%s-%=%s-[5]"); print(correct ~= nil); |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Aug 2014 09:20 PM |
| Right now it only ignores spaces. I honestly didn't know semicolons were aloud to be plopped in everything in Lua :P so I should probably make it ignore semicolons too. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 08 Aug 2014 09:27 PM |
I guess you can do (since Lua does allow >= 0 semi-colons): local correct = str:match("[local]+%s+[x]%s-=%s-[5]%;-$"); |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2014 09:45 PM |
I just used string.gsub (http://www.lua.org/manual/5.2/manual.html#pdf-string.gsub), the first lua string function that I happened to stumble upon in the lua documentation. Then I just filter the whitespace (and now semicolons) out of the response text and see if it matched the answer.
The answers are just strings with no spaces in them in a huge table
local questions = { .. { -- 2 (typed answer) p = "What were you asked to type in?", a = "ILoveChicago" }, .. .. } |
|
|
| Report Abuse |
|
|