TinTin++ Mud Client Manual
Action
space
Syntax: #action {message} {commands} {priority}
space
The #action command can be used to respond with one or several commands to a specific message send by the server. 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.
space
If the message starts with ~ color codes must be matched. You can enable #config {convert meta} on to display meta characters in order to make color triggers.
space
See the section on Regular Expressions' for information about pattern matching.
space
Example: #action {%1 tells you '%2'} {tell %1 I'm afk.}
space
Using a tilda you can create color triggers to capture otherwise difficult to trigger text, to see color codes use: #config {convert meta) on.
space
Example: #action {~^\e[1;37m%1} {#showme {--Shown in bold white: %1}}
space
Actions can be triggered by the showme command. If you don't want a showme to get triggered use: #line ignore #showme {text}
space
Actions are ordered alphabetically and only one action can trigger at a time. To change the order you can assign a priority, which defaults to 5, with a lower number indicating a higher priority. The priority can be a floating point number.
space
To remove action with %* as the message, use #unaction {%%*} or #unaction {\%*}. Alternatively you could wrap the action inside a class, and then kill that class when you no longer need the action.
space
Comment: You can remove actions with the #unaction command.
space
See also: Gag, Highlight, Prompt and Substitute.
space