-
Posts
7 -
Joined
-
I just wanted to post a "big thank you" to you for this guide!
It was very instrumental in helping me decide to go with a rad/rad defender for my latest toon (instead of a blaster).
I had the good luck to team for several hours yesterday, taking my toon from level 10 to level 14, and I must say: I had a blast !!
Of course, being on some well-balanced teams has helped, but I thought it was fantastic that I could be of help to the team in just about any situation. Whether it was buffing with AM, rezzing a fallen comrade with Mutation, debuffing a crowd, or just sitting back and blasting-away, I felt like I was the Swiss-Army-Knife of the team! (Which is exactly what I wanted for a toon that is a robot!)
So, thank you again for posting this guide!
-= Dave =- -
I take it that that character limit of 1119 characters for your backstory must also count each blank line as a character or something?
I just used that online character counter tool to limit myself to 1119 characters (and spaces). Went to the game, cut-and-pasted it in, and found my text was cut off by 100-200 characters!
I sure wish they'd assigned more room to this field. -
Hmmm.... what text editor are you using?
I've heard funky things can happen if you're using Notepad. -
My favorite weapon is.... PITY !!
(Otherwise known as "Taunt", but I add lots of comments and wise-cracks-full-of-pity to my Taunts.)
<grin!> -
[ QUOTE ]
Well first glad to help.
As for the "$$bind_load_file C:\kb\target.txt" command at the end of each bind, it forces the game to reload the bind from the target text file each time.
Normally when a bind is created it becomes part of the character file in game. So if you loaded a bind from a keybind text file, it never looks back at the original text file, unless prompted to do so.
As for the second question... yes you need to either create the binds in game or load it from a keybind file.
You could create a keybind text file called "RGF.txt" for randomly generated files. In that file you could set the binds for each bind command.
Shift+T "bind_load_file C:\kb\target0.txt"
Shift+F "bind_load_file C:\kb\target1.txt"
Shift+S "bind_load_file C:\kb\target2.txt"
You then could make a macro that will load the RGF.Txt file. This would also reset your binds if they start developing errors or not working properly.
/Macro RGF "Tell, $name Loading RGF file.$$bind_load_file C:\kb\RGF.txt"
If you use the macro you usaually have to hit the keybinds twice, i.e. hit SHIFT+T twice. The Loading of the RGF file points to the appropriate target file. Hitting the key a second time gets the expect respone.
If you have a power like taunt bounded to a key you could modify the RGF file.
Shift+T "target_enemy_near$$powexec_name Taunt$$ bind_load_file C:\kb\target0.txt"
This way it will taunt, but without your witty saying. Then the next time you hit the key it will being looking at the appropriate target file, that will say your random phrase and taunt.
[/ QUOTE ]
I see, so when I hit my trigger key, I'm EXECUTING a command that was previously loaded a few seconds ago... and I'm then immediately READING/LOADING the next phrase I'll use in the future.
Very interesting!
Hmmm... I think I won't worry about the macro and will try typing it in manually for now. I wonder, though, if there isn't a way to get the batch file to read each phrase file, count the number of lines in it, and load its "Random0", "Random1" and "Random2" variables with those counts. ??
Hmmm.... I may look into that.
Thanks!
And thanks to everybody who has posted / is posting in this thread! This idea of phrase rotation sure makes it easy to roleplay one's character... without having to come up with things to say on-the-spot all the time!
-= Dave =- -
[ QUOTE ]
My revised method will select a random phrase from file 1 add it to target 1. Basically the Random number step uses that number to go to that line in the Random Phrase File. So if 5 was the random number, the program will go to the fifth line of Random Phrase File 1.
That is why it is important to list the number of random phrases in a file so the program will know the highest random number it can select.
The "Skip" step tells the command line to the start at the generated random number assigned to the script, e.g. 5. The "For F/..." post the phrase in the target file, but the "goto Step 1" tells the program to stop the "For" loop after posting to the target phrase file and proceed to the next step which is the next "For /F..." command.
Without adding the "goto Step 1" on the same command line, the program would loop start at the fifth line and process the remaining Random Phrases files, before for moving to the next "For /F..." command.
So basically each second will post a random file phrase to a target file. So "Target0.txt" will get one random phrase selected from "Phrases0.txt", then move on to posting a random phrase from "Phrases1.txt" to "Target1.txt". From there the next step of selecting a random phrase from "Phrases2.txt" to "Target2.txt" and the "Goto Top" line will restart the process.
So Setting the "Random#" to equal the number of phrases will get you your number range.
The "Skip" command will start at the selected random number in the random phrase file.
Having the "Goto Step..." command as part of the "For /F..." will break the "For" Loop after the first randomly selected phrase is added to the target file and proceed to the next "For /F..." step.
Without using "Random", "Skip", "Goto Step" then two or more "For /F..." will run sequencially. Completing the For loop for each random phrase file before moving on to the next random phrase file, basically getting the results you are getting.
Though the program I set up looks complex, I tried to make it so it could expand within a defined pattern.
I hope I answered you questions. If not please let me know.
[/ QUOTE ]
Thank you very much, Darc_Reign ! This has gotten me exactly what I wanted!
Now, I'd just like to clarify something: In the actual phrases file, at the end of each line, what does this phrase actually DO?
$$bind_load_file C:\kb\target.txt
I realize that this is basically the command I need to type into the chat window when I initially log into the game and I want to make these keys / key-phrases work.
So, I'm thinking, it needs to rebind the same key again after each command?
Also, I take it this means, if I'm using three phrase files, like in your example, then when I log into the game to play I must manually type ALL THREE bind_load_file commands?
Have you found any way to condense those three commands into ONE command?
Thanks!
-= Dave =- -
Champion,
Regarding the batch file method you posted earlier:
[ QUOTE ]
Here is the next method of multiple phrases and multiple target files.
Muti-Target.bat
<ul type="square">
@Echo Off
:TOP
Set Phrase0=Phrases0.txt
Set Phrase1=Phrases1.txt
Set Phrase2=Phrases2.txt
SET Target0=Target0.txt
SET Target1=Target1.txt
SET Target2=Target2.txt
SET Random0=26
SET Random1=7
SET Random2=3
SET /A T=(0+(%Random0%)*%RANDOM%/32767)
SET /A F=(0+(%Random1%)*%RANDOM%/32767)
SET /A S=(0+(%Random2%)*%RANDOM%/32767)
SET Z0="Skip=%T% DELIMS=~~~ "
SET Z1="Skip=%F% DELIMS=~~~ "
SET Z2="Skip=%S% DELIMS=~~~ "
If %T% EQU 0 SET Z0=" DELIMS=~~~ "
If %F% EQU 0 SET Z1=" DELIMS=~~~ "
If %S% EQU 0 SET Z2=" DELIMS=~~~ "
ECHO.
For /F %Z0% %%U In (%Phrase0%) Do (echo %%U>%Target0%)&&ECHO %T% %%U&& sleep 1 && goto Step1
:Step1
For /F %Z1% %%X In (%Phrase1%) Do (echo %%X>%Target1%)&&ECHO %F% %%X&& sleep 1 && goto Step2
:Step2
For /F %Z2% %%V In (%Phrase2%) Do (echo %%V>%Target2%)&&ECHO %S% %%V&& sleep 1 && goto top[/list]
This method is if you want powers/Taunts of different type or even different binded keys.
For example "Shift T" handles my taunts, "Shift F" comments about upcoming battle and "Shift S" after battle comments. The alt that uses this is an RP-light alt. I could combind them in one file, but someone earlier asked if mutliple phrases and Targets could be done.
Also I could keep the multiple phrase files and one target file, but there may be issues with that.
The key to the multitple files is the "Step 1 & Step 2".
When it comes to the generating a single phrase, Goto STEP1 tells the program to generate a Target0.txt bind then go to the next step. Which generates a Target1.txt bind then goes to STEP2. That run the next Target2.txt and then starts over at the top when done.
The batch output groups the three binds on screen then "ECHO." add a Return to separate each run. Again its more for visual clarity than anything else.
Of course you need a add binds to the game to link to your new binds, but other than that, that's it.
This new method has only been tested on XP machines so your mileage may vary.
[/ QUOTE ]
Will this effectively cause each of the three target files to get written to randomly every second or two?
Just wanted to clarify... as I just finished trying a previously-posted method:
@echo off
:TOP
for /f "delims=~~~" %%i in (fight_human_phrases.txt) do (echo F5 "local %%i$$bind_load_file C:\kb\target.txt">target.txt)&&sleep 1&&echo %%i
for /f "delims=~~~" %%i in (win_human_phrases.txt) do (echo %%i>target2.txt)&&sleep 1&&echo %%i
GOTO TOP
And what that seems to do is sequentially take 1 second to write each of 30 phrase lines I have in the first file... out to the first target file. Then, when it's finished, it goes and does the same thing with the second file. So, the longer each file is, the greater your odds are of having ONLY THE LAST PHRASE in each target file.... when you call upon it by hitting your "trigger key".
Thanks!
-= Dave =-