I managed to get Ruby scripting running pretty easily, although it was quite a fight finding an wsh-integrated version. I finally found an ActiveRuby install (not related to the people at ActiveState unfortunately), which worked just fine when I set it up.*
I haven't gone too deep into it, but I already found some problems if I try to print to the screen without using Note or any of the other MUSHclient functions. print, p, and puts all fail (as well as gets, which waits for user input) due to a "bad file descriptor". I have no way to tell whether this is a MUSHclient problem or an ActiveRuby problem, though. I am glad to say that fun constructs like "3.times do Note 'Hi!' end" work perfectly, though. ;)
Any idea what's up with the bad file descriptor? Seems to me like STDIN/STDOUT aren't set right, or something...
* http://www.geocities.co.jp/SiliconValley-PaloAlto/9251/ruby/main.html
EDIT: Hmm... functions like Note() have to match the declared parameter amount exactly, so I can't do Note() or Note(a, b), just Note(a). (But I can do Note(a + b) fine)
I haven't gone too deep into it, but I already found some problems if I try to print to the screen without using Note or any of the other MUSHclient functions. print, p, and puts all fail (as well as gets, which waits for user input) due to a "bad file descriptor". I have no way to tell whether this is a MUSHclient problem or an ActiveRuby problem, though. I am glad to say that fun constructs like "3.times do Note 'Hi!' end" work perfectly, though. ;)
Any idea what's up with the bad file descriptor? Seems to me like STDIN/STDOUT aren't set right, or something...
* http://www.geocities.co.jp/SiliconValley-PaloAlto/9251/ruby/main.html
EDIT: Hmm... functions like Note() have to match the declared parameter amount exactly, so I can't do Note() or Note(a, b), just Note(a). (But I can do Note(a + b) fine)