Need help with macros


chaossdragon

 

Posted

I'm trying to set up a macro that will target the next teammate or pet and fire off sonic haven. I know I have to use target_custom_next and powerexec but I'm not sure how to write it. Please help. Here's what I tried but doesn't seem to work "/macro haven "target_custom_next"friend"$$powerexec_sonic_h aven or powerexec_name"sonic haven". I tried a couple of other combinations too but none of them seemed to work.

P.S. That space in haven was not there when I typed this.

Got it to work here's what I did: /macro haven "target_custom_next "friend"$$powexec_name sonic haven"

Oh well, thought it worked until I got a mm on the team and had him call pets. The syntax is right but I don't think you can string the 2 commands together. For now the targeting macro will just have to take up an extra tray slot. If anyone knows how to make this work please help.


 

Posted

Quote:
Originally Posted by GhoulSlayer View Post
I'm trying to set up a macro that will target the next teammate or pet and fire off sonic haven. I know I have to use target_custom_next and powerexec but I'm not sure how to write it. Please help. Here's what I tried but doesn't seem to work "/macro haven "target_custom_next"friend"$$powerexec_sonic_h aven or powerexec_name"sonic haven". I tried a couple of other combinations too but none of them seemed to work.

P.S. That space in haven was not there when I typed this.

Got it to work here's what I did: /macro haven "target_custom_next "friend"$$powexec_name sonic haven"

Oh well, thought it worked until I got a mm on the team and had him call pets. The syntax is right but I don't think you can string the 2 commands together. For now the targeting macro will just have to take up an extra tray slot. If anyone knows how to make this work please help.
try

/macro Haven "target_custom_next friend$$powexec_name Sonic Haven"

throw in a notmypet if you want to exclude your pets, after friend.


Orc&Pie No.53230 There is an orc, and somehow, he got a pie. And you are hungry.
www.repeat-offenders.net

Negaduck: I see you found the crumb. I knew you'd never notice the huge flag.

 

Posted

Thank you, but I tried that too. Here's the easiest one to write that I tried:

/macro haven "target_friend_next$$powexec_name sonic haven"

The problem is, it only does the targeting then it drops the cast power command. I also tried:

/macro haven "powexec_name sonic haven$$target_friend_next"

Which cast the power but wouldn't switch targets. From what I can tell it is impossible to string the two commands together. I had some friends who are much more experienced with macros and bindings than I am trying to help yesterday and they came to the same conclusion (we tried making it into a bind too). If anyone out there knows of a way to make this work I would appreciate it. For now, I'm just settling for having the targeting macro take up another tray slot. It's an acceptable compromise but it isn't what I actually wanted to do.

Btw, I used the targeting command on my dark/kin corr yesterday. It was an invaluable tool when we went after the MoBSF. Not only did I get it but it was the first time I ever even attempted the SF let alone a master run. =)


 

Posted

I'm not sure how this reacts with a macro, but the following DOES work on a bind:

/bind KEY "target_friend_next$$powexecname Speed Boost"

Keep in mind you have to give the power a moment to recharge, but if you press it early the power will queue and go off when recharged.

Also, like Rajani mentioned, you can put filters in by changing the target command a little, for example:
/bind KEY "+$$target_custom_next friend alive notmypet teammate$$powexecname Speed Boost"

Edit:
I just tested, and the macro version of the same command string does not work correctly at all. I guess you are better off binding it to a key instead. Personally, on my buffing toons, I use the 1234 keys for various buffs.


 

Posted

Quote:
Originally Posted by Master-Blade View Post
I'm not sure how this reacts with a macro, but the following DOES work on a bind:

/bind KEY "target_friend_next$$powexecname Speed Boost"

Keep in mind you have to give the power a moment to recharge, but if you press it early the power will queue and go off when recharged.

Also, like Rajani mentioned, you can put filters in by changing the target command a little, for example:
/bind KEY "+$$target_custom_next friend alive notmypet teammate$$powexecname Speed Boost"

Edit:
I just tested, and the macro version of the same command string does not work correctly at all. I guess you are better off binding it to a key instead. Personally, on my buffing toons, I use the 1234 keys for various buffs.
did you toss in a bug report on that?


Orc&Pie No.53230 There is an orc, and somehow, he got a pie. And you are hungry.
www.repeat-offenders.net

Negaduck: I see you found the crumb. I knew you'd never notice the huge flag.

 

Posted

Quote:
Originally Posted by Master-Blade View Post
I'm not sure how this reacts with a macro, but the following DOES work on a bind:

/bind KEY "target_friend_next$$powexecname Speed Boost"

Keep in mind you have to give the power a moment to recharge, but if you press it early the power will queue and go off when recharged.

Also, like Rajani mentioned, you can put filters in by changing the target command a little, for example:
/bind KEY "+$$target_custom_next friend alive notmypet teammate$$powexecname Speed Boost"

Edit:
I just tested, and the macro version of the same command string does not work correctly at all. I guess you are better off binding it to a key instead. Personally, on my buffing toons, I use the 1234 keys for various buffs.
Did you try this with more than one person on your team? I made almost the exact same bind (the only difference being I used powexec_name instead of powexecname) and it would only work if I only had one target. If I tried to use it with more than one the power would not fire but it still worked for targeting. I also tried reversing the order of the 2 commands and it did just the opposite.


 

Posted

Quote:
Originally Posted by GhoulSlayer View Post
Did you try this with more than one person on your team? I made almost the exact same bind (the only difference being I used powexec_name instead of powexecname) and it would only work if I only had one target. If I tried to use it with more than one the power would not fire but it still worked for targeting. I also tried reversing the order of the 2 commands and it did just the opposite.
Like I said, the MACRO didn't work, but the BIND did. As for members on my team, I honestly had NONE. I simply tested it by standing near the Black Market and it cycled through different people standing there, SB'ing each one as it was designed to do.


 

Posted

Ok, I'll try it as a bind the next time I'm online. I did try my original one as both a bind and a macro though and still had that problem.


 

Posted

I tried your bind and it didn't work consistently. On rare occasions it would fire off the power if I clicked fast enough but I need it to work every time. I also tried making the targeting command longer thinking that the problem might be in the computer not reading it fast enough so with the targeting command longer and the power command shorter it might compensate. Here's what I tried but I got the same results:

/bind NUMPAD1 "target_friend_next$$powexecname Speed Boost"

and:

/bind NUMPAD1 "target_custom_next friend$$powexecname Speed Boost"


 

Posted

You could also try a rotating bind if the combo-bind isn't working reliably for you.


Orc&Pie No.53230 There is an orc, and somehow, he got a pie. And you are hungry.
www.repeat-offenders.net

Negaduck: I see you found the crumb. I knew you'd never notice the huge flag.

 

Posted

On some of my combination binds , where a power execute is also in the macro, I find it drops the execute part. What I have found is that if you go back in and edit the macro after that, adding the execute part back in, it works.

If you've tried that, then not sure what to tell you.


 

Posted

Quote:
Originally Posted by GhoulSlayer View Post
I tried your bind and it didn't work consistently. On rare occasions it would fire off the power if I clicked fast enough but I need it to work every time.
I'm not sure what exact results you are getting but this is my experience:

- I press the button
- The next ally is targeted
- Speed Boost goes off (or queued if the power is not fully recharged yet, or if the target is out of range. As soon as the power is recharged or you become in range of the target, the power finally fires)
- I press the button again
- The next ally is targeted
- Speed Boost goes off (etc etc)

I don't know why it's not working consistently for you, but the only other thing I can think of as a workaround for you is to bind another key (like numpad0) to target_next_friend, then just use numpad1, numpad2, numpad3, etc for the various buffs you might have for each toon. That way you'll be able to target the ally separately and buff him with anything you have before moving to the next person. You can even bind the fortune power to the numpad somewhere for the convenience of not having to keep it on your powertray anywhere.


 

Posted

don't know if this is what you want or if its even functional for your situation, but i use the following macro(s) for team buffing...

/bind (modifier+)numpad# "powexec_name Name of Power$$ team_select #"
[modifier = lctrl / lshift / lalt]

first # is 1-6 (i'm rarely in teams larger then that, due to static grouping)
second # matches the numpad for ease of usage.

I mainly use this for Recall Friend and Mystic Fortune but it does work for many buffs, just double hit the key and it selects and fires the power. the main advantage is no need to worry about team range with target_next_friend.


 

Posted

The /target command and its variants work oddly, especially during a fight. Because it targets the next closer or further person, and people are constantly moving, it can seem to jump randomly.

Furthermore, it can only target things that are on your screen. If you're trying to use it to target things that are off to the side, or behind your camera, it won't pick them up.

If all your targets are on screen and unmoving, and it still doesn't cycle properly, it's either a problem with your bind/macro, or the way the system is parsing it. There have been issues reported with combining /target commands with /pow_exec commands for ages, but as you can see in this thread, they're inconsistent; for some reason, not everyone has them.


@Roderick

 

Posted

Quote:
Originally Posted by chaossdragon View Post
[modifier = lctrl / lshift / lalt]
lctrl, lshift, lalt are not actually modifiers, they are stand-alone keys. When you attempt to chord with them, it defaults to the standard ctrl, shift, alt combinations anyway, which allow both the left and the right keys to work the same way. There is no way to separate lalt+KEY and ralt+KEY to make them act differently.

lctrl, lshift, lalt should technically only be used when binding something to that key specifically by itself, not in conjunction with another key. The proper usage here would simply be alt+KEY.

It still works typing it like that, but it's not good practice as the L just gets deleted internally. You can verify this by doing a /bindsavefile after making such binds and checking the results.


 

Posted

Quote:
Originally Posted by chaossdragon View Post
don't know if this is what you want or if its even functional for your situation, but i use the following macro(s) for team buffing...

/bind (modifier+)numpad# "powexec_name Name of Power$$ team_select #"
[modifier = lctrl / lshift / lalt]

first # is 1-6 (i'm rarely in teams larger then that, due to static grouping)
second # matches the numpad for ease of usage.

I mainly use this for Recall Friend and Mystic Fortune but it does work for many buffs, just double hit the key and it selects and fires the power. the main advantage is no need to worry about team range with target_next_friend.
This is how I do it, except I reverse the order. I go: /bind F6 "teamselect 1$$powexecname Speed Boost" Double tapping the key selects the desired teammate and then fires Speed Boost (or whatever it is you bound there).

This way, you can be sure you're not double buffing someone (which doesn't work from the same caster anyway), and you will not target any pets that happen to be in range.


Quote:
Originally Posted by Dechs Kaison
See, it's gems like these that make me check Claws' post history every once in a while to make sure I haven't missed anything good lately.

 

Posted

I've decided that it is impossible to string the 2 commands together and get it to work every time. The solution that I came up with is just to make one macro for targeting and put it right next to my buffing powers. It works so I'm not going to worry about it anymore.


 

Posted

Out of curiosity, are you making sure that your teammates are visible on screen? There's no bind I know that will scroll through the list of teammates, only visible ones.

Also, there's a way to do what you're talking about with rotating binds. Where you set a bind file to select a player and then load a replacement bind file that rebinds the key to executing a power which loads the original bind file again.

I'm pretty sure I have a sample here: http://www.jordans-town.com/mini-bind-reference

I can't check to be sure since my work blocks my pages for some reason.