Command:/substitute
This command is added by MacroQuest
Notation | Description |
---|---|
Text without brackets or braces | Required items |
<Text inside angle brackets> | Placeholder for which you must supply a value |
[Text inside square brackets] | Optional items |
Vertical bar (|) | Separator for mutually exclusive items; choose one |
{Text | inside | braces} | Set of required items; choose one |
Ellipsis (…) | Items that can be repeated |
Syntax | /substitute list | <orig> [delete] | [<new>] |
---|---|
Description | Allows you to create custom midline substitutions. They can be called from any alias or commandline by using the percent sign (%). |
Options
Option | Description |
---|---|
list | Displays a list of substitutions |
<original> delete | Will delete the specified subsitution |
<original> <new> | The original text you'd like substituted, followed by the substitute |
Examples
A substitution is included in MacroQuest by default. You can see it with /substitute list
, and call it with /echo %omg
Here's how to assign an entire sentence to a single letter, with several variables:
/substitute mom Mother
/substitute omg Oh my god!
/substitute k "%omg, kill %t before I tell your %mom"
If you typed "/say %k", it would produce:
Oh my god!, kill targetname before I tell your Mother
Notes
- Substitutions do not currently work in macros.
- You don't use the percent signs when creating the substitutions or editing your config file.
- You can use MQ's subsitutions without spaces around them (unlike EQ's!).
- You can use EQ's wildcards (ie: %t) within your substitutions, however, you have to leave spaces around them (yes, they suck).
- You cannot CURRENTLY replace EQ wildcards with MQ substitutions (eg. you can't make a replacement for %m).