The following are two example macros that I use (for more go to Examples): I would recommend having the following options turned on: Go to Options for a description of the options. There are a number of configurable options for MTarget available in the addon tab of the Interface options. For a more detailed description of the commands and menu actions have a look at the Commands page. To view the command line commands run /mtarget help.
It now includes a minimap icon so a LibDataBroker launch add-on is no longer required. 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. Version 2 removes the use of the unit ids. Note: Given that this is working with macros the updating of the macros can only occur when out of combat. Through the replacement of tokens with values macros can be rewritten on the fly as group and situations dictate. It announces the variables to the raid/party to allow synchronization of targets. MTarget is an addon that (primarily) assists in targeting through the replacement of tokens in macros.