Fixed so standard libraries can be used, added an example script, and fixed so all hf.mf-ops can be called

This commit is contained in:
martin.holst@gmail.com 2013-05-22 13:04:01 +00:00
parent 806dc07542
commit 5a92cb525e
3 changed files with 38 additions and 71 deletions

10
client/scripts/test.lua Normal file
View file

@ -0,0 +1,10 @@
local foo = "This shows how to use some standard libraries"
print(foo)
local answer
repeat
io.write("Continue with this operation (y/n)? ")
io.flush()
answer=io.read()
until answer=="y" or answer=="n"
local x = "Ok then, %s"
print (x:format("whatever"))