For our first exercise, we’ll adapt the universal “Hello World” code example. We’re going to make use of the emit
method on the client object.
The ruby
command lets you execute arbitrary Ruby code from your MUSH client window and see the results, similar to how you might have done MUSHcode in the past. You can’t create entire commands or systems this way (unlike MUSHcode) but you can run little utilities and test things.
In your MU client, type this:
ruby "Hello #{enactor.name}!"
The game should respond by saying hello to you.
enactor
is the character object running the command.