Command:/delay
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 | /delay <#>[s | m] [<condition to end early>] |
---|---|
Description | When used in a macro, fully pauses the macro for the amount of time specified, or until condition is met.
Time can be specified in 10ths of a second (a number by itself) or in seconds (number followed by an "s") or minutes (number followed by "m"). |
Options
Examples
Simple example:
/delay 7 Delays the macro for 7 tenths of a second /delay 2s Delays the macro for 2 seconds /delay 3m Delays the macro for 3 minutes
Examples using MQ Data:
/delay ${Math.Rand[10]}s Delays the macro for a random amount of seconds in the range of 0 to 10 /delay ${Math.Calc[${Math.Rand[10]}+5]}s Delays the macro for a random amount of seconds in the range of 5 to 15
The below example will hold down the forward key and will execute "/keypress forward" (press forward once) when
${Spawn[1234].Distance} \< ${Spawn[1234].MaxMeleeTo}
evaluates to TRUE or after 1 second passes.
/keypress forward hold /delay 1s ${Spawn[1234].Distance}<${Spawn[1234].MaxMeleeTo} /keypress forward