test content
What is the Arc Client?
Install Arc

Way to bind sayings to Attacks

Archived PostArchived Post Posts: 1,156,071 Arc User
edited September 2012 in Controls and Interface
I want to charge up an attack and when it goes off yell something. Automatically. I saw a thread a while back but I lost it where it said how. Some help please?

O i found it but need help understanding how it works. its
/bind <key> "saying"
thats what i copyed down i tryed now and didnt work. doing something wrong.
Post edited by Archived Post on

Comments

  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    Oh my god, please don't do this. Maybe you can set it so whenever you attack you whisper the saying to yourself.
  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    /bind key "local Text here$$powertrayexec #"
  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    Totec wrote:
    Oh my god, please don't do this. Maybe you can set it so whenever you attack you whisper the saying to yourself.

    I dig what this person wants to do, but would add this.
    get more then one phrase for the power.
    IF this works at all like CoH you can have the chat/power bind include changing the bind as well so you can have many phrase that get cycled one at a time when you use the power.

    I would even include a few blanks for the phrase so you are not too spamy.
  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    Tzeth wrote:
    /bind key "local Text here$$powertrayexec #"
    Can you explain how that works and how to work it with a build switch? I'm looking to do the same kind of thing but with my three main builds (general soloing, pure offense, pure support).
  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    I don't know if or how this would work on CO, but on text muds we used to do something like this...

    alias k kill1
    alias kill1 kill $*$; say Saying 1; alias kill kill2
    alias kill2 kill $*$; say Saying 2; alias kill kill3
    alias kill3 kill $*$; say Saying 3; alias kill kill1

    ((Works in Realms of the Dragon and most other LPMuds that have in-game aliasing, but you have to turn off ';' parsing in your telnet client))

    This would set up a cycle so that each time you did "k", the game would alias it to the next command on the list, and your saying would cycle between the three.

    So, as long as you can bind a /bind expression to a key, you should be able to do this.
  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    Like CoH/CoV, Champions Online uses a similar /bind syntax for their keybinds. So to do the above attack bind config, you can do the following.

    Make 3 config.txt files (or how ever many number of snappy sayings you have) and name them:

    Attack1.txt
    Attack2.txt
    Attack3.txt

    The Attack1.txt is gonna have:
    Say "Attack Saying 1" $$ PowerTrayExec <Tray #>$$Bind X bind_load_file Attack2.txt

    Attack2.txt is gonna have:
    Say "Attack Saying 2" $$ PowerTrayExec <Tray #>$$Bind X bind_load_file Attack3.txt

    Attack3.txt is:
    Say "Attack saying 3" $$ PowerTrayExec <Tray #>$$Bind X bind_load_file Attack1.txt

    Then type in the console:

    /Bind <button> bind_load_file Attack1.txt

    So now each time you press X (or whatever button you bind the command to) it will cycle down each config file and perform the commands until it reaches the last one then it will rebind the button to the first one again.

    Just keep in mind that the tray # for the powers start with Tray 0 (thats zero). So power tray 1 is actually tray 0, power 2 is tray 1, power 3 is tray 2, etc....
  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    Is there a way to "say" something but not have it show up in chat? That way, people who want to do this can avoid spamming up the chat box of people around them.
  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    _glook wrote:
    Is there a way to "say" something but not have it show up in chat? That way, people who want to do this can avoid spamming up the chat box of people around them.

    Well, if you are just doing this for flavor, you can create a chat channel and join it all by your lonesome. Name it something short, like "MYSPAM" or something like that. Then replace all the SAY commands with "Chan MYSPAM". Chan is short for channel but I'm sure you knew that....

    That way your only spamming yourself and noone else will see it :D
  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    You could also have some, or most, of the binds in the cycle not say anything.
  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    shamsael wrote:
    You could also have some, or most, of the binds in the cycle not say anything.

    Yes.

    What has worked for me(CoH nothing created yet for CO):

    A: a lot of cool/funny/diverse/even helpful things to say
    B: include plenty blank says(60/40-blanks) too so your not a chatter box
    C: say only to the team(this is helpful for not public spamming)
  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    _glook wrote:
    Is there a way to "say" something but not have it show up in chat? That way, people who want to do this can avoid spamming up the chat box of people around them.

    playerSay I think the command is
  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    dakuth wrote:
    playerSay I think the command is

    Whoa, I didn't actually think there was a way. Thank you, I'll give that a shot.

    Edit: It totally works! Thanks!
  • natasholinanatasholina Posts: 1 Arc User
    edited September 2012
    Make 3 config.txt files (or how ever many number of snappy sayings you have) and name them:

    .

    where do we put these cfg files? I'm looking for a spot in cryptic folder and cant find it

    Please help
  • flyingfinnflyingfinn Posts: 8,408 Arc User
    edited September 2012
    This is the thread you're looking for. *jedi handwave*
    http://co-forum.perfectworld.com/showthread.php?t=81117

    And please try not to necro threads over 3 years old. (the date is under the post #)
    CHAMPIONS ONLINE:Join Date: Apr 2008
    And playing by myself since Aug 2009
    Godtier: Lifetime Subscriber
    tumblr_n7qtltG3Dv1rv1ckao1_500.gif
    Get the Forums Enhancement Extension!
Sign In or Register to comment.