Understanding Strings
Raduziel
Member Posts: 4,714
Let's say that I'm checking an opcode (like 267) that have as a parameter a string.
Where can I see what text this string is related to?
I tried to check the Dialogue.tlk using Notepad, but I'm having no success - maybe I'm doing something wrong.
Let's say that the opcode 267 is related to string 26018. I open the dialogue .tlk and search for the row #26018, but the text that displays there doesn't make sense for the opcode propose (in this case, the monk's disease immunity).
Thanks!
Where can I see what text this string is related to?
I tried to check the Dialogue.tlk using Notepad, but I'm having no success - maybe I'm doing something wrong.
Let's say that the opcode 267 is related to string 26018. I open the dialogue .tlk and search for the row #26018, but the text that displays there doesn't make sense for the opcode propose (in this case, the monk's disease immunity).
Thanks!
0
Comments
I can't tell you what 26018 is because it's different in my game than in yours.
Thanks for the reply. Is there any way to use DLTC instead? Because IDK even how to open NearInfinity.
Because 26018, for example, is a string for the vanilla monk in a vanilla install.
I thought that mods just added more strings, leaving the original ones intact (I mean, except for overhauls mods).
In BGEE/SoD the 26018 says *Haste* >>> makes sense as opcode 267 disable diplay string xxx where here xxx is haste. Fits for monk.
I'll explain: my kit gains disease immunity. I was able to prevent him/her from becoming diseased, prevent the disease icon from showing at the portrait/character sheet, but IDK wich string to block with opcode 267 to prevent the log from saying that the character is diseased.
My idea was to look at the monk's disease immunity and ditto those strings, but the same spell that bans disease also gives free action and there are severals opcodes 267 associated with one string each, but IDK which one is related to disease immunity and each one is related to free action.
Because I was building an ability for the Predator based on the fact that the strings were the same (and now I know that they aren't).
My solution by now is creating three different installers, one for BGEE-SoD, other for BG2EE and another one for IWDEE (this one will probably need to happen because the Undead use different EA there and one of the abilities of the kit checks the EA to give an AC bonus.
And @PaulaMigrate thank you very much for the info. Can you tell me if EET uses BGEE or BG2EE strings?
What if I have more than one opcode entry per spell?
One of the kits abilities has 7 opcodes 267 entries (because it combines Negative Plane Protection with Remove Fear), for example.
Each column is the value of the parameter #1 for every Opcode 267 in each game.
The one thing to be careful of (especially in the vanilla games) is that there are often duplicates of a given string and you may end up not blocking the one that spells use with this method (i.e. BG2 has, I think, five instances of a "Sleep" string).
Like that?
[spoiler] [/spoiler]
Right now my tp2 doesn't ask for a game check (if it is BGEE, BG2EE, IWDEE), do I need to add one too?
Better?
It sure looks better.
About NearInfinity, I do have Java, I've downloaded NearInfinity.jar, it shows a java-program-icon, but when I double click it, it just opens a quick prompt window that closes immediately.
I'll try to find the "Diseased" strings for BG2EE and IWDEE the hard way, I guess.
I know I'm saying that a lot, but thanks for all the help.
Mod's ready, I'll just do some quick test in all four games (IWDEE, BGEE, BG2EE, EET) before releasing v1.
http://gibberlings3.net/forums/index.php?showtopic=28834&st=0
I have updated this for most effects to account for (EE) games. I'll be posting them shortly on that thread, but here is fear, disease and level drain:
/
If you just want to use clone/alter effect, you can still use this. The relevant strings are here...
i.e. after every "267" you will find the stringrefs for each notification as described after the "//"
e.g., the very last line is:
267, 25806, "-10", "same", "-10", "-10", "same" => 1 // protection from string "five levels drained" (BGEE). (bold added)
i.e. the stringref for "five levels drained" in BGEE is "25806"