arbitrary commands - luxembourg/muxcode-clm GitHub Wiki
ARBITRARY COMMANDS
You may define commands that are triggered whenever someone enters a command that matches the command template (wildcard-ing allowed). These commands are called arbitrary commands, user-defined commands, or $-commands (for how they are defined), and they are checked for only after the check for single-character commands, exits, and internal commands have been performed and have failed (so an arbitrary command that matches 'page *' will never be performed).
You define an arbitrary command by storing a string of the form '$<template>:<command list>' in an attribute of an object, then the command will be available to anyone who carries the object, is in the same room as the object, or is inside the object. Only use user-named attributes and VA-VZ for arbitrary commands, as many of the predefined attributes are not for arbitrary commands. <template> is the pattern to check for (it may contain wildcards), and <command list> is a semicolon-separated list of commands to perform. The text that the wildcard characters matched are available in the variables %0 through %9.
{ 'help arbitrary2' for more }