Command:/return
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 | /return [value|${varname}] |
---|---|
Description | Returns to the line immediately following the call. Can return values or variables. |
Options
Examples
Sub Add(int A, int B)
/declare Sum int local ${Math.Calc[${A}+${B}]}
/return ${Sum}
Return can also be used to exit out of a subroutine early.
Sub Evade
/if (!${Me.AbilityReady[Hide]}) {
/echo Hide has not refreshed, so we are leaving early.
/return
}
/echo Hide is ready, so we will continue processing
/attack off
/doability Hide
/delay 5
/attack on
/return