-
Notifications
You must be signed in to change notification settings - Fork 18
Macro conditionals
Macro conditionals let you define multiple behaviours for an Automation action based on conditions on your character at any given point.
The format of a macro conditional is the following: [condition] value_if_true; value_if_false
.
A condition can be reversed by adding the no
prefix. For example, [nomounted] value_1; value_2
will return value_1 if the character is NOT mounted, and value_2 if the character is mounted.
You can combine conditions together for logical expressions:
-
[condition1,condition2] value_if_true; value_if_false
will returnvalue_if_true
only ifcondition1
ANDcondition2
are met. -
[condition1][condition2] value_if_true; value_if_false
will returnvalue_if_true
ifcondition1
ORcondition2
is met.
You can also chain conditions on the second choices. For example, [condition1] value_1; [condition2]value_2; value_3
will return
-
value_1
ifcondition1
is true -
value_2
ifcondition1
is false andcondition2
is true -
value_3
if bothcondition1
andcondition2
are false
A list of default macro conditionals is available on the Warcraft Wiki.
In addition to those conditionals, you can use the following custom Total RP 3 conditionals (Non-English clients can use either the English version or the localized version shown in the addon):
-
[afk]
: Checks if the character is AFK -
[altform]
: (Worgen/Evoker only) Checks if the character is in their human form (Example:[altform] Human Profile; Worgen Profile
) -
[character:...]
: Checks if the current character is called ... (in-game name) -
[dnd]
: Checks if the character is DND -
[instance]
: Checks if the character is in an instance -
[location:...]
: Checks if the zone in the minimap text is ... -
[profile:...]
: Checks if the current profile (as it appears in the Profiles list) is called ... -
[pvp]
: Checks if the character has PvP enabled -
[realm:...]
: Checks if the current character is on the ... realm -
[rpstatus:ic]
or[ic]
: Checks if the character is In Character -
[rpstatus:ooc]
or[ooc]
: Checks if the character is Out of Character -
[warmode]
: Checks if the character has war mode enabled