From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{Header Nav|game=City of Heroes}}
{{Header Nav|game=City of Heroes}}
Here's one way to make multiple toggles activate with one key.
==Random Phrases==
This bind isn't so much a bind as it is a miniature 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.


:/bind <key> "+ $$powexec_toggleon Combat Jumping$$powexec_toggleon Fire Shield"
Ok, so now that you know what it is, here's how it looks.


What that will do is on the down press it will activate fire shield and on the release (if it's held long enough) it will activate combat jumping. You can use as many toggleons as you want, more than two will require multiple keypresses.
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


:/bind <key> "powexec_toggleon combat jumping$$powexec_toggleon fire shield$$powexec_toggleon fiery aura"
The batch file should look like this;
 
=random.bat=
<nowiki>@ECHO OFF </nowiki>
 
<nowiki>
:TOP
</nowiki>
 
<nowiki>
FOR /F "DELIMS=~~~" %%i IN (phrases.txt) DO (echo %%i>blank.txt)&&SLEEP 1&&ECHO %%i
</nowiki>
 
<nowiki>
GOTO TOP
</nowiki>
 
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=
<nowiki>
F10 "em dance$$Local Hi!$$bind_load_file C:/cohbind/target.txt"
</nowiki>
 
<nowiki>
F10 "em wave$$Local My name is $name, who are you today?$$bind_load_file C:/cohbind/target.txt"
</nowiki>
 
<nowiki>
F10 "em shrug$$Local How are you today?$$bind_load_file C:/cohbind/target.txt"
</nowiki>
 
<nowiki>
F10 "Local S'up?$$bind_load_file C:/cohbind/target.txt"
</nowiki>
 
<nowiki>
F10 "em frustrated$$Local GRAAAAAAAAAAAAAAAAAHHHHHHHH!!!!!!!!!!!!!!!!!$$bind_load_file C:/cohbind/target.txt"
</nowiki>
 
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.

Revision as of 19:39, 21 September 2009

Random Phrases

This bind isn't so much a bind as it is a miniature 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.