Currently what I've got is the following:
/clearfocus [button:2] /focus [target=focus,noexists] /cast [target=focus] Polymorph: Turtle /stopmacro [nogroup:raid] /script SendChatMessage(UnitName("focus").." polymorphed (50s)","RAID")
This clears focus if I use right mouse button, focuses on current target if I don't have a focus already, polymorphs focus and sends a message to raid if I'm in one.
While at a basic level this does what I want I'd like to improve it in a few ways.
1. I'd like to be able to hotkey this. Do I need to create 2 macros, 1 with /clearfocus in and 1 without and use different hotkeys for each or do modifiers work in some way with hotkeys?
2. Is it possible to do something like:
/stopmacro [nogroup:raid, target=focus, noexists, noharm]This would stop macro if not in raid group or if focus doesn't exist or not an enemy. I imagine this won't work but is there a way to streamline this so it doesn't take up 3 lines?
3. The reason I use /script SendChatMessage(...) is to put the focus name in the message. It would be nice to be able to use "/r %f polymorphed (50s)" or something to that effect. WowWiki seemed to suggest this wasn't possible but there seemed to be some inconsistency between it's macros.
Is there a decent reference/forum for macros other than WowWiki? Currently it's the only place I know of with this kind of information but I'm never sure of it's accuracy or whether it is uptodate with all the latest commands.