Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Which scripting language should I use?

Which scripting language should I use?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Ledtim   (2 posts)  Bio
Date Fri 13 May 2011 08:14 AM (UTC)
Message
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?
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #1 on Fri 13 May 2011 08:30 AM (UTC)
Message
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/

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #2 on Fri 13 May 2011 10:48 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Bast   (78 posts)  Bio
Date Reply #3 on Sun 15 May 2011 01:35 AM (UTC)
Message
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

Bast

Scripts: http://github.com/endavis
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


15,716 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.