City of Heroes/Binding

Random Phrases
This bind isn't so much a bind as it is a minature progam. What it does is pretty cool in my humble little opinion. When you press the key designated in the file, any one of the many phrases that you wrote (and possibly emotes or power executions... see the guide to binds for other ideas of things that you can randomize) will come up. I'd suggest using several different sayings, as they can get annoying if repeated, the more you think you're going to use it, the more sayings you should put in there.

Ok, so now that you know what it is, here's how it looks.

You need two text files, one will be empty. For the sake of simplicity, I'll use blank.txt for the loading file and phrases.txt as the listing file. Place both of these files in the same folder, I'll use C:/cohbinds

The batch file should look like this;

=random.bat=

@ECHO OFF
 * TOP

FOR /F "DELIMS=" %%i IN (phrases.txt) DO (echo %%i>blank.txt)&&SLEEP 1&&ECHO %%i

GOTO TOP

This file should be in the same folder as your two text files.

The phrases.txt is where all the magic is done. The cool thing about this setup is that you can have different emotes attached to each saying... the drawback is that you have to have a longer file... Example:

=phrases.txt=

F10 "em dance$$Local Hi!$$bind_load_file C:/cohbind/target.txt" F10 "em wave$$Local My name is $name, who are you today?$$bind_load_file C:/cohbind/target.txt" F10 "em shrug$$Local How are you today?$$bind_load_file C:/cohbind/target.txt" F10 "Local S'up?$$bind_load_file C:/cohbind/target.txt" F10 "em frustrated$$Local GRAAAAAAAAAAAAAAAAAHHHHHHHH!!!!!!!!!!!!!!!!!$$bind_load_file C:/cohbind/target.txt"

You can replace 'Local' with 'say' and it will be said in the current channel, you can use any button in the place of F10... I'm just used to F10.

blank.txt is... blank, but there has to be an empty text file by that name to start with.

Make SURE that the program is running and you type "/bind_load_file C:/cohbinds/blank.txt" (not phrases.txt, that would just mess it all up) in the game before trying this.