| Message |
As far as I know, it works.
However different script engines, when shoe-horned into the Windows Script Interface, work with varying degrees of success. I think for a while PHP had an annoying side-effect that it would simply close the client and exit the entire process, if there was a syntax error in your script.
Personally, I would recommend using Lua instead. The structure of Lua is similar enough to PHP (and C for that matter) that it isn't too hard to pick up. I speak as someone who writes a lot of code in Lua, and also maintains my web pages in PHP.
There are some functions and functionality only available in Lua. For example, triggers get a table of all the style runs in the matching line. There are also some script extensions in Lua, like getting all the files in a directory.
The other advantage of Lua is, since it is bundled with MUSHclient, if you write a script or plugin in Lua, you can be sure other players can use it. If you use PHP, they have to install that first.
Oh, and the help files which come with MUSHclient have help built into them for all the standard Lua libraries, so you can quickly look up the syntax of things like string.find. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|