Jscript, LUA, ???

Posted by FishOnSpeed on Mon 19 Nov 2007 02:15 AM — 13 posts, 39,010 views.

USA #0
what is the difference and which is better for mush scripts?

i need to know which is more capable when it comes to writing scripts.

id appriciate any help that can be offered.
USA #1
Are you talking about using these languages to write MUSHclient scripts or to embed into a MUD server?

The languages are rather similar from a semantics standpoint (i.e. what their properties are) but personally I find Lua's syntax to be more enjoyable; Javascript is kind of a weird halfway point between too many languages. (IMO of course.) But it's not as if one language will let you do things that the other wouldn't.

One thing to keep in mind is that you are probably more likely to get help for Lua on this site than Javascript.
USA #2
i want to right scripts to use on a mud that i play using mushclient.

it sounds like lua would be the friendlier one to use.
#3
If you have any programming experience with any language, you should probably choose something that comes close to it (keep in mind that MC supports virtually anything that works with windows scripting API - VisualBasic, Perl, Python, etc.. probably even PHP).

Otherwise, go for something you wish to learn anyway.

Otherwise, go for something that is easy to learn - that would mean LUA, I guess.


There is no crucial difference between all the languages. In fact, 95% of every program or script will always be the logic, not the tools you use.
USA #4
As a nitpick (sorry), Lua isn't an acronym, so it's written just Lua, not "LUA".
USA #5
well i took 2 years of college java, but its been awhile since ive coded. and i dont particularly like java.
lua and java seem similar and i would like to learn something new.

most of my questions will be about making my scripts work with the client.
Australia Forum Administrator #6
Quote:

i need to know which is more capable when it comes to writing scripts.


In terms of capability, probably any script language will be adequate.

However to get questions answered quickly, I would choose Lua. There are some special features offered by MUSHclient which are only available to Lua (for example, getting style runs in a trigger.

Some of the frequent posters here use Lua these days, so you are more likely to get a quick response to a question if your script language is Lua.

Also, help for Lua is built into the MUSHclient help file, whereas help for other languages is in their separate help files.
USA #7
Quote:
lua and java seem similar and i would like to learn something new.

I'm not sure what you mean by "similar" in this case; personally I would have said that Lua and Java (note: not Javascript) are rather different languages.
Australia Forum Administrator #8
Quote:

One thing to keep in mind is that you are probably more likely to get help for Lua on this site than Javascript.


I agree with David here.
Australia Forum Administrator #9
Quote:

personally I would have said that Lua and Java (note: not Javascript) are rather different languages.


They both have variables, loops, functions, that sort of thing.
USA #10
Yes, but in that sense, almost every language used these days is similar. :-) So I was wondering which kind of "similarity metric" (if I may use such a term) was being used.
Australia Forum Administrator #11
Quote:

Yes, but in that sense, almost every language used these days is similar. :-)


Yes, I was making a little joke. :-)
USA #12
from looking at code from both languages it looks to me like they are both set up, organized, and executed in similar mannners. i didnt say they were the same just similar.

but i guess your right ... going by that most current languages are similar.

i was very tired last night, and i dont mix well with code while im tired :)