MTarget
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.
Commands
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.
Options
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
Examples
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
Tutorial
For a quick tutorial on using this addon have a look at the Getting Started page
1. Check to see if the macro is being rewritten after you assign the player to the tank variable. If you go back to the macros dialog and click the macro it should have the players name in there,
and 2. if it isn't being changed - can you check that the auto writing of macros is on. Go to interface add-ons configuration for MTarget and check what options. If you wipe your setup there is a chance this option isn't turned on.
I think though there is an issue with deleting templates. It just gives an error when I try to do so. So I am ending up with an increasing number of templates as I experiment with this.
Other than that, great addon idea. I think with a few more minor "ease of use" type features to make it a bit more intuative it would be bang on in all ways.
If you have suggestions for improvements for ease of use then please make them (here or via the tickets system would make it easier for me to track). I need to find out how to get curse to notify me when I have comments for more timely responses!