I am wondering if it is possible to replace all instances of the string '\\n<Molly>' with '\\n<\\C[32]Molly>' in the common events database and have it persist. Is there a way to do this without impractically changing each one manually? Thanks.
replace string in common events database
RPG Maker MV SupportAny good text editor is able to do that.
1. Backup your project (in case you mess something up)
2. Close RPG Maker
3. Use Visual Studio Code (or any similar text editor) to open your project folder
4. Press Ctrl+Shift+H, or whether shortcut corresponds to "Find and replace in folder" in your program
5. Type
1. Backup your project (in case you mess something up)
2. Close RPG Maker
3. Use Visual Studio Code (or any similar text editor) to open your project folder
4. Press Ctrl+Shift+H, or whether shortcut corresponds to "Find and replace in folder" in your program
5. Type
\\n<Molly> in the first box, \\n<\\C[32]Molly> in the second, press enter.I tried that approach. When I reload the game (in RPG Maker) then it doesn't persist. The old text replaces the new text when the database updates.
It still shows the the name box without the color change. I don't know why.
Fixed! Thanks!! The issues were:
- I didn't close RPG Maker first
- One map had dialog that was not stored in a common event
- I didn't close RPG Maker first
- One map had dialog that was not stored in a common event
Use Notepad++ and open all your data files then do a find and replace in all files for the strings.
I do it all the time when I want to rename something globally. You need to do the same in any plugins like quest journals that also get referenced.
Hope this helps! Glad we're still helping right up to the end ngl <3
EDIT: Lol, I didn't see that it was already solved. What a fitting finale.
I am stuck again. I want to change it using Yanfly's hex codes. I can get it to work in the engine, but it breaks the code when I try to copy / paste in Visual Code Studio.
\\n<Molly>
\\n<\hc[66CDAA]Molly> (This does not work, but something like this to set the hex code to the name box. Any idea how to fix?)
\\n<Molly>
\\n<\hc[66CDAA]Molly> (This does not work, but something like this to set the hex code to the name box. Any idea how to fix?)
fixed
Never mind, giving up. This is corrupting other text formatting. Hours of life I will never get back. 🙁
Copying \\n<\\hc[66CDAA]Molly> fixed the code issue, but created other text formatting issues that I don't understand how to fix. Do I need to re-assign the color to white after the name box?
The italics text now looks like [6]italics[6] instead of italics. 🙁
Original thread: https://forums.rpgmakerweb.com/threads/replace-string-in-common-events-database.184086/