Board Thread:Questions and Answers/@comment-11065438-20130619224207/@comment-75.150.80.137-20131105175304

The formatting of your post made it difficult for me to figure out what the problem was at first, but unless I'm missing something it doesn't look like you actually called any of the functions you defined. Basically, you gave the program lots of tools but didn't tell it to use them. For example, a program that looks like:

function myfunction print("this is a function!") end

Wouldn't output anything, because all that I did was define a function, myfunction However, if I were to add a line:

function myfunction print("This is a function!") end myfunction

The line "myfunction" tells the program to run the function "myfunction" that was defined earlier, and thus would output "This is a function!"

In general, I would recommend adding print commands saying what the program is doing throughout any new program you are testing out especially at critical points, this will show you where the program gets to before it fails, which will give you an idea of where to look for errors in your program(this is sometimes called adding debug messages).

Hope this helped and happy programming, TheCasualGentleman