Which scripting language should I use?

Posted by Ledtim on Fri 13 May 2011 08:14 AM — 4 posts, 19,871 views.

#0
Hello, I'm considering converting to MUSHClient from another client that barely supports any sort of programmability.

If I have a background in coding VBA for MS Excel occasionally, would VBScript the easiest for me to start with? Or would it be better for me to learn some lua, which appears to be the primary scripting language for the client and I hear isn't overly difficult to learn?
USA #1
I would highly recommend learning Lua. I've written some VBScript in MUSHclient before, and it was horrifically difficult to do what is extremely easy in Lua. There's a great online book at the Lua website [1], and of course the forums here have seen almost every question you can think of.

[1]: http://www.lua.org/pil/
Australia Forum Administrator #2
I too would recommend Lua. The syntax is pretty similar to VBscript - I converted some VBscript plugins to Lua with a bit of find-and-replace. So you won't find yourself facing a whole new unfamiliar syntax.

But where Lua shines is its table handling, which lets you gather things (eg. mob names, friends lists etc.) into tables and sort, search, find stuff, really easily.
#3
I third lua for all the reasons above plus, if you use lua then those people who run MUSHclient through wine will be able to use your plugins without having to install extra stuff.

Bast