Macro conditionals - Total-RP/Total-RP-3 GitHub Wiki
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 truevalue_2ifcondition1is false andcondition2is truevalue_3if bothcondition1andcondition2are false
Available macro conditionals
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