An example of doing various things in PerlScript is now part of the version 3.02 (onwards) release of MUSHclient.
If you prefer using PerlScript as a scripting language, check out this file, as it demonstrates most of the features of interfacing with the MUSHclient scripting model.
For example, here is a simple script subroutine that will list all of your variables:
If you prefer using PerlScript as a scripting language, check out this file, as it demonstrates most of the features of interfacing with the MUSHclient scripting model.
For example, here is a simple script subroutine that will list all of your variables:
sub showvariables
{
foreach $item (Win32::OLE::in ($world->GetVariableList))
{
($key, $value) = ($item, $world->GetVariable ($item));
$world->note($key . " = " . $value) if (defined ($key));
}
} # end of showvariables