Can we use mount IDs instead of names in macros?

I have this macro to /castrandom a bunch of different mounts but some of the names are really long (like Bloodbathed Frostbrood Vanquisher) so there’s only so many I can fit in a macro. Is there a way to shorten those, like with an ID instead of the name?

(I don’t use random favorite mount because I favorite mounts with specific purposes like repair)

You could use C_MountJournal.SummonByID

/run local m={509,455,764} C_MountJournal.SummonByID(m[random(#m)])

You can look up the IDs it uses at
https://wow.tools/dbc/?dbc=mount

4 Likes

Thanks, i’ll give this a try :slight_smile:

OMG - THANK YOU!! I’ve been searching on and off for about a month now on how to use arrays in WoW /run macros and only now randomly stumbled on to your comment. Solved all my problems

2 Likes

Reminds me that I never reported back to say that this worked perfectly and I can now have so many more mounts in my macro. :purple_heart: