Command:/docommand
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 | /docommand <command> |
---|---|
Description | Execute <command>, parsing MQ Data first. Useful for executing commands using MQ Data that do not parse immediately, as well as executing a command stored in a variable. |
Options
Examples
- A simple example that echoes "sitting" if sitting, and "not sitting" if not;
/docommand ${If[${Me.Sitting},/echo sitting,/echo not sitting]},
- A simple example that activates AA 177 if you have a target, and echoes "no target" if not;
/docommand ${If[${Target.ID},/alt activate 177,/echo No Target]}