If you select the ? icon, then just put #showtooltip at the top of a macro, it will try to display the icon of the actual thing that will be cast when you click the icon. However, sometimes the conditions in the macro don’t return an icon for it to show. One example of this is my mount macro that has to be overly complicated due to the way flight, water, and other types of restrictions are not properly able to be handled by macro conditions. This means that my mount icon shows properly when I’m not mounted, but when I’m mounted it goes to a ?.
Is there any way to specify a default icon to show if no other condition returns valid, but let it still show the dynamic icon if one of the conditions returns true?
If you’re after specific types, you could combine [flyable], [swimming], [indoors] and [outdoors] to probably get the right icon depending on the situation.
Wow! I could swear I tried that in the past without success. It seems to work now. Thank you.
Well…I think I see the problem I had in the past. If the #showtooltip doesn’t find an icon from the conditions on that line, it won’t fall through to the ones from the regular macro.
It would be nice if they added an option like:
#showtooltip [default] <icon if nothing found to show in the macro>
I figured it out. Just have to add a /stopmacro [condition] at the end, followed by a /cast [condition] of the icon you want.
The problem with that is for instant-cast mounts. During Hallow’s End, I have the broom there, and putting the /dismount first still gave the broom a chance to cast. I think I had a similar issue with my druid.
Having the icon condition after the /stopmacro works, so it’s all good now. I still wish they would let us specify a default icon on the #showtooltip line to be used if nothing else in the macro returns an icon. It would be cool if we could even programmatically return the icon to use with scripts.
Imagine #showtooltip MyIconFunction() where MyIconFunction() returns an icon
My solution is to put the mount macro on a hidden bar with a key binding, I never see what the icon is but I know that pressing H (for horse) will summon whatever mount the macro says it should!
Yes I know that H is something else by default, no idea what it was as I changed it way back in 2004. I used to have shift-H for Hearthstone too, but with the addition of different hearths and many useful, in different situations, mounts I had to split them into their own macros.
You can do this relatively simply with Weak Auras.
You’ll need to set up a trigger that mimics the conditions in the macro that returns true if none of them are met and use it to display a custom icon (your choice what) anchored to and sized to the button where the macro sits.
As it’s a pass-through display, it won’t effect your game-play at all, but it will give you the visual indicator you’re looking for.
I didn’t know you could make a macro like this! I’ll see if I can copy this tomorrow, conditional mounting is awesome. Too many times lately I’ve gotten onto a ground mount outside of the mage tower in SW out of habit and fallen off that ramp.
As long as the tooltip you want to show matches exactly the function you are to use (with whatever modifiers you are pressing) you can just use #showtooltip as long as you have selected the question mark icon. This works with all the modifiers you would expect, like swimming, alt, etc.