Kel
10-30-2008, 07:11 AM
I'm working on a new duo team and trying to get a macro sorted so that I can change who my alt assists without needed to take up focus (or possibly even targeting). Trouble is I'm not very good with the /script command and can't understand what the different parts of it mean. So I'm hoping someone here knows more about it than me and can shed a little light on how I can do what I want to do, or if it's just not possible.
What I want to do:
I'd like to have a set-up so that my main character can be used for healing (preferably with being able to target firendly players in order to do so) and my alt will attack her current target, or assist a group member other than myself to get a new target. Trouble is that group member might not always be the same character (or in the same group slot) and so I'd need to add the character name into my targeting/assist macro (which I could do manually, but that takes more effort...).
What I have so far:
I've managed to make two macros, one is the scrip and modifies part of the other macro, which is the targeting macro. I stole this from somewhere else, so I don't really know why it does what it does.
First macro (pick my target)
/script EditMacro(GetMacroIndexByName("Assist"),"Assist", nil,"/assist "..UnitName("target"), 1)
Second macro (assist)
/assist <name of target when I clicked first macro is inserted here>
This works, and I could probably make a workable assist for my alt with it. But what I'd really like to do is have the second macro do more than just assist, for example I'd like to make the second macro something like:
/cast [target=<name from script in first macro>,help] Rejuvenation
However, the /script macro won't seem to let me add anything after the ..UnitName("target") part and have it included in the macro. I'm not sure if that's because I'm not entering it correctly, or because it's just not possible.
Any help would be appreciated.
What I want to do:
I'd like to have a set-up so that my main character can be used for healing (preferably with being able to target firendly players in order to do so) and my alt will attack her current target, or assist a group member other than myself to get a new target. Trouble is that group member might not always be the same character (or in the same group slot) and so I'd need to add the character name into my targeting/assist macro (which I could do manually, but that takes more effort...).
What I have so far:
I've managed to make two macros, one is the scrip and modifies part of the other macro, which is the targeting macro. I stole this from somewhere else, so I don't really know why it does what it does.
First macro (pick my target)
/script EditMacro(GetMacroIndexByName("Assist"),"Assist", nil,"/assist "..UnitName("target"), 1)
Second macro (assist)
/assist <name of target when I clicked first macro is inserted here>
This works, and I could probably make a workable assist for my alt with it. But what I'd really like to do is have the second macro do more than just assist, for example I'd like to make the second macro something like:
/cast [target=<name from script in first macro>,help] Rejuvenation
However, the /script macro won't seem to let me add anything after the ..UnitName("target") part and have it included in the macro. I'm not sure if that's because I'm not entering it correctly, or because it's just not possible.
Any help would be appreciated.