2.0 changes continued

#0 - Nov. 20, 2006, 7:31 p.m.
Blizzard Post
(until the changes topic gets extended...)

Added the following targeting slash commands:
/targetenemy -- only called once per macro
/targetfriend -- only called once per macro
/targetparty
/targetraid
They all work using the TargetNearest* API functions.

You can use macro conditionals to reverse the direction as well, e.g.
/targetenemy [modifier:alt] 1; 0
#3 - Nov. 20, 2006, 7:44 p.m.
Blizzard Post
Q u o t e:

So, a 1 will target the next enemy, and a 0 will target the last enemy?


It reverses the direction of the targeting. For example, if A, B, C are in a row, and you're spamming the macro it'll target A, B, and C in turn. If you're at C, and you hold down the alt key it'll target B instead of A.
#7 - Nov. 20, 2006, 8 p.m.
Blizzard Post
Q u o t e:
Is /targetparty (or raid) a simple cycle or does it target the nearest person (and others on subsequent clicks)?


It works just like /targetenemy, but for party or raid members. It starts with the nearest, and cycles through all nearby units.
#13 - Nov. 20, 2006, 8:53 p.m.
Blizzard Post
Q u o t e:
Purely awesome

So now this will work?

/cleartarget
/targetenemy
/startattack

This should pick the target closest to me and in front of me then start attacking it?


Yep.

Q u o t e:


Thanks for adding this in :)


You're welcome. :)

Q u o t e:

BTW what happens when you try to call /targetenemy 2x, does it just stop the macro there, or give an error, or just simply do nothing and go to the next line?



It does nothing and goes to the next line.
#33 - Nov. 21, 2006, 4:43 p.m.
Blizzard Post
Q u o t e:

/targetenemy
/castsequence reset=combat/target Corruption, Immolate, Curse of Agony

Will this end up only cycling to the next enemy and casting Corruption?


Yes, it would, but read on...

Q u o t e:

Would we be able to do:

/targetenemy [notarget]


Yes, I haven't tested it, but I believe the syntax would be:
/targetenemy [noexists]