Thread Tools Display Modes
10-15-12, 06:09 AM   #1
shyrotam
A Cliff Giant
Join Date: Jan 2010
Posts: 77
on-the-fly /target macro

What is the quickest way I could write the names of enemy targets to a macro?

"/target shamwow
/target bravehearth
/target dischead
/target genericdeth
/target stabstab
/target dumhunter
/target stupidface
/cast stun"

I'd like to prepare this macro at the start of every BG (with BattlegroundTargets I can manually target each enemy from the holding pen).

Also, could the process be automated in any way? And if so can there be any kind of sort function to put healers at the end of the list?

Thanks.
  Reply With Quote
10-15-12, 06:14 AM   #2
tinyu
A Molten Giant
 
tinyu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 837
automation is not possible.
__________________
"There's no such thing as too many addons."
Lothaer
Titan Dev Team Member.
  Reply With Quote
10-15-12, 06:47 AM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
An addon could automatically get the names of your arena/battleground opponents and put them in the macro, but only while out of combat, so it would not be all that useful. Also, I don't know of any existing addons that do this, so you'd probably have to write one.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
10-15-12, 06:59 AM   #4
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 331
My QuickQuestItem has the ability to write / update a macro on mouseover but I don't really see the reason for having this?

If you're looking to make 10 macros to automatically be created/updated when you join a BG, that's possible. As for arena, as long as you're out of combat for a moment and have a chance to gather the names it's doable.

From what I can tell you're looking to target the closest enemy to cast a stun.

If this is the case a simple macro for that could be made with this:
Code:
/cleartarget
/targetenemy
/cast spellname
  Reply With Quote
10-15-12, 08:59 AM   #5
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,308
Originally Posted by shyrotam View Post
What is the quickest way I could write the names of enemy targets to a macro?

"/target shamwow
/target bravehearth
/target dischead
/target genericdeth
/target stabstab
/target dumhunter
/target stupidface
/cast stun"

I'd like to prepare this macro at the start of every BG (with BattlegroundTargets I can manually target each enemy from the holding pen).

Also, could the process be automated in any way? And if so can there be any kind of sort function to put healers at the end of the list?

Thanks.
Assuming you have such an addon process the list at the beginning of a BG (while still out of combat), there's a serious flaw in the use of the macro. It will force target of the last person on the list that it can target. This will most likely be someone across the entire field and would be far out of range of any ability you can use. This would render the macro completely useless even if you had someone else on the list within range, previously targeted or not. You'd be better off using /targetenemyplayer [noharm]
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 10-15-12 at 09:01 AM.
  Reply With Quote
10-15-12, 11:00 AM   #6
shyrotam
A Cliff Giant
Join Date: Jan 2010
Posts: 77
Originally Posted by SDPhantom View Post
Assuming you have such an addon process the list at the beginning of a BG (while still out of combat), there's a serious flaw in the use of the macro. It will force target of the last person on the list that it can target. This will most likely be someone across the entire field and would be far out of range of any ability you can use. This would render the macro completely useless even if you had someone else on the list within range, previously targeted or not. You'd be better off using /targetenemyplayer [noharm]
Ohhhh...it will target people out of range. That messes it up. Thx for the alternative.
  Reply With Quote
10-15-12, 12:41 PM   #7
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,308
The reason being is BGs have a much larger "visual range" than other areas.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » on-the-fly /target macro

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off