Macro help: /targetrandomplayer?

As title says, Im looking for a way to write a macro that targets a random player in my party to cast a friendly spell at.

Also, is there a way to cycle thru party members as I cast a spell.

This is a retail question and may seem super random but I have a reason for it.

Not sure tbh.
F1-F5 are default party members buttons (F1 always being self).

How about a mouse over macro?
Like

#showtooltip
/cast [@mouseover,help] Power Infusion; Power Infusion

There is also Vuhdo frames addon.
Basically like mouse over stuff but much easier set up.
Can do Left Click = flash of light
Right click - Blessing of Sacrifice.
Middle click - Blessing of Protection
etc etc etc

If you were to give a specific example, perhaps, someone might give you the details you’re looking for. Otherwise, we are throwing :poop: against the wall to see what sticks for you.

1 Like

Tanks for the response. I found I fix to my question though!

First, I’m intimately familiar with macros, their commands, syntax and variation.

As a healer main I use a TON of help/harm mouseover macros.

While playing my Mistweaver Monk, which I’ve been playing for years, as a Fistweaver I find myself wishing there was a way to throw out Renewing Mists(which is a Heal Over Time spell) on a random player. I always do this, even in instances where there’s not a lot of damage going out. Mistweavers have a talent called “Rising Mists” that extends the duration of said HoT.

The issue was that I was having was needing to interrupt my melee combat flow to mouseover a plays every 6 seconds to keep those Renewing Mists rolling on my party.

This constant micro managing was cumbersome to me. And since, most of the time, it really doesn’t matter who receives the Renewing Mists, as long as someone is getting it, it made me ask the question, “is it possible to have it simply cast on a random target?”

Technically the answer is yes and no.

Without going into a big deal about what macros can and can not do, I will just post my work around below here. Keep in mind, I would never recommend using this as your main macro to heal your party. I still have a dedicated @focus macro for my tank and a dedicated @mouseover for party/raid members as well. This macro just lets me hit the button while without breaking my focus on combat and just know that someone is getting a Renewing Mist. And since Renewing Mist gets extended by one of my combat moves AND hops to another target to extent, you wanna keep it rolling on as many players as possible. I ended up find as close to a perfect work-around as I think is possible.

Anyways, so the macro would looks like:

#showtooltips Renewing Mist
/targetfriendplayer
/cast Renewing Mist
/targetlastenemy

Note* it took some experimentation to discover that “friendly” player doesn’t work. It must be typed “friendplayer”, as in /targetfriendplayer.

Anyways, I know people are out there looking for the answer to this question because I saw it asked and unanswered while searching myself. So ill just leave this here.

This macro lets you Rising Sun Kick and Dragon Palm all day without having to constantly mouseover unit frames, or F1-5 target or any other micromanaging and to keep the HoT rolling all day.

1 Like

No, macros must be engaged on a target by the user. Random casts and cycle casts aren’t possible.

You could do a cast sequence macro to individually heal multiple people in an order, but you’d have to rewrite the macro for every group, and there wouldn’t be enough space to put a raid in it.

Your best bet is to use mouseover macros until the default UI makes all abilities mouseover. Then use the Blizzard raid frames to your liking to heal friendlies.

Read my post above for how I created a macro workaround that targets a random friendly player!

Been using it all night and works fine.

Although to be fair the first button press tends to favor those in the immediate line of sightite of my character, although not always.

I do this too.

You would need to code an addon for this if it’s possible.

#showtooltip
/targetfriendplayer
/cast Rejuvenation

That’s the macro I use to brainlessly spam rejuv during painsmith intermission

But how random is it?
Is it proximity based? or random random?
1-2-3-1-5-7-2-1-9 (raid member)

No idea exactly.

Pretty sure it works like tab-targeting?

It’s pretty freaking random. Although it rarely targets players behind you. It does, just not as often.

The reason I think this macro is particularly good with Renewing Mist is due to how Renewing Mist behaves.

It’s a 20 second hot, instant cast, with 2 charges.

Renewing Mists will jump to another friendly target within 20 yards when that person’s health becomes full.

Also, if RM is cast at a player but that player already has a Renewing Mists rolling on them it will attempt to force the one on them unto an eligible Target within 20 yards and then place the new instance of RM on them.

The only time Renewing Mists will straigh up overwrite an instance is if there is no eligible targets to force the current one to jump to, so in that case it will overwrite itself with a fresh copy of the HoT.

Then there is a talent called Rising Mist which basically just extends the duration of Renewing Mists when you kick something.

That’s why I’m pretty sure this macro and it’s use is exclusive to this Mistweaver Monks that enjoy the Fistweaver style of healing.

Perhaps I will should it there but it started as a help request on how to properly write it, which I ended up figuring out through trial and error(via running Heroics).

Granted, I obviously also have a traditional #mouseover macro for when I wish to target a specific party member as well as a separate dedicated @focus macro just for casting RM at my tank.

However, the whole point of this let’s me do my combat thing while just tapping said macro whenever I see that I have a charge up and sitting. It basically just streamlines me having to look over every 6 seconds and mouseover a random person(although it’s not always random, I sometimes need to target someone specific, which is why I would never recommend to use only the one macro).

Now, I can’t imagine many other instances of where this macro would work.

I mean, I could maybe see wanting to use it with Shaman for Riptide just to throw them out to blanket a 5 man, especially if you you run the legendary that gives you a free one every 4th cast or whatever( I haven’t tried that Leggo yet) but I would be hesitant as Riptide packs a LOT more healing value in it as well as interacting with other spells.

Anyways, not meaning to ramble but just wanted to clarify that Awkward is correct, it’s similar to tab-targetting in a way by just basically randomly tabbing to a friendly players in your vacinity.

I need to play with it more but it appears you can have some degree of control over the randomness by forcing your character to look in the direction you want it to cast.

When I’m in melee and go opposite the tank to deal damage and my line of site includes the tank and say, 3 ranged players, it appears to be completely random as to whom it chooses.

Wonky asf, just like WoWs targeting system has been ever since Blizz we doodled with it before Warlords.

does it have to be a random player, as opposed to just arbitrarily picking somebody with a mouseover?

No, not necessarily but if you read my response above it explains why I wanted it to be random, as to not have to take my attention away from melee combat every 6 seconds to arbitrarily choose. This allows me to just mindlessly hit a button every 6 seconds to keep those Renewing Mists rolling.

2 Likes

I worked this by alt+click casting it to always throw it on my focus target and just keep the tank focused, that way his is ALWAYS fresh and the bounces will hit everyone else, no macros, all inbuilt functionality.

1 Like

In the standard keybindings, there is a “target nearest friendly player” setting. Oh nvm, didn’t read properly.

I’ve got a separate dedicated macro that casts #focus target(which is always my tank) for my most frequently used heals including Renewing Mists.

I also have a dedicated @nouseover for when I definitely want to prioritize someone.

I just like the separate random one for the party, since it’s really don’t matter as long as I’m keeping them rolling.