Chat substitutions

From Warcraft Wiki
Jump to navigation Jump to search

All chat commands that send custom text to other players (for example, /yell, /csay, /emote, /raid) may make use of the following patterns to insert unit names or raid icons into the message.

These codes work in normal chat, in macros, and with the SendChatMessage function, and are not case-sensitive.

Available substitutions

  • %f - Inserts the name of the current focus target. Inserts <no focus> if applicable.
  • %n, %t - Inserts the name of the current target, e.g. "Sheeping %t!". Inserts <no target> if nothing is targeted.
  • {groupN}, {gN} - Inserts a space delimited set of class colored player names for those in the Nth group. e.g; {g3} stack on {star}
  • {texture} - Inserts one of the eight target markers:
    • {star}, {rt1} - star
    • {circle}, {rt2} - circle
    • {diamond}, {rt3} - diamond
    • {triangle}, {rt4} - triangle
    • {moon}, {rt5} - moon
    • {square}, {rt6} - square
    • {cross}, {rt7} - cross
    • {skull}, {rt8} - skull
Note that the raid target markup names (star, circle, diamond, etc.) are localized, so {star} for example will not be replaced by the star texture on a german client. The {rtX}-style markup works on all clients.