O great codemaster, please give me the necessary commands for editing.
Note that this is using CHROME ONLY! Firefox has a console too, but it doesn't directly let you change values. You'll need some sort of twine extension to make it work, which is probably a whole other pain in the ass.
Use the Regalia version, hit F12 to open that console on the right side. Type TheGame, and hit Enter. Then a bunch of threads show up. That screenshot shows them having typed TheGame.Variables[307] before hitting enter, which I didn't know was possible, which should skip the hunting of threads if you already know the variable you're looking for out of like 5000. The Variables are grouped by 100's if I remember correctly, and the vast majority of what you'll probably want are in Variables 307,
307 309, and I think (294 or 296) and (262 or 264).
So in that screenshot you see how line 3 shows a list of traits? If you expand it, it'll show 20 or so lines with some having those traits. Each line is one of your slavers. The 0 line will be blank or placeholder, the 1 line should correspond to the leader, and down the list of slavers. So that's Variable 307>2>1 =leader's traits.
If you want to edit a slaver's traits (say slaver Ghyran Silverborn from that screenshot), look back to line 307>0, which shows a list of names. 307>0>0 says placeholder, 1 is leader's name, 3 is Silverborn. So he's gonna be row 3, and that corresponds to all variables. So go back to 307>2>3 (third line in the 2nd variable of the 307 array) and look at the 3rd line. That list will be Silverborn's traits.
You will also notice that the line directly below the traits shows a bunch of abbreviations, as well. Like right below where it shows the trait 'Debutante' in 307>2, it says (Deb) in 307>3. I've always edited BOTH of these variables when changing traits, and I've never had issues adding or removing standard traits (not unique traits, those are a whole other ordeal). I don't know if one variable line is dominant over the other, so I just do both and for the most part it has worked.
SIDE NOTE: Somewhere in the Variables (I think in the 200's variables, I mentioned, but it might be 309) is a variable that says 'Max number of traits.' You should also make that higher if you want to add a billion traits to yourself or slavers.
When looking at a variable group (like 307 in the screenshot) pay attention to the variable name. At the end of the very 2nd line from the top in that screenshot, it says varname: 'Slaver Array'. Those names will help you find whatever you're looking for. 309 I think is Slaver Array 2, and it pertains to number variables for the slavers, while 307 has the non-number things like names. Somewhere under each main (like 307,309) variable group is a list of what each of the lines actually does, if the context clues can't tell you, but I forget exactly where. I think it's scrolled down a little from where the screenshot ends.
Anyway it's a whole fuck-ton of trial and error. I don't know shit about coding but I figured out how to edit a lot of the basic stuff with time.