-
Notifications
You must be signed in to change notification settings - Fork 24
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_falsewill returnvalue_if_trueonly ifcondition1ANDcondition2are met. -
[condition1][condition2] value_if_true; value_if_falsewill returnvalue_if_trueifcondition1ORcondition2is met.
You can also chain conditions on the second choices. For example, [condition1] value_1; [condition2]value_2; value_3 will return
-
value_1ifcondition1is true -
value_2ifcondition1is false andcondition2is true -
value_3if bothcondition1andcondition2are 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. This list is valid for patch 3.3.1 and later.):
-
[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) -
[class:...]: Checks if the current character's in-game class is ... (class name or class ID) -
[dnd]: Checks if the character is DND -
[faction:...]: Checks if the current character's faction is ... (faction name) -
[gender:...]/[sex:...]/[bodytype:...]: Checks if the current character's body type is ... (English gender name or sex ID) -
[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 -
[race:...]: Checks if the current character's in-game race is ... (race name or race ID) -
[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