Using ascii2mush and figlet for easy beautification

Submitted by javelin on Sun, 2012-02-12 22:49

If you ever wanted nice, large text, or complex maps on MUSH, and have had a flag day doing it (like me), you might want to take a look at ascii2mush.
Ascii2mush ( is a nifty perl script made by Javelin@M*U*S*H, that converts spaces to %b or to [repeat(%b,number)], escapes "\\"s, and generally makes ascii art and the like display the way you want it to.

To use it, you must have PERL installed. The next steps assume you use *nix, but if you use PERL regularly on another OS, you should be able to figure out how it works.
Download the script, modify the path in the #! line (first line) to the path where perl lives (to find out, type whereis perl), save it, and place it somewhere in your path (or if you are root and want other users to be able to use it, place it in /usr/local/bin for example).

You can now either type ascii2mush <file>, in which case it will convert the contents of <file> to MUSH format, or use pipes to it, like with figlet.

For example, if you want to display \'Hello!\' in big letters in a certain room, you can use figlet (for information on figlet and how to get it, see in combination with ascii2mush like this: figlet Hello! |ascii2mush, and copy and paste the result to the MUSH. For more information on how to use figlet, read the documents packaged with figlet, available on the above URL, or type \'man figlet\' if it\'s installed.

If you want to create a visual map, you can draw the map in a text file (pico -w map, then draw and save it), and then type ascii2mush map, and it will convert the map to MUSH format.
Ascii2mush can save you a lot of time when creating graphical things on a MUSH, so if you don\'t want to spend a lot of time perfecting your maps etc, I recommend using it.

2001-Apr-01 4:47pm aiviru