Home

MUME Help

Index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

MUDLLE


Mudlle (MUD Language for Little Extensions) is the online programming language designed especially for MUME.

It allows the creation of intelligent mobiles, rooms, and objects. One example of a mudlled object is the whetstone (if you are lucky enough to find one). Mudlle is quite similar to the programming language Scheme (a Lisp dialect).

This mudlle program on a mobile would cause it to repeat anything said by a player in the same room:

module
[
  | repeat | // Define repeat as a local variable

  repeat = fn (me, who, verb, args) [
    if (verb == CMD_SAY && !is_mobile?(who))
      [ 
	// The one who said something not a mobile.
	actor = me;
	say(args)
      ];
  ];

  react_event(repeat, "Function that makes a mob repeat says",
              event_command);
]
Mudlle is available as a standalone program from here:

See also: HELP MUDLLERS

Generated on Mon Aug 31 21:53:23 2020