Help printing macro

i wanted to make a macro that i could click and it would switch PvE gear or PvP gear so i did this

/EquipSet [button:1] PvE
/EquipSet [button:2] PvP

that works. i left click [button:1] it puts on my PvE equipment set and if i right click the same macro icon it puts on my PvP gear.

this issue is i want to pint if it was PvE or PvP gear that changed. and wanted it to be on my screen or i guess simply chat window. but i don’t know how to make it print PvP if i right click or PvE if i left click. so any help would be great.

just to say this what i am trying todo is have 1 macro button that i can switch gear from pvp and pve and know what gear i have on without having to open the charater window and check. thank you to those that help me.

Either:

/run print("Equipping: "..SecureCmdOptionParse("[button:2] PVP; PVE"))

or:

/run print("Equipping:",GetMouseButtonClicked()=="RightButton" and "PVP" or "PVE")
1 Like

Thank you very much. I was missing the SecureCmdOptionParse and the syntax for getting the button i was trying /run print (“Equipping”…GetEquipSet (“[button:#]”) and a bunch of other variations to that.