Farmbuyer-gpuser (talk | contribs) m (shorten example macro slightly, since they're usually doing other things in the same macro also) |
Miketrethewey (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
+ | {| class="darktable" |
||
− | {{wowapi}} |
||
+ | ! Race |
||
− | Set which [[Raid Target Icon]] will be shown over a mob or raid member. |
||
+ | ! {{quality|rare|Rares}} |
||
− | SetRaidTarget("unit", iconId); |
||
+ | ! {{quality|poor|Commons}} |
||
− | |||
+ | |- |
||
− | == Arguments == |
||
+ | ! [[Dwarf]] |
||
− | ;unit : String - The [[API TYPE UnitId|unit]] to change the raid target icon of. |
||
+ | ! {{{dwarfr|0}}}/4<br />{{#expr: ({{{dwarfr|0}}} * 100 / 4) round 0 }}% |
||
− | ;iconId : Number - Raid icon index; 0 to remove any icons from the unit. |
||
+ | ! {{{dwarfc|0}}}/27<br />{{#expr: ({{{dwarfc|0}}} * 100 / 27) round 0 }}% |
||
− | ::1 = Yellow 4-point Star |
||
+ | |- |
||
− | ::2 = Orange Circle |
||
+ | ! [[Draenei]] |
||
− | ::3 = Purple Diamond |
||
+ | ! {{{draeneir|0}}}/2<br />{{#expr: ({{{draeneir|0}}} * 100 / 2) round 0 }}% |
||
− | ::4 = Green Triangle |
||
+ | ! {{{draeneic|0}}}/8<br />{{#expr: ({{{draeneic|0}}} * 100 / 8) round 0 }}% |
||
− | ::5 = White Crescent Moon |
||
+ | |- |
||
− | ::6 = Blue Square |
||
+ | ! [[Fossil]] |
||
− | ::7 = Red "X" Cross |
||
+ | ! {{{fossilr|0}}}/5<br />{{#expr: ({{{fossilr|0}}} * 100 / 5) round 0 }}% |
||
− | ::8 = White Skull |
||
+ | ! {{{fossilc|0}}}/12<br />{{#expr: ({{{fossilc|0}}} * 100 / 12) round 0 }}% |
||
− | |||
+ | |- |
||
− | == Example == |
||
+ | ! [[Night Elf]] |
||
− | To set a skull over your current target: |
||
+ | ! {{{nelfr|0}}}/7<br />{{#expr: ({{{nelfr|0}}} * 100 / 7) round 0 }}% |
||
− | /run SetRaidTarget("target",8) |
||
+ | ! {{{nelfc|0}}}/18<br />{{#expr: ({{{nelfc|0}}} * 100 / 18) round 0 }}% |
||
− | |||
+ | |- |
||
− | == Notes == |
||
+ | ! [[Nerubian]] |
||
− | * This function was added in patch 1.11, which introduced the 8 different target icons that can be assigned to mobs or players. The icons are only visible to your party. |
||
+ | ! {{{nerubianr|0}}}/2<br />{{#expr: ({{{nerubianr|0}}} * 100 / 2) round 0 }}% |
||
− | * In a 5-man party, all party members may assign raid icons. In a raid, only the raid leader and the assistants may do so. |
||
+ | ! {{{nerubianc|0}}}/7<br />{{#expr: ({{{nerubianc|0}}} * 100 / 7) round 0 }}% |
||
− | * Units may only be assigned one icon at a time; an icon may only be assigned to one unit at a time. |
||
+ | |- |
||
− | * This function does not remove the icon if you're trying to assign the icon that is already assigned to the unit. {{api|SetRaidTargetIcon}} function, provided by FrameXML, provides this toggling behavior. |
||
+ | ! [[Orc]] |
||
+ | ! {{{orcr|0}}}/1<br />{{#expr: ({{{orcr|0}}} * 100 / 1) round 0 }}% |
||
+ | ! {{{orcc|0}}}/9<br />{{#expr: ({{{orcc|0}}} * 100 / 9) round 0 }}% |
||
+ | |- |
||
+ | ! [[Tol'vir]] |
||
+ | ! {{{tolvirr|0}}}/6<br />{{#expr: ({{{tolvirr|0}}} * 100 / 6) round 0 }}% |
||
+ | ! {{{tolvirc|0}}}/7<br />{{#expr: ({{{tolvirc|0}}} * 100 / 7) round 0 }}% |
||
+ | |- |
||
+ | ! [[Troll]] |
||
+ | ! {{{trollr|0}}}/3<br />{{#expr: ({{{trollr|0}}} * 100 / 3) round 0 }}% |
||
+ | ! {{{trollc|0}}}/14<br />{{#expr: ({{{trollc|0}}} * 100 / 14) round 0 }}% |
||
+ | |- |
||
+ | ! [[Vrykul]] |
||
+ | ! {{{vrykulr|0}}}/2<br />{{#expr: ({{{vrykulr|0}}} * 100 / 2) round 0 }}% |
||
+ | ! {{{vrykulc|0}}}/5<br />{{#expr: ({{{vrykulc|0}}} * 100 / 5) round 0 }}% |
||
+ | |} |
Changes: API SetRaidTarget
Back to page | (Difference between pages)