Code Examples
Up one levelRiverdale J. Snoogsaskerl's selection of MPI and MUF code examples from way back when bushy-tailed squirrels were real bushy-tailed squirrels.
-
Teaching
- Functional code examples with explanations to help new coders learn MPI.
-
MPI Text Wrap
- An MPI macro for wrapping text to a given width, useful for automatically formatting descriptions.
-
MPI Wrap Source
-
MPI Music Box
- Translates notes (i.e., 'ABCD') into musical notation (treble clef).
-
Music Box Code
-
MPI Message Board
- An MPI Message Board
-
Soda Machine
- A simple MPI Soda Machine
-
Sagebrush Inn
- I post this mostly for the purposes of demonstrating build-scripting techniques and some reasonably intricate MPI scripting and automation. While this script can be run on an NMC MUCK, I recommend against running this unless you want a clone of my inn. Included is code for a message board, a room system (with keys, a concierge, a bellweasel...), a pillow fight game, and probably other things of interest. Some annoying design limitations in MPI make repeat code more necessary than I would like, but that's a subject for another rant.
-
Wiz-code
- Truly ancient code, most (all?) of which requires a wizbit to function, and none of which has been tested in the past five years. This is mostly for backup purposes, although someone may get some use out of poring over the files.
-
Cartographer
- A drone that explores an area and generates map data.
-
MPI Laser Tag
- A pretty well featured MPI laser tag game. This code will NOT RUN AS-IS, so don't copy and paste it. I put it here primarily because it may have instructional value and, secondarily, for archival.