Ally / Enemy Keybindings
I was wondering if there was an addon or maybe just some way i don't know about that allows you to use the same key binding but it changes what it's used for for different targets.
For example i'll be playing my priest and want to cast smite on an enemy, so i press "1" and it casts smite. But when i target an ally and i press "1" it casts heal rather than smite because the ally is targeted rather than the enemy. Is this a doable thing? it would be massively convenient. Currently my setup is alt1-5 for my main harmful spells but i'd rather be able to use the alt key for an easier layout out for helpful spells AND harmful. Thanks for your help -Logan |
Yes they are called conditionals. I can give you a quick example,
/cast [help] Renew; [harm] Shadow Word: Pain Can also do mouseovers /cast [@mouseover, help] Renew; [harm ] Shadow Word: Pain |
Thanks so much for the reply i was just about to post one saying i figured that out. Extremely convenient for me. here is the basic layout im using just in case anyone cares to copy me
Code:
#showtooltip [mod:alt] Heal; Smite |
Haha sorry for the second response but i felt this could help some people.
Code:
#showtooltip [@target, help] heal; smite |
Quote:
Quote:
/edit: though you could just use #showtooltip by itself (no spell names) along with the ? icon and have the macro pick the icon for you automagically. :) |
Actually, it's the "help" part that's doing that - "@target" just means that it's checking your target, which is default behaviour.
In fact, this will work just as well, and use fewer characters. Code:
#showtooltip Also, as Seerah pointed out, the /stopcasting line and the one following it were completely redundant. This macro will do the same thing, but is quicker to type, easier to read, and uses fewer characters (not important for this macro, but can be important for more complex ones). |
Sorry i didnt explain better. Having
Code:
/stopmacro [harm] |
Then this should work just as well, actually - if you're not targetting something you can attack, it casts Heal on your target - if no target, it places the spell on the cursor.
Code:
#showtooltip |
Of course, that's assuming Auto Self Cast isn't checked in the options. If that option is checked, whenever you try to cast a spell that requires a friendly target (like a buff or a heal) but your target is hostile or nonexistant, you cast it on yourself automatically.
|
i always have that unchecked :)
|
All times are GMT -6. The time now is 08:32 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI