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
➜ Programming
➜ General
➜ Jscript, LUA, ???
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| FishOnSpeed
USA (31 posts) Bio
|
Date
| Mon 19 Nov 2007 02:15 AM (UTC) |
Message
| 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. |
~FishOnSpeed | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Mon 19 Nov 2007 02:30 AM (UTC) |
Message
| 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. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| FishOnSpeed
USA (31 posts) Bio
|
Date
| Reply #2 on Mon 19 Nov 2007 03:15 AM (UTC) |
Message
| 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. |
~FishOnSpeed | Top |
|
Posted by
| KP
(24 posts) Bio
|
Date
| Reply #3 on Mon 19 Nov 2007 03:33 AM (UTC) |
Message
| 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. | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #4 on Mon 19 Nov 2007 03:40 AM (UTC) |
Message
| As a nitpick (sorry), Lua isn't an acronym, so it's written just Lua, not "LUA". |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| FishOnSpeed
USA (31 posts) Bio
|
Date
| Reply #5 on Mon 19 Nov 2007 03:42 AM (UTC) |
Message
| 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. |
~FishOnSpeed | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #6 on Mon 19 Nov 2007 04:14 AM (UTC) |
Message
|
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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #7 on Mon 19 Nov 2007 04:23 AM (UTC) |
Message
|
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. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #8 on Mon 19 Nov 2007 05:08 AM (UTC) |
Message
|
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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #9 on Mon 19 Nov 2007 05:09 AM (UTC) |
Message
|
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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #10 on Mon 19 Nov 2007 05:33 AM (UTC) |
Message
| 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. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #11 on Mon 19 Nov 2007 06:21 AM (UTC) |
Message
|
Quote:
Yes, but in that sense, almost every language used these days is similar. :-)
Yes, I was making a little joke. :-) |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| FishOnSpeed
USA (31 posts) Bio
|
Date
| Reply #12 on Mon 19 Nov 2007 12:54 PM (UTC) |
Message
| 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 :) |
~FishOnSpeed | 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.
28,035 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top