| Action |
 |
| Syntax: #action {message} {commands} {priority} |
 |
| The #action command can be used to respond with one or several commands to a specific message send by the mud. The %1-99 variables are substituted from the message and can be used in the command part of the action. The priority part is optional and determines the priority of the action, it defaults to 5. |
 |
| If the message starts with ~ color codes must be matched. You can turn on #config convert to display meta characters in order to make color triggers. |
 |
| If the message starts with ^ the beginning of the action message and mud message must match. If the message ends with a $ the end of the action message and mud message must match. |
 |
The following support is available for regular expressions.
{ } embed a perl compatible regular expression, available at %xx + 1.
[ ] . + | ( ) ? * are treated as normal text unlessed used within braces. Keep in mind that { } is replaced with ( ).
Of the following arguments the (lazy) match is available at %xx + 1
%w match zero to any number of letters.
%W match zero to any number of non letters.
%d match zero to any number of digits.
%D match zero to any number of non digits.
%s match zero to any number of spaces.
%S match zero to any number of non spaces.
%? match zero or one character.
%. match one character.
%+ match one to any number of characters.
%* match zero to any number of characters.
%i match becomes case insensitive.
%I match becomes case sensitive (default).
|
 |
Example: #action {%1 tells you '%2'} {tell %1 I'm afk.} |
| Notice: You can remove actions with the #unaction command. |
 |