Thanks again Fizzlemizz,
For reference the full Lua is here -
https://pastebin.com/eTjahqd0
Basically its a random mount macro, and the trigger is meant to detect when you mount it picks a new random mount causing the macro to update icon/tooltip etc