Log in

View Full Version : Need help, a macro to target the main's focus.



Kaynin
03-14-2008, 01:36 PM
Is that possible? To target the focus of another character?

maqz
03-14-2008, 01:46 PM
Nope, sorry.

http://www.wowwiki.com/HOWTO:_Make_a_Macro#Targeting

Kaynin
03-14-2008, 01:46 PM
Ow, nevermind, solved it with added a target=lastenemy I think, to do what I wanted.

Need my tank to focus the bad guy while being able to target party members and with one button dps the bad guy with some alts while healing the party member with yet other alts. It should work now. :o

On my warrior main:
/focus [target=focus, noharm] [target=focus, dead] [modifier]
/cast [target=focus, combat, stance:1] Heroic Strike ; [target=focus, combat, stance:2] Sunder Armor ; [target=focus, stance:2,3] Battle Stance ; [target=focus] Charge


And on my shaman alts:

/cast [target=focustarget, exists, harm] Lightning Bolt ; [target=lastenemy, exists, nodead] Lightning Bolt ; [modifier] Nature's Swiftness ; [target=focustarget, exists, harm, modifier] Chain Lightning ; [target=lastenemy, exists, nodead, modifier] Chain Lightning

Can't test them yet though. :(

Djarid
03-15-2008, 08:55 AM
I am a little confused with your macros,


/focus [target=focus, noharm] [target=focus, dead] [modifier]

1st option seems to say, set my focus to my focus if my focus is not an enemy, this will do nothing as if you have a non enemy focus it will just reset your focus to the same mob.

2nd option = set my focus to my focus if my focus is dead; this seems rather pointless

3rd option set my focus to my current target if I hold down a modifier key... now this is good

to make this work as intended you will need to add target to the end

also I think you may want [modifier] at the beginning as if you are manually overriding the macros behaviour then you don't want it to ignore your modifier because one of the other conditions resolves to true

e.g.


/focus [modifier][target=focus, noharm] [target=focus, dead] target

why do you want to use focus for your mains target instead of using his target? It seems to be adding complexity to the way you are controlling your characters?

Your order on the Shaman is a little off as well.
you have some redundant spells in there but worse, only the first lightning bolt will ever fire followed by NS if you have a modifier, meaning your LB will be full cast time but your next spell will be instant

Try this instead


/cast [modifier] Nature's Swiftness ; [target=focustarget, exists, harm] Lightning Bolt ; [target=lastenemy, exists, nodead] Lightning Bolt

This way the LB will fire regardless but the NS will only activate if a modifier is held down. You may want to replace [modifier] with [combat, modifier] to prevent it being accidentally used up hen out of combat