My problem is quite simple: I want to make every creature in the game heterosexual and interested in marriage, so I can couple histfigs naturally. I'm planning to use this to make family forts and other gimmicks like coupling together any "visitors" I receive, from regular mercenaries to invading minotaurs and cyclops, and even animal creatures that I'll use a script to make join my civ. This also should make couples way more frequent in legends mode.
My first solution was to use the fix-ster script every once in a while while running the fort, but I want something permanent. Plus, the script doesn't quite work for arranging marriages as it only modifies the unit's orientations and doesn't change the histfig data.
I learned about the [ORIENTATION] tag, that make creatures generate with the desired orientation, instead of me having to edit them, so I went on to modding the raws.
The way I found to do this was by finding and replacing every single txt in the raws folder:
find "[MALE]"
replace by "[MALE] [ORIENTATION:FEMALE:0:0:100][ORIENTATION:MALE:100:0:0]"
find "[FEMALE]"
replace by "[FEMALE] [ORIENTATION:MALE:0:0:100][ORIENTATION:FEMALE:100:0:0]"
It worked perfectly, but I can't help feeling it was a very inneficient way to go about it. Hence the question: when I want to edit a specific thing about every creature (or a large specific group of them), is there a better way to do it than doing it one at a time, txt per txt?