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.
Entire forum
➜ MUSHclient
➜ Plugins
➜ More than one scripting language in one plugin?
More than one scripting language in one plugin?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Somegirl
(33 posts) Bio
|
Date
| Fri 15 Apr 2005 07:18 AM (UTC) |
Message
| I searched for an answer, but I know one of you can probably just answer this off the top of your heads. Can I use, say, Python and VBScript in one plugin? An example would be where a function like Accelerators aren't available with Python. How do I do this? Do I just make a second section for the second language in the same XML file? | Top |
|
Posted by
| Somegirl
(33 posts) Bio
|
Date
| Reply #1 on Fri 15 Apr 2005 07:25 AM (UTC) |
Message
| Okay, accelerators work with Python. Umm, I guess my question is now, do all functions work with Python? I've been running into a lot that don't show the Python syntax in the help files. | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #2 on Fri 15 Apr 2005 07:51 AM (UTC) Amended on Fri 15 Apr 2005 07:52 AM (UTC) by Flannel
|
Message
| Plugins can only be one language (of course you can have plugins in different languages on a per plugin basis, but that's not what youre asking, nor is what you were originally asking for needed, as you've found out).
Accellerators are a mushclient thing, and therefore language independant (except for syntax for that specific language).
Yes, all the mushclient functions will work with python, a lot of them dont have examples, simply because python is a recent addition. However you can get a feel (with the ones that do) as to how you would send things, the commands are still the same (the function will still accept N arguments of X, Y, and Z types). |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Somegirl
(33 posts) Bio
|
Date
| Reply #3 on Fri 15 Apr 2005 08:31 AM (UTC) |
Message
| Psh, but you're making me think about it! ::whine::
Nick needs to let me, Ked, or someone else work on those help files since he's so engrossed in Lua. | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #4 on Mon 18 Apr 2005 07:07 AM (UTC) |
Message
| I simply didn't do Python examples for everything, but the functions are all implemented using COM (excepting Lua) so if there is a function that works in VBscript (or JScript) it will definitely also work in Python.
No, you cannot have more than one script language in a single plugin, however if you want to use multiple languages you could make different plugins and use CallPlugin to call modules in another plugin. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
16,411 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top