MTarget is an addon that (primarily) assists in targeting through the replacement of tokens in macros. It announces the variables to the raid/party to allow synchronization of targets.
Through the replacement of tokens with values macros can be rewritten on the fly as group and situations dictate.
Note: Given that this is working with macros the updating of the macros can only occur when out of combat.
Version 2 removes the use of the unit ids. Using names works better because the group repositioning and tracking could not be performed effectively (zoning in and out of dungeons could easily break it) and wasn't needed.
It now includes a minimap icon so a LibDataBroker launch add-on is no longer required.
To view the command line commands run
/mtarget help. For a more detailed description of the commands and menu actions have a look at the Commands page.
There are a number of configurable options for MTarget available in the addon tab of the Interface options. Go to Options for a description of the options.
I would recommend having the following options turned on:
- Auto Write Macros
The following are two example macros that I use (for more go to Examples):
Hunter Misdirection Macro Template
/cast [@$tank,help,nodead][target=pet] Misdirection
When joining a party I assign the value tank to the name of the tank by right clicking on their name plate choosing the MTarget menu and the tank option and the macro gets rewritten to replace $tank with the player's name. In this way it can free up focus from tradition focus macros to be used for other uses. So after assigning the value of $tank you end up with the following macros:
Hunter Misdirection Macro
/cast [@MrTank,help,nodead][target=pet] Misdirection
Paladin Beacon of Light Macro Template
/cast [@$maintank,help,nodead][@$offtank,help,nodead][help,nodead] Beacon of Light
When joining a raid I assign the value "maintank to the name of the main tank by right clicking on their name plate choosing the MTarget menu and the maintank option and the same for offtank. The macro gets rewritten to replace $maintank and "$offtank" with the players' names. This goes beyond the scope of a focus macro because you essentially have two focuses. Additionally through the broadcast mechanism the main and offtanks could be assigned by a raid leader and distributed to the raid automatically.
So after assigning the value of $maintank and $offtank you end up with the following macros:
Paladin Beacon of Light Macro
/cast [@MrsMainTank,help,nodead][@MrOffTank,help,nodead][help,nodead] Beacon of Light
For a quick tutorial on using this addon have a look at the Getting Started page