Need help with SetRaidTarget

Hey all,

I’m trying to add a command to my current macro where when I press ctrl and the macro it will set my mouseover target with the skull icon.

This is what I have so far:

#showtooltip
/cast [nomod] Healthstone
/cast [mod:shift] Arcane Torrent
/run if IsControlKeyDown() then SetRaidTarget(“mouseover”,8) end

This doesn’t seem to work. When I change it to

/run if not IsControlKeyDown() then SetRaidTarget(“mouseover”,8) end

It works fine whenever I press the macro without the control key.
Please if anyone could assist me with this I’d appreciate it. Thanks!

Try changing " for ’ around the mouseover. I can’t speak for the validity of the macro itself.

What key is it on? By default CTRL 1-6 are bound to the pet bar and keybinds take priority over macro modifiers so if it’s a conflicting combination it will never fire.

Also looks like you have smartquotes in the macro but I don’t know if that’s just because you’re posting it on the forums or not.

Assuming there’s no key conflict, try this:

#showtooltip
/run if IsControlKeyDown() then SetRaidTarget("mouseover",8) end
/stopmacro [mod:ctrl]
/cast [mod:shift] Arcane Torrent; Healthstone
2 Likes

Asking to change " for ' seemed easier than explaining/looking for smartquotes in code even if my response got them wrong :wink:

Sorry for the late reply on this, but I didn’t even think about keybinds. It was ctrl+f9 which was bound to Special Action Button. It works fine now, thanks!