How do you replace certain words in text?

Post » Thu Dec 03, 2015 6:59 am

ill be honest, im making a mod do replace all dialogue referencing you as an outsider / ashlander. Naturally, there's lots of dialogue to go through. I was hoping I could find it using something similar to Notepad++'s "ctrl + f" replace system.

Or perhaps there is an external program. Anyone able to help?

User avatar
Damien Mulvenna
 
Posts: 3498
Joined: Wed Jun 27, 2007 3:33 pm

Post » Thu Dec 03, 2015 5:31 am

Well, you can export dialogue by going to File-->Export Data-->Dialogue and then import it back again. You could try that. For just doing a simple replace all, that might work.

User avatar
Jenna Fields
 
Posts: 3396
Joined: Mon Dec 11, 2006 11:36 am

Post » Thu Dec 03, 2015 2:11 pm

You could also use tes3cmd. Here's an example script that replaces the word "Gold" with "Septims" in all dialogue:

tes3cmd modify --type INFO --sub-match "Response:" --replace /Gold/Septims/ Morrowind.esm

Just be warned that this is some pretty dangerous stuff which might net you unintended consequences. The above will, for example, also end up replacing dialogue like "Gold Kanet" with "Septims Kanet". ;)

User avatar
Lory Da Costa
 
Posts: 3463
Joined: Fri Dec 15, 2006 12:30 pm

Post » Thu Dec 03, 2015 7:13 am

Then, make sure "MaintainImportedDialogueOrder=0" is set to 1 in morrowind.ini.

User avatar
Melis Hristina
 
Posts: 3509
Joined: Sat Jun 17, 2006 10:36 pm


Return to III - Morrowind