Page 1 of 1

making a cast macro, need help

Posted: Wed Jun 12, 2013 12:52 pm
by Sukurachi
I have no idea if this is even possible, but...

is it possible to make a single button macro that will target yourself, cast a spell, then press again it will target the next player in your party and cast the same spell, then target the next player and cast again?

I'd love to have a single button for stuff like underwater breathing, where I can just hit the button a couple of times and it will cycle through everyone in the party, casting that spell on them. Same with Slow Fall.

Re: making a cast macro, need help

Posted: Wed Jun 12, 2013 1:18 pm
by Aeladrine
Hmm. I don't think so? Not with my limited knowledge of macros, anyway. Unless you always group with the same people.

Re: making a cast macro, need help

Posted: Sat Jun 15, 2013 1:11 am
by Anyia
I logged back in for the first time in ages to have a play with this, and right now I can't see a way to do so. The casting and targeting functions are all "protected", meaning that only the Blizzard UI can access them. This means that the only things available are the regular macro commands, not the full language available to add-ons (in which this would have been trivial - alas, I only end up with a popup saying "A macro script has been blocked from an action only available to the Blizzard UI.").

The best I can think of would be to write a macro which casts the same spell on different targets depending on which keyboard modifiers are active. So, for example:
/cast [nomod,@party1] Slowfall; [mod:shift,@party2] Slowfall; [mod:ctrl,@party3] Slowfall; [mod:alt,@party4] Slowfall; [mod:shift,mod:ctrl,@party5] Slowfall
Pardon any typos, I'm on F2P with only a level 10 character. so can't actually test the above.

Hope this has been of some help...

Re: making a cast macro, need help

Posted: Sat Jun 15, 2013 1:15 am
by Sukurachi
hmm, that's an interesting suggestion. I'll get back to you as soon as I've tested it, thank-you very much!


EDIT*************

Thank-you Anyia! the macro works great.
:hug: