Command:/declare
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 | /declare <varname | varname [array extents]> [type] [global | outer | local | bind] [<default element value>] |
---|---|
Description | This creates a variable or array of a particular type with a particular scope, and a default value if desired. The parameters must be given in order, but any after varname may be skipped to use the defaults.
Notes
These variables can be of any type that exist in MQ2DataVars. The variable will then have access to the members of that type. |
Options
Examples
/declare MyStringArray[25] string local ARRAY-UNDEFINED-ELEMENT
/declare delayNotice int local 30
/declare thisItem string local