Setting up Milliways Scripts

Milliways includes its own scripting language, details of which are available from within Milliways with the .scrhelp command. To get you started, we have a range of example scripts you can install in your home directory.

Note: SUCS members who first signed up after September 2008 will already have these scripts in their home directories so there is no need for them to read past this point.

These scripts can be found at http://sucs.org/files/Help/mw-script.tar.gz. Type the bold parts of the following at the command line on silver to install them:

[dez@silver somewhere]$ cd
[dez@silver ~]$ wget http://sucs.org/files/Help/mw-script.tar.gz
--18:19:51-- http://sucs.org/files/Help/mw-script.tar.gz
=> `mw-script.tar.gz'
Resolving platinum.sucs.swan.ac.uk... 137.44.10.6
Connecting to platinum.sucs.swan.ac.uk|137.44.10.6|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 15,552 (15K) [application/x-gzip]

100%[====================================>] 15,552 --.--K/s

18:19:51 (25.05 MB/s) - `mw-script.tar.gz' saved [15552/15552]

[dez@silver ~]$ tar zxvf mw-script.tar.gz
.mwrc
mw-script/
mw-script/colour.mws
mw-script/ipc.mws
mw-script/mud.mws
mw-script/random_user.mws
mw-script/slap.mws
mw-script/system.mws

The .mwrc file is automatically executed when you start Milliways from the shell on Silver.

If you are already in the Milliways talker when you make changes to your scripts, you can use the .restart command to make Milliways reload your .mwrc file and all the scripts referenced in it.

Page last modified by cmckenna on Wed, 21 Nov 2018 17:37:18 +0000