Hi, is there some way to quickly find and replace things?
I have made a copy of an event, but want the variables in the new event to be called something different. Instead of going through every event page changing the variable names, one by one, is there a way to replace them all at once?
You could open the JSON in a text editor, but I don't know of a good way to find and replace only in a portion of that file. It's tedious, but probably just easiest to do it manually...you'd likely be done by now 😉
It does take some time to familiarise yourself with how the files work before you can do stuff like this, but ihmo it's definitely worth it.
I'll assume you have a text editor with a find-and-replace function.
0. Close the editor if you have it open
1. In your project data folder, find the file for the right map (they have IDs in their names)
2. Copy it somewhere else, so that you can bring it back if you mess up
3. In that file, search for "id":42 (replace 42 with the id of your event)
4. Cut that line and paste it in a new file
5. In that new file find-and-replace the old variable id with the new one; make sure to look at each instance before replacing to make sure it's actually the id of a variable (so not the number following "code" for example).
6. Copy it and paste back into the original file. Save, open the editor, and enjoy your changed event.
Though if you're planning on doing specifically this a lot, you might want to look into a self-variable plugin.