Quick Macro Question


Ironblade

 

Posted

Can a macro be written to execute more than one power?

I know I can use the following macro to turn on fly and change my costume:

/macro F Powexecname Fly$$cc 1


But is there a way to write a macro that would do the above - turn on fly and change costumes, but also turn on Stealth?


(Sometimes, I wish there could be a Dev thumbs up button for quality posts, because you pretty much nailed it.) -- Ghost Falcon

 

Posted

A macro can execute any number of chat binds and toggle drops, and one emote and/or costume change. It may activate one power. However, a second power can be placed on "auto", to be queued up to activate immediately after the first goes off.

/macro F "powexec_toggleon Fly$$powexec_auto Air Superiority"

This will turn on Fly, and put Air Superiority on auto, causing it to activate automatically the moment you got in melee. It would continue to activate until you turned off the auto by using the command "powexec_abort". (I believe this is bound to your Z key)

The icon will appear with a green ring around it. You can also set auto, or unset it, by holding Control and clicking the icon. I believe that only click powers can be set on auto, though, toggle powers cannot, so your Fly/Stealth combination wouldn't work.

Here's an alternative that will work, but you'll have to press the key twice:

/macro F "powexec_toggleon Fly$$powexec_toggleon Stealth"

The first time you press the F key, you will go into Stealth, doing the disappearing animation. Then when you press it again, you will fly. I actually use a bind like this all the time for my genie character, she turns into air, and then floats around as a human shaped cloud. I use stealth to represent that.

You will need a key to turn it off, though:

/macro G "powexec_toggleoff Fly$$powexec_toggleoff Stealth"

As I mentioned above, you can toggle OFF any number of powers at the same time, so it would turn them both off with the press of the G key. If only one was on, that would be the one turned off. Note "powexec_name" toggles off a power that is on, and on when it is off, so if you used the "powexec_name" command with the F macro above it would switch back and forth between Fly and Stealth. (Stealth would come on first, since it is the last command in the list, then with the next press Fly would toggle on and Stealth would toggle off)

If you combine a costume change with a power, your costume will change right before the animation goes off. (Which can be annoying if you trying to make the costume change DURING the animation) If you use a costume change emote ("cce 1 ccsalute" for example) the animation for the power will play INSTEAD of the costume change, but it will be delayed until the costume change animation WOULD have finished. (This should be fine for Salute, but I notice when I try to use a Kheldian explosion and take off flying, my costume doesn't change for a LONG time.

Probably the best way at present to mix costume changes and powers is as follows:

/macro F "em none$$powexec_toggleon Fly$$cce 1 ccprestochangeo"

This is an AWESOME transformation, by the way. For some reason, the "em none" overrides the fly animation, and the Presto Changeo animation plays as you take off. Half the time it doesn't work, and you "bounce" into the air and back to the ground before putting your arms in the air to change costume. But about half the time you hang in the air as you change in a puff of smoke, and landing the animation seems to always work perfectly. (Then again, the "em none" shouldn't be needed since there is no animation associate with a toggleoff)


 

Posted

Thanks for the advice, Jade Dragon

Quote:
Originally Posted by Jade_Dragon View Post
I actually use a bind like this all the time for my genie character, she turns into air, and then floats around as a human shaped cloud. I use stealth to represent that.
I am trying something similar. My character has insect powers so when she wants to fly she shrinks down and grows wings. I can't shrink to insect size, but I figured I could use Stealth to simulate that. My alternative is to buy a couple of super expensive Freebird +Stealth IOs.


(Sometimes, I wish there could be a Dev thumbs up button for quality posts, because you pretty much nailed it.) -- Ghost Falcon

 

Posted

I think jade was meaning /bind with those /macros difference being one creates a power icon to use and binds change what a keystroke does.


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 mousedroid View Post
I am trying something similar. My character has insect powers so when she wants to fly she shrinks down and grows wings. I can't shrink to insect size,
You know you can shrink quite a bit, right? The Science booster pack lets you change character scales (waist, legs, chest, physique, etc) and size (height) and even gender.

If you go from max height to minimum, it's a pretty dramatic change.
You can go from a tall person with 'normal shape' and change into a tiny person with wings, bug eyes, etc.


Paragon City Search And Rescue
The Mentor Project

 

Posted

Quote:
Originally Posted by Rajani Isa View Post
I think jade was meaning /bind with those /macros difference being one creates a power icon to use and binds change what a keystroke does.
Oops.

I didn't think, and copied the OP's post. Technically speaking, though, there's nothing wrong with the macros as typed, they would just be named "F". (Or "G") They would appear in your tray as clickable icons.

The only thing keybinds can do that macros can't is bind_load_file. And even that you can get around.

And yeah, you can get around 4 feet tall, although shrinking down to an insect probably Stealth is the best way to represent that. (Of course, since you're changing costume anyway you probably should shrink down AND go translucent)