test content
What is the Arc Client?
Install Arc

Random Catchphrase Generator :P

kyeto13kyeto13 Posts: 3 Arc User
edited November 2012 in Controls and Interface
So, I had this kooky idea to have a key binding that uses a random number generator to spit out one of 5 or so catch phrases into local chat. Hit one key and your hero will say "That's gotta hurt!" or "Take that, fiend!" or whatever else you code in...

My only problem is that I am not sure how to code that Random number generator into a keybinding. I am not familiar with macros but I have done a fair bit of keybinding over on Star Trek Online.

So... is there a way to create a random number generator in a bindfile or as a macro :biggrin:
Live on Earth. Work in Space. Play with Dragons. Join the best add on to STO, the Neverwinter holodeck program! Only 14 GPL a month.
Post edited by kyeto13 on

Comments

  • vorshothvorshoth Posts: 603 Arc User
    edited November 2012
    Hmm. What you need is a pre-set list of catchphrases, and then have a button to loop through one each time, not too different from the colour change-each-power keybind I saw around here once. The only problem there is that you'd get the same sequence each time, so maybe you'd need to make the sequence longer and occasionally start from different points?
    I can't remember without checking a bunch of guides how it'd be written properly, but say that we have catchphrases

    1
    2
    3
    4
    5


    So, you'd have a text document binding you to speak in local whenever you press Y, saying a different one each time,
    so

    Press Y
    1,
    Press Y
    2,
    Press Y,
    3.
    etc.

    Then, you'd need to make it more complicated, so,

    Press Y,
    5,
    Press Y
    1,
    Press Y
    4.

    And so on, until you've got a complicated muddle of stuff that seems random although isn't.

    Best thing you can do I think is to run off a series of random numbers from a generator, then make a long series of catchphrases in a list, then work on making the text bind files to do it. Sorry that I can't remember how to actually do it, look for the rainbow colour changing thread, it's the closest thing to what you're after, I think, but with talk rather than colours.
    [SIGNATURE REDACTED]
  • kyeto13kyeto13 Posts: 3 Arc User
    edited November 2012
    Meh, I can live with the same sequence over and over. I can mix up the order if every once in awhile.

    I found the color change keybinding a few days ago, but i wasn't sure if it would work. One thing I DONT want is one keybind per catphrase, making a good chunk of my keyboard catchphrases. One key and it says something awesome and cheesy. That is all I'll need.

    I'll hunt through for the keybindings to that and I'll post the results here if it works.
    Live on Earth. Work in Space. Play with Dragons. Join the best add on to STO, the Neverwinter holodeck program! Only 14 GPL a month.
  • kyeto13kyeto13 Posts: 3 Arc User
    edited November 2012
    And the Verdict is... Kickass!!!

    Following much the same instructions as the Rainbow Powers, with a few twist, you can get this started.

    1. Save your bind file by going in game and typing "/bind_save_file <insert name>" in the chat without quotes. This ensures that any customs binds you have go with it.

    2. Go to Cryptic Studios\Champions Online\live folder. and open said file in notepad.

    3. After you have cleared out the <"null"> and replaced them with <""> as needed, copy this into the folder. "<key> "Local <Catchphrase>$$bind_load_file <Bindfile name2>" Fill out as needed. This will default say your epic catchphrase in Local Chat and then load the next file in the sequence.

    4. Save the new file and go back to the explorer. Right click the file, and then copy paste the whole file over. Do this as many times as you have a catch phrase, but keep count. I did 4 to start out.

    5. Open one of the new copies. Go to where the catchphrase is. Overwrite a new catchphrase. And then tell it to go to "Bindfile (next number)"

    6. Save the file as is, and then right click and Rename the File "Bindfile (current number).

    7. Repeat steps 5 and 6 until you get to the last file.

    8. When you get to the last file, instead of the next number, set the command to the original bind file in the list. This will make a loop.

    9. Go back into Game chat and type in "/bind_load_file <Bindfile1>" Without quotes. Then , tap your catchphrase key and you should get a new catchphrase every time.

    Have fun, and don't spam ;)
    Live on Earth. Work in Space. Play with Dragons. Join the best add on to STO, the Neverwinter holodeck program! Only 14 GPL a month.
Sign In or Register to comment.