Every now and then I again try to make a macro that works well and doesn’t run into one of several potential issues. Maybe you can enlighten me.
Here is my mount macro:
#showtooltip [mod:alt]Grand Expedition Yak;[mod:shift]Sandstone Drake;Archmage’s Prismatic Disc
/use [nomod,nomounted]Prismatic Bauble
/run UIErrorsFrame:Clear()
/dismount [mounted]
/use [mod:alt]Grand Expedition Yak;[mod:shift]Sandstone Drake;Archmage’s Prismatic Disc
What it does (or should do) is use the bauble whenever I mount my disc and not when I am dismounting or mounting a modifier-triggered mount. And that part works.
-
I wrote it without [nomod] in order to save space. Sadly this means the becomes the icon for any nondefined modifier.
-
I have lots of bloat because I do not want the prismatic bauble to become the icon just because it’s the first in the list.
I tried putting #showtooltip after it, but sadly that doesn’t make a difference.
Is there maybe at least a way to simplify the tooltip conditionals? Like accessing icon IDs and somehow finding out which ones they are?
I also cannot put the bauble in the end because then the dismount command is first and that defines the icon, and also then the bauble sees a dismounted state and always activates. -
For IIRC quite a long time, whenever I wanted to use the errors frame clear, it didn’t work. Hide and Show still do their thing, but Clear doesn’t do anything for some reason.
I tried disabling all addons and can confirm it’s not an addon messing with it.
I.e. when the bauble is on cooldown, it always throws an error when I mount the disc. -
More pain ensues when I am trying to have it not mount the disc while I am on the yak, but only cancel the mounted state first. But if I add nomounted as conditional to each mount type, then using the macro doesn’t dismount me at all anymore. That’s why I added the dismount line. But when I am sitting on the yak and activating the macro, I want it to dismount the yak and only on further activation mount the disc. If that is even possible.
Can I maybe artifically introduce a global cooldown so that the macro cannot mount when the dismount action has passed?
BTW, I tend towards accepting that the bauble will be the icon since it only does so for the standard mount. But I also see the cooldown of the bauble there then, which I don’t really want.
Thank you for help.