Syntax: #SU string [string]

This command is used in conjunction with triggers to change the text matched by the last trigger pattern to something else. It is useful for removing clutter on the screen. You can also use this command to directly create the substitute trigger.


#TRIGGER {(*) tells you,} {#SUB {%1:}}
Replaces all lines received from the MUD of the form xxx tells you, with the text xxx: . This saves room on the screen and is especially useful in a subwindow that captures text matching a pattern.
#SUB Zugg zMUD-Guru
Substitutes any occurrence of the string "Zugg" with the new string "zMUD-Guru".
#SUB {lt(%w)} {%lower(%1)}
This tricky command creates a trigger that substitutes the text "lt" followed by any word with the lowercase version of the word. For example, the string "ltZUGG" would be replaced with "zugg". This shows how to use wildcards and variables with the substitute command which makes it very powerful.

Contents STW T-