Freedom Reborn Archive

City of Heroes/Villains Forums => CoH/CoV General Discussion => Topic started by: Uncle Yuan on March 20, 2007, 08:01:16 PM

Title: Bind help
Post by: Uncle Yuan on March 20, 2007, 08:01:16 PM
So I have a toon that I just created a street clothes "costume" for, and I'm thinking a bind to switch back and forth to his costume would be cool.  I'm thinking of  - activate power name Slash, say "corny phrase", switch to costume slot "x".  And if things work like I think they do, I should be able to repeat the strings with "corny phrase 2" and swtich to costume slot "y" to toggle back (within the costume switch time limit).

Any good bind syntaxians willing to take a crack at this?
Title: Re: Bind help
Post by: captainspud on March 20, 2007, 10:27:57 PM
/bind KEY "powexec_name Slash$$local CORNY PHRASE$$cc SLOTNUMBER"
Title: Re: Bind help
Post by: Uncle Yuan on March 21, 2007, 03:10:07 AM
I'll give it a whirl!  Thanks CS!

For the costume slot, all I need is the actual number - "cc 2" will get me the costume in slot 2?
Title: Re: Bind help
Post by: BlueBard on March 21, 2007, 07:53:29 AM
Cool!  This is exactly what I needed to know!
Title: Re: Bind help
Post by: captainspud on March 21, 2007, 08:46:18 AM
cc 2 gives you slot 3. The first slot is labelled 0.
Title: Re: Bind help
Post by: Raptor on March 21, 2007, 11:40:30 AM
One issue people have with doing costume changes this way is that all 3 things happen exactly at the same time, so the power's animation delay actually causes the costume change to happen before the power is executed. 

A work around that people have found is to bind the corny saying and power activation to the key you want, but to bind the actual costume change to the RELEASE of the same key.  So you manually hold your chosen key down until your power's animation is in full swing and then release it for the costume change.

I have not done this personally, so I have no clue how to bind to the release of a key,  but I know its being done.
Title: Re: Bind help
Post by: captainspud on March 21, 2007, 12:09:54 PM
Binding to release works like this:

/bind KEY "powexec_name Slash$$local CORNY PHRASE$$+cc SLOTNUMBER"

It's either one or two plus signs (each does something different, I can't remember which is "on release").
Title: Re: Bind help
Post by: Uncle Yuan on March 21, 2007, 12:28:13 PM
While we're on the subject, what is the bind command for a particular emote?  (I may use an emote rather than a power activation with this depending on how the power activation looks.)


What I'd really like is to have an emote where he lifts his sword over his head.  Then I could have him cry "By the power of Greyskull" and switch into his costume!  :cool:
Title: Re: Bind help
Post by: Stopman on March 21, 2007, 12:35:47 PM
Bind commands separated by $$ execute in reverse order first. So write is like this:

/bind KEY "cc SLOTNUMBER$$powexec_name Slash$$local CORNY PHRASE"
Title: Re: Bind help
Post by: BlueBard on March 21, 2007, 12:42:10 PM
It's /emote emotename (or just /em emotename).  There's another shortcut key for chat, don't recall what it is, but it's recommended to use the full command in a bind to avoid issues.

You can also emote 'phrases' as thought bubbles, like "I'm thinking".

So you'd do something like:    /bind KEY "emote raisehand$$say By the power of Greyskull!$$cc 1"

or:                                     /bind KEY "emote Does this outfit make me look fat?$$cc 1"

I don't know if raisehand is a valid emote name, just threw that in there.  I'll have to try the key release thing.
Title: Re: Bind help
Post by: Camma on March 21, 2007, 03:05:43 PM
Quote from: BlueBard on March 21, 2007, 12:42:10 PM
There's another shortcut key for chat, don't recall what it is

It's ;

Quote from: BlueBard on March 21, 2007, 12:42:10 PMbut it's recommended to use the full command in a bind to avoid issues.

;agrees  ;)
Title: Re: Bind help
Post by: Verfall on March 21, 2007, 03:39:58 PM
Quote from: Uncle Yuan on March 21, 2007, 12:28:13 PM
While we're on the subject, what is the bind command for a particular emote?  (I may use an emote rather than a power activation with this depending on how the power activation looks.)


What I'd really like is to have an emote where he lifts his sword over his head.  Then I could have him cry "By the power of Greyskull" and switch into his costume!  :cool:

Actually having a weapon drawn causes problems with emotes. often they'll start to animate, than get immediately interrupted, since having a weapon drawn keeps you in the "ready" emote, which overrides most emotes. For example, after you immediately kill a mob, try to sit down. You'll start the animation, but right away you'll be interrupted and will go back to the ready pose.
Title: Re: Bind help
Post by: MyndVizion on March 21, 2007, 03:49:06 PM
There is a "cheer" type of emote that works with a sword in hand nicely. Basically the toon raises both arms above their head and pumps both hands - as though cheering.  It's not a single sword arm raise for something like He-Man but it might work well for what you're looking for.
Title: Re: Bind help
Post by: Uncle Yuan on March 21, 2007, 04:55:26 PM
I was actually considering using an emote instead of the power animation, but the cheer thing sounds cool.  I'll see if I can make that work!
Title: Re: Bind help
Post by: Uncle Yuan on March 21, 2007, 06:31:04 PM
Quote from: captainspud on March 21, 2007, 12:09:54 PM
Binding to release works like this:

/bind KEY "powexec_name Slash$$local CORNY PHRASE$$+cc SLOTNUMBER"

It's either one or two plus signs (each does something different, I can't remember which is "on release").

Thus plus sign thing doesn't seem to work - I get some error message about args