The sequence you are looking for is 1520 3 x x -value, not literally the example sequence I gave. You can try find all "1520..." sequences and identify the right one ENDING with a negative number. If the code is more complicated and there's no negative value anywhere at the end of the sequence, then they use variables and it's too complex for you to do anything.
That -2 you changed to 0 is part of another instruction, you simply don't know what you are doing. It's probably part of a calculation to determine by how much to increase or decrease attributes, using a variable to store the value.
This is what happens in pseudo code:
change = change * (-2) // 2107 2 1224979098644774913 -2
change_some_attribute by (change) // 1520 3 ? ? 1224979098644774913 (it's a guess, since you cut off the instruction)
Anyway, if the same code both raises and lowers attributes (as above), and you want to keep one but get rid of the other, it's much more complicated to accomplish this. If you multiply the change by 0, you'll always get no change, as you found out. Just live with it.
You are right and this is futile anyway.
Don't do that! That -2 is not part of the 1520 operation, but a previous multiplication op (2107). It may work by luck or it may break your game.
As I said, this is what the sequence looks like "1520 3 0 0 -2", that's 1520 FOLLOWED by 4 numbers. The last (fourth) number should be changed to zero.
This is why people don't want to help with editing txt files, no one follows instructions.
I'll assume you have a deadly disease and have days to live, so deserve any help you can get - please don't make me a liar.
This is how to fix yout txt files to remove attribute decrease.
The problem code is probably in simple triggers, scripts or triggers .txt files, but it could be in game_menus or elsewhere too.
Here's the sequence to look for:
- troop_id is probably 0, which is you, the player
- attribute_id is 0-3, that are codes for str, agi, int, cha in that order
- the value is a negative number, that's how you lower attributes
- troop_raise_attribute code is 1520
So if for example your strength gets decreased by 2, the .txt sequence will be: 1520 3 0 0 -2
- 3 here is the number of arguments of the operation, it's always 3 for troop_raise_attribute, so it's always 1520 3 something
- the player number might not be 0, but some very large number if a variable is used, just don't panic when seeing one, it might refer to the player
So, how to fix this most easily?
Look for the "1520 3" sequence in all mod text files. There should not be too many. Concentrate on those that end with negative numbers, that's where someone's attribute is lowered. If you think you found a sequence where the player gets punished, simply replace the negative number with a zero, so that troop_raise_attribute does nothing.
Be sure to make backups of every file you change and be very careful when changing anything - it's easy to break the game and make it unplayable by making mistakes with direct edits like this.
I wish you gaming joy in your last days.
If this were the case, then I may have to figure out how to mod a module without the source code. I was planning to create a sub mod for Paradigm Worlds so I could modify the doomsday mechanic where every doomsday cycle no longer reduces the attributes of the characters.They are also not really helping you since they are not providing a full module system which you can compile again iirc.
Yes, but do you have the module system of that mod (aka source code)?
DId you compile the Native module system? Or the one of the mod for which you want to make a submod? And how does your file exp dir now look like?
You need the module system of the mod you are making a submod for. The module system contains .py-files and no .txt-files. It's not really possible to edit the script.txt file itself and have everything still working.
Take a look at the Ultimate introduction to modding for how to get started with the Module System (given that you have the one of that mod): https://forums.taleworlds.com/index...ion-to-modding-starting-out-read-this.240255/