View Full Version : Need help - Focus/target
Seldum
12-24-2008, 01:46 PM
I have tried and tried and tried to make this work. Looking in the forum etc. but I cant make it work buhu ?( ?( ?(
THis is the case. I want all my toons to follow toon A unless he is dead, then follow toon B:
Heres my macro on toon C
/cleartarget
/clearfocus
/tar [target=ToonA, nodead] [target=ToonB, nodead]
/focus
/assist
/follow
I have tried this macro and it wont swich when toon a dies.
/target [target=ToonA, nodead] [target=ToonB, nodead] [target=ToonC, nodead] [target=ToonD, nodead]
/follow
This is what I use. When one does the next steps up as leader.
Seldum
12-24-2008, 07:41 PM
hmm guess ill have to try it again. Earlier, I went outside Darnassus and let one of my toons die to some lowbie mobs, and when I hit the follow button on the toons they just said "cant follow that target" as if they where still targeting toon a even though that toon was dead.
Another thing.
Alot of people uses Exists, with the nodead. But to me that dosen't work at all. If I have toon A, B and C, and I want to target toon C with toon B when toon A isen't logged on the macro dosent work! Grr...
I have the /target [target=toon A, nodead, exists] [target=toon C, nodead, exists]
I tried to use the Exists as a way of having my toons switch from focus/follow toon A to toon C without having to let Toon A die. But to me the exsist dosen't work at all. Not even with the simplest of macros.
elsegundo
12-24-2008, 07:57 PM
you cant follow a mob.
your macro says... focus, assist, follow. but when you assist, you target a mob. next command is follow.... follow mob? that wont work.
Golle
12-24-2008, 09:14 PM
/clearfocus
/focus [target=ToonA, nodead] [target=ToonB, nodead]
/assist focus
/follow focus
This will work, and you don't have to mess around with changing targets either.
Bettysue
12-25-2008, 08:15 PM
While your macro is a bit overkill and a solution has already been provided in the above post, let this be a lesson in paying attention to the order of things in a macro.
/cleartarget
/clearfocus
/tar [target=ToonA, nodead] [target=ToonB, nodead]
/focus
/assist
/follow
Does not work while
/cleartarget
/clearfocus
/tar [target=ToonA, nodead] [target=ToonB, nodead]
/focus
/follow
/assist
will work. Then to further refine your macro look at redundant lines. In this case /clearfocus followed by setting the focus. Since you can only focus one thing there is no need for /clearfocus here, as any focus target you may have will be overwritten in 2 lines. The same would go for your current target. So now your macro becomes:
/target [target=ToonA, nodead] [target=ToonB, nodead]
/focus
/follow
/assist
And that would be as simple as it could get using your provided macro. Using this simple checking process you can create and troubleshoot just about any macro. Just think about whats going on line by line first. The trim up the overkill lines. Other important information concerning macros.
1) The first parameter that provides a true statement to a valid target in a single line is used.
2) The LAST valid line in a series of statements is used.
An example
/target [target=toonA][target=toonB] ------ will choose toon A as the target.
/target toonA
/target toonB ------- will choose toon B as the target.
Seldum
12-29-2008, 09:11 AM
Thats great, thanks for the help with the focus problem. Ill try and implement the above solution and hopefully ill get a better setup! Im a bit noob to these macros, but im learning a bit everytime.
And yes, when I troubleshoot, I do as you suggest. I start out simple and gradually build more and more to the macro while checking that it performs as I want it to.
I had the clearfocus/cleartarget because sometimes when I loot manually on a Toon, they get "stuck" at that dead corps, and when I hit the original macros they just stod there amazed by the corpse, while the other 4 was running along.
I still have the problem with the [nodead, Exist] within the target macro.
I have tried this simple macro:
/tar [target=ToonA,nodead,Exists][target=ToonB,nodead,Exists]
To my understanding this should give me A if both are online, B if A is not online.
The nodead condition works well, but the exist dosen't work ;(
But anyway the main problem was the follow/focus issue.
Golle
01-01-2009, 09:29 PM
Thats great, thanks for the help with the focus problem. Ill try and implement the above solution and hopefully ill get a better setup! Im a bit noob to these macros, but im learning a bit everytime.
And yes, when I troubleshoot, I do as you suggest. I start out simple and gradually build more and more to the macro while checking that it performs as I want it to.
I had the clearfocus/cleartarget because sometimes when I loot manually on a Toon, they get "stuck" at that dead corps, and when I hit the original macros they just stod there amazed by the corpse, while the other 4 was running along.
I still have the problem with the [nodead, Exist] within the target macro.
I have tried this simple macro:
/tar [target=ToonA,nodead,Exists][target=ToonB,nodead,Exists]
To my understanding this should give me A if both are online, B if A is not online.
The nodead condition works well, but the exist dosen't work ;(
But anyway the main problem was the follow/focus issue/target [target=ToonA,nodead,exists][target=ToonB,nodead,exists] <-- Drop The Capital Letters. Also, I assume the exists part is useless. If the macro is able to return a true or false - the target exist. Argh, to avoid confusion I'll just qoute this site:
exists
This determines whether the given unit exists. In other words, if you don't have a target, [exists] will return false. If you have a focus, [target=focus, exists] would be true. Note that in some cases [exists] is unnecessary. [help], [harm], [dead], [party], and [raid] all imply [exists] if they're true.
Link - http://www.wowwiki.com/Making_a_macro#exists
Seldum
01-02-2009, 08:40 AM
Ahh I see. Thanks for the help! Very informative!
vBulletin® v4.2.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.