Where can I find the .py files of a given module? Because I couldn't find the .py files of the module I'm trying to edit.
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_raise_attribute,<troop_id>,<attribute_id>,<value>)
- 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.