1. #1
    Brewmaster Thundertom's Avatar
    10+ Year Old Account
    Join Date
    Oct 2009
    Location
    The Netherlands
    Posts
    1,319

    Question [Macro]Verifying if this macro does what I hope it does.

    I have made this macro for arena play. Could you guys tell me if it does the following;
    1. If I have a modifier key pressed, set my current target as my focus target.
    2. If a focus target exists, and it is hostile, cast Storm Bolt on my focus target.
    3. If no focus target exists, and arena1 is alive, cast Storm Bolt on Arena1,.
    4. If no focus target exists, and arena1 is dead or for some reason doesn't exist, cast Storm Bolt on my current target.


    Code:
    #showtooltip
    /focus [mod]
    /cast [@focus,exists,nodead,harm][@arena1,exists,nodead][]Storm Bolt
    I am struggling with the usage of ; in macro's sometimes. I'm not sure if they're needed in this case.

    Thanks for your help.

    ~Tom
    Warlock (SL main)

  2. #2
    Deleted
    That's correct. You don't need the first exists, though, since harm checks for existence.

  3. #3
    Brewmaster Thundertom's Avatar
    10+ Year Old Account
    Join Date
    Oct 2009
    Location
    The Netherlands
    Posts
    1,319
    Quote Originally Posted by Constie View Post
    That's correct. You don't need the first exists, though, since harm checks for existence.
    Cool, did not know that. Thanks!
    Warlock (SL main)

  4. #4
    Pandaren Monk shanthi's Avatar
    10+ Year Old Account
    Join Date
    Oct 2011
    Location
    California
    Posts
    1,775
    Quote Originally Posted by Thundertom View Post
    I am struggling with the usage of ; in macro's sometimes. I'm not sure if they're needed in this case.
    You generally need semi-colons in macros when you're separating different abilities that should fire based on conditionals. This is a simple example, where the ability that fires depends on whether you're in combat or not:

    Code:
    #showtooltip
    /cast [@mouseover,nocombat] Resurrection; [@mouseover,help][] Flash Heal

    Since in your case you're only using one ability, and only changing the target based on conditionals, no semi-colons are necessary. Hopefully that helps in future.
    Last edited by shanthi; 2014-12-28 at 12:17 AM.
    That is not dead which can eternal lie.
    And with strange aeons even death may die.

  5. #5
    Not sure if you will have the same problem but when I used a similar macro for windshear, it would cast the spell at the same time I set my focus, so i had to add a stopmacro part.

    Code:
    #showtooltip Wind Shear
    /stopcasting
    /focus [mod:shift]
    /stopmacro [mod:shift]
    /cast [@focus, exists, nodead, harm][@target] Wind Shear
    /clearfocus [mod:ctrl]

Posting Permissions

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