Close
Showing results 1 to 7 of 7
  1. #1

    Default Focus Macro Not Working as Expected

    Here is what I have currently:

    Code:
    /clearfocus
    /focus Boylston
    /stopmacro [target=focus, exists, nodead]
    /focus Boylbee
    /stopmacro [target=focus, exists, nodead]
    /focus Boylcee
    /stopmacro [target=focus, exists, nodead]
    /focus Boyldee
    I think I'm running up against the character limit (in-game, this is taken from my macro cache textfile). Regardless, here's my question:

    Do I really need the "/clearfocus" in the above code? I'm having a hard time thinking why I would want/need that in the macro.
    Cranky old-timer.

  2. #2
    Member Ughmahedhurtz's Avatar
    Join Date
    Jul 2007
    Location
    North of The Wall, South of The Line
    Posts
    7169

    Default

    No, you don't. The /focus command works properly whether or not you already have a focus set.
    Now playing: WoW (Garona)

  3. #3

    Default

    Ok, so I have tweaked this macro to be the following:

    Code:
     /focus Boylston
     /stopmacro [target=focus, exists, nodead]
     /focus Boylbee
     /stopmacro [target=focus, exists, nodead]
     /focus Boylcee
     /stopmacro [target=focus, exists, nodead]
     /focus Boyldee
    Assume that Boylbee,cee,dee are in a group together with just the three of them and that the Boylston character is logged off. Boylbee is my normal leader in these situations, and indeed hitting this macro button will assign everyone's focus to Boylbee. Next, poor Boylbee dies. (He's such a gimp, I don't know why we make him leader!!) Press the macro again and as hoped, the remaining shamans select BoylCEE as their new focus and the killing continue.


    Everything is working as intended, but if BoylBEE is rezzed or reincarnates or somehow becomes alive again, pressing the macro DOES NOT re-assign everyone's focus back to Boylbee. (Or more likely, that it is either /stopmacro-ing either too soon or too late. It was late last night, but I tried putting a /clearfocus at the head of the macro again and I believe it restored functionality that I was hoping for.

    Head's not clear after a full night of playing, maybe someone can help me figure out what's going on here?
    Cranky old-timer.

  4. #4

    Default

    Edited-- Understood why I was confused, but macro still doesn't behave as expected. Will keep working to refine this...
    Cranky old-timer.

  5. #5

    Default

    I almost think this might be better if it was written in the following manner. Assume your priority for characters to be focus was A, B, C, D (with A top and D lowest priority)

    /focus [exists, nodead] D
    /focus [exists, nodead] C
    /focus [exists, nodead] B
    /focus [exists, nodead] A


    As long as everyone is living and exists, it should quickly assign each character as focus and then end on the last one, A. If anyone in the list is dead, the command won't execute for that line.

    Maybe I just need to lrn2macro... Any help?
    Cranky old-timer.

  6. #6

    Default

    Slightly off-topic, but a good thing to remember (that I learned the hard way troubleshooting this):

    The /focus command will take a "unit_ID" argument, like "target", "party1", "targettarget" etc. It will also take a player's name, but only if that player is a person in your party or raid!

    Try this on town on someone not in your party. You can type /focus someguynotinyourgroup and not have them selected, or you can target them and type /focus and they'll highlight right up nicely.
    Cranky old-timer.

  7. #7

    Default

    Quote Originally Posted by 'Boylston',index.php?page=Thread&postID=30973#post 30973
    I almost think this might be better if it was written in the following manner. Assume your priority for characters to be focus was A, B, C, D (with A top and D lowest priority)

    /focus [exists, nodead] D
    /focus [exists, nodead] C
    /focus [exists, nodead] B
    /focus [exists, nodead] A
    I think you can shorten it to:
    /focus [exists, nodead] A; [exists, nodead] B; [exists, nodead] C; [exists, nodead] D
    ( or even /focus[help,nodead]A;[help,nodead]B;[help,nodead]C;[help,nodead]D if you need the space 8) )

    I don't know if it works better, but it makes more sense to me to only focus once, rather than "overwriting" several times. Anyway, what was the problem with the macro above exactly?

    Quote Originally Posted by 'Boylston',index.php?page=Thread&postID=30977#post 30977
    Slightly off-topic, but a good thing to remember (that I learned the hard way troubleshooting this):

    The /focus command will take a "unit_ID" argument, like "target", "party1", "targettarget" etc. It will also take a player's name, but only if that player is a person in your party or raid!

    Try this on town on someone not in your party. You can type /focus someguynotinyourgroup and not have them selected, or you can target them and type /focus and they'll highlight right up nicely.
    Hey, that must be why my follow macro won't work until I group. I've been wondering.

    edit:
    Everything is working as intended, but if BoylBEE is rezzed or reincarnates or somehow becomes alive again, pressing the macro DOES NOT
    re-assign everyone's focus back to Boylbee. (Or more likely, that it is
    either /stopmacro-ing either too soon or too late. It was late last
    night, but I tried putting a /clearfocus at the head of the macro again
    and I believe it restored functionality that I was hoping for.
    Hey, I think I know. The first line fails since boylston is still dead. So Boylcee is still the focus. That makes the first stopmacro line true, so you'll never reach the focus boylbee line.

Similar Threads

  1. Focus Macros not working 100% for me
    By AlienChild in forum Macros and Addons
    Replies: 8
    Last Post: 05-30-2009, 03:56 AM
  2. Focus with Hex working yet?
    By Gares in forum Macros and Addons
    Replies: 16
    Last Post: 01-06-2009, 09:58 PM
  3. is /focus working differently in 3.0.1?
    By Malekyth in forum Macros and Addons
    Replies: 5
    Last Post: 11-05-2008, 11:41 PM
  4. Focus follows mouse not working ?
    By Moorea in forum Software Tools
    Replies: 3
    Last Post: 08-27-2008, 01:35 PM
  5. [Focus Macro] How to: friendly heal, harm heal focus...
    By Ramesses in forum Macros and Addons
    Replies: 2
    Last Post: 06-22-2008, 10:46 AM

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •