I would like to use two buttons which activate 2 respective macros (bandage either myself or a part member, and announce this fact in the party chat).
Code:
## macro on button 1: bandage selected player and announce to party chat
/use [button:2,target=player] Heavy Silk Bandage
/script SendChatMessage("BANDAGING %T", "party" );
## macro on button 2: bandage myself and announce to party chat
/use [button:2,target=MyOwnPlayerName] Heavy Silk Bandage
/script SendChatMessage("BANDAGING self", "party" );
I haven't had a chance to test button 1 yet, but button 2's only action is to output the message to party chat - it doesn't bandage me.
I'm very new to WOW macros, so am still learning. If anyone has any clues about what I'm doing wrong (cobbled together from net examples and the API) they would be very welcome.