Skip to content

Macro conditionals

Daniel Yates edited this page Nov 8, 2023 · 5 revisions

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 return value_if_true only if condition1 AND condition2 are met.
  • [condition1][condition2] value_if_true; value_if_false will return value_if_true if condition1 OR condition2 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 if condition1 is true
  • value_2 if condition1 is false and condition2 is true
  • value_3 if both condition1 and condition2 are 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
Clone this wiki locally