Macro Question (buffing)


Aggelakis

 

Posted

I am wanting to make a single macro key that will activate each of my buffs. I don't mind spamming the key to get them all in. I use the ESDF keybinds, so I was wanting to use X as my buff key.

Powers to Buff:
Psychic Focus
Build Up
Conserve Power
Power Boost
Boost Range

Macro I wrote:
/macro buff powexec_name Psychic Focus$$powexec_name Build Up$$powexec_name Conserve Power$$powexec_name Power Boost$$powexec_name Boost Range

The problem with this was it saw only one of the powers and ignored the rest. I went into edit and it just showed the first one. Not sure what happened.


 

Posted

The game has limitations on macros like that because they could potentially used to bot the game.

However, their is a work around. Look up the "loadfile" command. Essentially, you can use it to create seperate macros/binds for each of your buffs by creating a text file with each bind inside and a link to the next bind.

Example:

loadfile 1:
/bind 1,"powexec_name Psychic Focus$$loadfile C:\loadfiles\2.txt"

loadfile 2:
/bind 1,"powexec_name Build Up$$loadfile C:\loadfiles\1.txt"

The actual commands would be slightly different I think but the intent would be the same. In the example above, pressing 1 would activate psychic focus and change the bind to loadfile 2, which would activate build up on the next press of 1.

There should be a guide to this in the guides section.


TW/Elec Optimization

 

Posted

VERY helpful. Thank you very much, Combat.


 

Posted

The correct syntax is (replace c:\binds\#.txt with your preferred folder and filenames, replace k with your preferred key):

c:\binds\1.txt:

Code:
k "powexecname Psychic Focus$$bindloadfile c:\binds\2.txt"
c:\binds\2.txt:
Code:
k "powexecname Build Up$$bindloadfile c:\binds\3.txt"
c:\binds\3.txt:
Code:
k "powexecname Conserve Power$$bindloadfile c:\binds\4.txt
c:\binds\4.txt:
Code:
k "powexecname Power Boost$$bindloadfile c:\binds\5.txt
c:\binds\5.txt:
Code:
k "powexecname Boost Range$$bindloadfile c:\binds\1.txt
Create five text files, with one line in each text file, containing the codes above. You'll then type /bindloadfile c:\binds\1.txt in your chat bar to load the first one. Then each time you press "k", a new selfbuff will be applied, in order, and will load the next buff. Once you reach the fifth buff, it will recycle back to the first buff.

[[[note]]] You can use bindloadfilesilent if you prefer not to have system message spam each time you load a file.

http://paragonwiki.com/wiki/Binds
-- http://paragonwiki.com/wiki/Bindloadfile


Paragon Wiki: http://www.paragonwiki.com
City Info Terminal: http://cit.cohtitan.com
Mids Hero Designer: http://www.cohplanner.com
Quote:
Originally Posted by Dispari View Post
I don't know why Dink thinks she's not as sexy as Jay was. In 5 posts she's already upstaged his entire career.

 

Posted

There is another way to tie a bunch of powers to one key by using the "toggleon" command instead of "powexec" and doing it as a keybind instead of a macro.

Personally, I would separate the toggle powers and the click powers onto two (or more) different keys. Reason being, when the toggles are turned on, they will just keep running until you turn them off separately. The clicks will recharge as normal and be ready for the next keypress.

You can also set one power to fire (toggle) on the downpress and one on the release by putting a "+" in front of your command string.

Here's a quick example of both that I have in one file for my blaster:

NUMPAD1 "+ $$powexec_toggleon Aim$$powexec_toggleon Build Up"
NUMPAD2 "+ $$powexec_toggleon Combat Jumping$$powexec_toggleon Tough$$powexec_toggleon Weave"
NUMPAD3 "+ $$powexec_toggleoff Combat Jumping$$powexec_toggleoff Tough$$powexec_toggleoff Weave"
NUMPAD4 "+ $$powexec_toggleon Nova$$powexec_toggleon Conserve Power"

My clicks are numpad 1&4. Downpress and release for each set. They will recharge as normal and be ready to fire on the next keypress.

My toggles are numpad 2&3. I do have to hit numpad2 a couple times to toggle everything on; once on, they will continue to run. If I get detoggled, I just have to hit the key again, and the things that were detoggled will come back on. Then numpad3 turns them all off simultaneously.

Just another angle for ya to consider.

.


Quote:
Don�t say things.
What you are stands over you the while, and thunders so that I cannot hear what you say to the contrary. - R.W. Emerson
The BIG consolidated LIST for BASE LUV
YUMMY Low-Hanging Fruit for BASE LUV

 

Posted

Quote:
Originally Posted by GageEndaI View Post
/macro buff powexec_name Psychic Focus$$powexec_name Build Up$$powexec_name Conserve Power$$powexec_name Power Boost$$powexec_name Boost Range

The problem with this was it saw only one of the powers and ignored the rest. I went into edit and it just showed the first one. Not sure what happened.
The reason that this macro only had one power in it is that you didn't put quotes around the string of commands. So when you pressed Enter, it created the macro with all the text up to the first $$, and then executed the rest of the commands you listed right away, rather than including them in the macro text. Of course, the macro wouldn't have worked as written anyways, but others have covered how to fix that. Remember to use quotes the next time you chain multiple commands in a macro.

/macro TMYK "em thumbsup$$local The more you know..."


@Roderick

 

Posted

Also, OP, from a tactics perspective (assuming you're on a Psi/Energy Blaster), you'll want to reverse the order you're firing those buffs: Boost Range/Power Boost are the longest buffs, so you want them firing first, so they last while you fire off the rest of the buffs afore you start attacking, also, Power Boost will buff the +ToHit of Psychic Concentration (Aim clone) and Build Up. It doesn't boost the Range of Boost Range though, so no sense in firing it afore hand.

Lastly, doubt you're destroying your Endurance bar on an initial attack string, so save Conserve Power to be used when your bar is only ~25% full, your recovery is debuffed, or you want to nuke (found it works better popped before the nuke, since that's one less you have to pop after on just a Blue inspiration).


I am the 99%. Occupy the World.
Minister of Infinity's Secret Police, Official Mooch of dUmb and League, Official Purveyor of Free Straws, the Most Interesting Man in the World.
http://www.change.org/petitions/ncso...city-of-heroes