WoW:Target markers: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page Target markers to Target markers without leaving a redirect)
 
(44 intermediate revisions by 44 users not shown)
Line 1: Line 1:
{{uitech}}
'''Target markers''' are icons that can be placed over players and other game entities. This feature was introduced in patch 1.11.


[[Image:wow_ui-RaidTargetingIcons.png|left|The different target markers]]
== Usage ==
[[Image:wow_luckycharms type.jpg|thumb|in-game list]]
Target marker over are placed over mobs by selecting a mob, right-click on its portrait, and select a symbol from the hierarchical menu.
;Chat and text codes
* [[Image:wow_IconSmall RaidSkull.png]] Skull - <code>{Skull}</code> or <code>{rt8}</code>
* [[Image:wow_IconSmall RaidCross.png]] Cross - <code>{Cross}</code>, <code>{X}</code> or <code>{rt7}</code>
* [[Image:wow_IconSmall RaidCircle.png]] Circle - <code>{Circle}</code>, <code>{Coin}</code>, or <code>{rt2}</code>
* [[Image:wow_IconSmall RaidStar.png]] Star - <code>{Star}</code> or <code>{rt1}</code>
* [[Image:wow_IconSmall RaidSquare.png]] Square - <code>{Square}</code> or <code>{rt6}</code>
* [[Image:wow_IconSmall RaidTriangle.png]] Triangle - <code>{Triangle}</code> or <code>{rt4}</code>
* [[Image:wow_IconSmall RaidDiamond.png]] Diamond - <code>{Diamond}</code> or <code>{rt3}</code>
* [[Image:wow_IconSmall RaidMoon.png]] Moon - <code>{Moon}</code> or <code>{rt5}</code>
;Adding markers to chat
An undocumented feature of patch 2.4 added the ability to post target markers into any chat channel by enclosing the name of the icon in curly brackets (braces) - such as {skull}, {circle}, {moon}, etc.
== API and key bindings ==
These icons can be set programmatically in a macro with the {{api|SetRaidTarget}} function.
Example, <code>/run SetRaidTarget("target", 8);</code> will mark the target with a Skull, 8 standing for the Icon number.
Alternatively, they can be bound to keys for quick application. For example, Skull could be bound to Ctrl-K (Kill, sKull) so that the raid leader or assist can apply the icon quickly to a new target during a fight.
For even faster marking, combining the macro <code>/run SetRaidTarget("mouseover", #);</code> (# of course being replaced with the corresponding icon's number) with key bindings will allow you to apply icons without actually targetting anything.
{{api|GetRaidTargetIndex}} returns the icon index of the specified target.
== Macros ==
This macro will cycle Skull, X, Nil, then Moon on cursored targets.
<code>/script if (charm == nil)  or (charm < 6) then charm=9; end; charm=charm-1; if (charm==6)  then  SetRaidTarget("mouseover", 0) else SetRaidTarget("mouseover", charm); end</code>
This macro will cycle through all the target markers in reverse order on cursored targets
<code>/script if (charm == nil) or (charm < 0) then charm=9; end; charm=charm-1; SetRaidTarget("mouseover", charm)</code>
This macro also cycles through all the target markers in reverse order on cursored targets but it also announces the next icon in the default chat frame.  Useful if you need to skip through charms while marking targets.  Press your macro button without a target under the mouse to skip through charms.
<code>/script if(chrm==nil)or(chrm<=0)then chrm=9 end chrm=chrm-1 SetRaidTarget("mouseover", chrm) nxt={[0]="None",[1]="Star",[2]="Circle",[3]="Diamond",[4]="Triangle",[5]="Moon",[6]="Square",[7]="Cross",[-1]="Skull"}DEFAULT_CHAT_FRAME:AddMessage(nxt[chrm-1])</code>
== Notes ==
* Origin of the "lucky charms" - The nickname originates from their appearance similar to the marshmallows from the Cereal [[wikipedia:Lucky Charms|Lucky Charms]].
== Patch changes ==
* [[patch 3.3.0]] - Any party member may mark targets, this does not apply to raid groups. Previously only party leaders could mark.
* [[patch 2.4.0]] - Added markers to chat
* [[patch 1.11]] - Added
[[Category:Gameplay]]
[[Category:Game terms]]
[[Category:Partying]]
[[Category:Raids]]

Latest revision as of 04:48, 15 August 2023

Target markers are icons that can be placed over players and other game entities. This feature was introduced in patch 1.11.

The different target markers

Usage[edit]

in-game list

Target marker over are placed over mobs by selecting a mob, right-click on its portrait, and select a symbol from the hierarchical menu.

Chat and text codes
  • Wow IconSmall RaidSkull.png Skull - {Skull} or {rt8}
  • Wow IconSmall RaidCross.png Cross - {Cross}, {X} or {rt7}
  • Wow IconSmall RaidCircle.png Circle - {Circle}, {Coin}, or {rt2}
  • Wow IconSmall RaidStar.png Star - {Star} or {rt1}
  • Wow IconSmall RaidSquare.png Square - {Square} or {rt6}
  • Wow IconSmall RaidTriangle.png Triangle - {Triangle} or {rt4}
  • Wow IconSmall RaidDiamond.png Diamond - {Diamond} or {rt3}
  • Wow IconSmall RaidMoon.png Moon - {Moon} or {rt5}
Adding markers to chat

An undocumented feature of patch 2.4 added the ability to post target markers into any chat channel by enclosing the name of the icon in curly brackets (braces) - such as {skull}, {circle}, {moon}, etc.

API and key bindings[edit]

These icons can be set programmatically in a macro with the SetRaidTarget function. Example, /run SetRaidTarget("target", 8); will mark the target with a Skull, 8 standing for the Icon number.

Alternatively, they can be bound to keys for quick application. For example, Skull could be bound to Ctrl-K (Kill, sKull) so that the raid leader or assist can apply the icon quickly to a new target during a fight.

For even faster marking, combining the macro /run SetRaidTarget("mouseover", #); (# of course being replaced with the corresponding icon's number) with key bindings will allow you to apply icons without actually targetting anything.

GetRaidTargetIndex returns the icon index of the specified target.

Macros[edit]

This macro will cycle Skull, X, Nil, then Moon on cursored targets.

/script if (charm == nil) or (charm < 6) then charm=9; end; charm=charm-1; if (charm==6) then SetRaidTarget("mouseover", 0) else SetRaidTarget("mouseover", charm); end

This macro will cycle through all the target markers in reverse order on cursored targets

/script if (charm == nil) or (charm < 0) then charm=9; end; charm=charm-1; SetRaidTarget("mouseover", charm)

This macro also cycles through all the target markers in reverse order on cursored targets but it also announces the next icon in the default chat frame. Useful if you need to skip through charms while marking targets. Press your macro button without a target under the mouse to skip through charms.

/script if(chrm==nil)or(chrm<=0)then chrm=9 end chrm=chrm-1 SetRaidTarget("mouseover", chrm) nxt={[0]="None",[1]="Star",[2]="Circle",[3]="Diamond",[4]="Triangle",[5]="Moon",[6]="Square",[7]="Cross",[-1]="Skull"}DEFAULT_CHAT_FRAME:AddMessage(nxt[chrm-1])

Notes[edit]

  • Origin of the "lucky charms" - The nickname originates from their appearance similar to the marshmallows from the Cereal Lucky Charms.

Patch changes[edit]

  • patch 3.3.0 - Any party member may mark targets, this does not apply to raid groups. Previously only party leaders could mark.
  • patch 2.4.0 - Added markers to chat
  • patch 1.11 - Added