So, one of my coworkers is teaching me to script in Metaplace, using Metascript - a sandboxed version of Lua. Whee!
He explained everything beautifully and my “homework” was just to make a hello world script, which I did - however, I forgot one thing: to run a command, you have to attach the script to your player template. Oops! I spent a few minutes staring at the tiny little script I had written before my deskmate noticed my error. Silly me. It worked like a dream.
In case you are wondering, here’s what Hello World looks like in Metascript. It’ll only show up in the debug menu for now, but it’s a start!
Define Commands()
MakeCommand(“hello_world”, “this is a hello world script”)
end
Command hello_world()
Debug(“Hello, world!”)
end
Now on to my other “homework” - getting comfy with data types (Just working with Numbers, Strings, and Nil for now), and variables - and if I am feeling particularly saucy I might do some simple math. :)