Command Name: macros
For Level: iSLaNDeR
Command Usage: .macros
.macros # -delete
.macros # [search pattern] = [replace pattern]
What It Does: When this command is used by itself, it gives a list of all the macros that you have set. To set a macro, you use:

.macro # [search pattern] = [replace pattern]

To set a macro, you must specify the macro number that you would like to set, followed by the pattern that you would like that macro to search for, the = sign, and the pattern you would like to replace your search pattern with. For example: '.macro 1 bri = brIStol' would set your first macro to replace all instances of 'bri' with 'brIStol'. So whenever you use a speech command it would look for 'bri' in what you typed, and replace 'bri' with 'brIStol'. Note that if you type "brian" with this macro, it would convert it to "brIStolan", so you would probably want to be careful to avoid setting your macros to things that you would type as parts of other words, etc. Also, macros are case-sensitive, so they handle lowercase and capital letters differently. "Brian" would not be replaced with the macro mentioned above. You can also use colour codes in your macros, but you would want to use the '~RS' colour code after your replace pattern to reset the color, or if you have a colored hat, you would end your replace pattern with the code for the colour you speak in. Also, note that you cannot have duplicate macros. To delete a macro, just type '.macro # -delete', where # is the number you want to delete.
Related Command(s): aliases
See Also: hatcolour, "using colors"

Go back to the command list. Go back to miscellaneous commands.