Help with mounts + skills macro

I’m looking for a way to have 1 button, So by default not holding any buttons, Judgement of Light, hold alt = judgement of wisdom, hold ctrl = Judgement of justice, and then hold shift to cast flying mount in flying areas and ground mount in ground areas.

So basically i know

/cast [flyable] flying mount; groundmount

will do the ground mount unless im in a flying area at which point it will do the flying mount. However if i want it behind a mod like shift

/cast [mod:shift] [flyable] flyingmount; groundmount

it will still be the ground mount until i hit shift, then it will check for flying and let me do the flying mount.
On retail its not an issue because you can use anymount in any zone, if it cant fly it wont but you can still use it so i can do

/cast [mod:shift] flyingmount;spell1

/cast [mod:alt] spell 2

with that i can do spell 1, hold alt to do spell 2 and hold shift to mount(flying or nonflying)

so i thought up this, and its gets the job done but clumsy af

#showtooltip

/cast [mod: shift] [flyable]Flying mount; spell 1 

/cast [mod: shift] [noflyable] Ground mount; spell 2 (had this for spell 1 but changed to spell 2 to troubleshoot)

/cast [mod:alt] spell 3

while in a no flying area, this looked promising. No mods it shows spell 1, and casts spell 1. Hold shift and it shows flying mount ?? but casts ground mount. alt does nothing.

in outland however, it shows the flying mount by default, holding any mod key doesnt change the icon/tooltip. Pressing the button with no mods held would cast the flying mount and spell 2 (in that order) so spell 2 doesn’t work because it starts mounting, but once mounted and press it, it will dismount and cast spell 2. Holding the alt does the same as not holding alt key does the same as no mod key, and holding the shift key will cast both mounts (this one i cant figure out the order) if im mounted on either mount it will dismount and mount the other mount. but if not mounted it will do the flying mount.

With your conditionals separate (like “[mod:shift] [flyable] flyingmount”), they behave like an OR. So if you have shift held down or it’s flyable, then it will cast your flying mount. That isn’t what you want.

If you put both conditionals in the same set of square brackets, they behave like an AND. So you’d really like a construct like the following:

/cast [mod:shift,flyable] flyingmount; groundmount

Note the comma in between the conditionals. That macro will cast flyingmount when you have shift held down and it’s flyable, and groundmount in all other cases.

Note that you can keep chaining conditionals and spells in the same line in your macro. The following macro construction works:

/cast [condition1] spell1; [condition2] spell2; spell3

With both of those pieces of knowledge, you can construct a macro that does exactly what you’re looking for in a single line with only one “/cast” in it.

3 Likes

Someone give this man a medal! Using what you said about one cast and multiple mods in one bracket…

#showtooltip
/cast [mod:shift,flyable] Tawny Wind Rider; [mod:shift,noflyable] Swift Green Hawkstrider; [mod:alt] Judgement of Justice; [mod:ctrl] Judgement of wisdom; Judgement of Light

works perfectly! changes the judgement based on the mod held, changes the mount based off the area. Doesn’t do any double casting.

1 Like

Going to ask my own question in this thread sorry.

Is there a macro, addon, or weakaura that pretty much hust casts a random mount to ride?

There deffinetly is I just don’t know what it is. Sorry I couldn’t be more helpful :sweat_smile:

yes there is

/userandom mount1, mount2, mount3, etc, etc, etc

and i think but havent tested it yet, if you want to specify flying/nonflying this should do a random flying mount in a flying area and a random ground mount in a non flying area

/userandom [flyable] flying mount1, flying mount 2, etc; [noflyable] ground mount1, ground mount2, etc, etc

you can also have it where an mod key will summon a specific one just change it to

/use [mod:alt] specific mount
/userandom [nomod] mount 1, mount 2, etc
1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.