Organise Common Events

I'm well into my first game, and it's been a learning exercise. Since I didn't know what I didn't know, there is a lot under the hood which has become hard to organise. I've learned to group enemies and troops by area, and group their skills. It's made it a lot easier to find and retool them. However, the Common Events are all over the place. I've got quality of life events mixed in with skills and action sequences and general UI effects... it's a mess.

I'd like to reorganise them, but that would require a major editing of all cutscenes, skills, etc. Is there a tool available to do all this dogsbody work?
There is not a true way of getting rid of this dogsbody job but there is something I want to recommend regardless.

at first and most important: MAKE A BACKUP!

secondly, make a Spreadsheet containing a list of ALL of your Common Events, Their Name, Numeration and In what Maps they've been used

JavaScript:
{"code":117,"indent":0,"parameters":[12]}

this part is where Map editing comes into play and it's super invasive editing. one wrong step and you can kiss your map goodbye for some said events which is why you want to make a BACKUP

code 117 refers to a Common Event, Indent is the indentation inside the Map's Event in the list, parameters [12] is telling the engine to use the ID of your Common Event, as for this example it's my 12th Common Event.

now to the actual editing stuff:

once you made the Spreadsheet in Excel or Word and re-organized it inside the Spreadsheet.

Change the Common Events inside your Common Events first.

then go to EACH Map where you know that you've used Common Events in.

go inside each MapXXX.json and change the Number from the bracket for parameters to your desired new ID where your Common Event has been moved.

It may not be the fastest way to go about it but it's at least a way to do all that re-organizing

EDIT: As for Skills you wanna look for each
JavaScript:
{"code":44,"dataId":180,"value1":1,"value2":0}

where as "code" 44 is the Common Event and "dataId" is the number you need to change
There is not a true way of getting rid of this dogsbody job but there is something I want to recommend regardless.

at first and most important: MAKE A BACKUP!

secondly, make a Spreadsheet containing a list of ALL of your Common Events, Their Name, Numeration and In what Maps they've been used

JavaScript:
{"code":117,"indent":0,"parameters":[12]}

this part is where Map editing comes into play and it's super invasive editing. one wrong step and you can kiss your map goodbye for some said events which is why you want to make a BACKUP

code 117 refers to a Common Event, Indent is the indentation inside the Map's Event in the list, parameters [12] is telling the engine to use the ID of your Common Event, as for this example it's my 12th Common Event.

now to the actual editing stuff:

once you made the Spreadsheet in Excel or Word and re-organized it inside the Spreadsheet.

Change the Common Events inside your Common Events first.

then go to EACH Map where you know that you've used Common Events in.

go inside each MapXXX.json and change the Number from the bracket for parameters to your desired new ID where your Common Event has been moved.

It may not be the fastest way to go about it but it's at least a way to do all that re-organizing

EDIT: As for Skills you wanna look for each
JavaScript:
{"code":44,"dataId":180,"value1":1,"value2":0}

where as "code" 44 is the Common Event and "dataId" is the number you need to change
I was afraid it was going to be complicated and risky...
That's one of the downsides of RPGMaker using numeric IDs for everything. Personally, I've just accepted that it will never be organized and use the Search feature whenever I need to locate a specific skill, event, etc. But since the data files are JSON files, it would be possible to create a tool that automatically does what @B3N4ZC4L was describing. Sadly, I don't know of anyone who has actually done it.

The procedure that @B3N4ZC4L unfortunately breaks down a little if you use a lot of script calls, or if you have plugins that might reference a common event in their parameters. Of course, that can still be dealt with, it's just a lot more work.

If you do resort to editing the JSON files, at least make sure you close the editor first. This might be obvious, but I think it's worth saying anyway.
That's one of the downsides of RPGMaker using numeric IDs for everything. Personally, I've just accepted that it will never be organized and use the Search feature whenever I need to locate a specific skill, event, etc. But since the data files are JSON files, it would be possible to create a tool that automatically does what @B3N4ZC4L was describing. Sadly, I don't know of anyone who has actually done it.

The procedure that @B3N4ZC4L unfortunately breaks down a little if you use a lot of script calls, or if you have plugins that might reference a common event in their parameters. Of course, that can still be dealt with, it's just a lot more work.

If you do resort to editing the JSON files, at least make sure you close the editor first. This might be obvious, but I think it's worth saying anyway.
Actually, it slipped my mind, so thanks.
If you do forget to close the editor, it's not going to break anything as long as you don't have unsaved changes. Just close it once you remember and you should be fine. On the other hand, if you do have unsaved changes, saving will just overwrite whatever manual edits you made.
Actually almost everyone has been in your position.

It is the main reason why we always tell people to start with a scrap project just to learn the engine, never truly expecting that scrap project to be a completed game.
and why almost no one ever completed their first project - they learned to make things in better ways and then became disgusted with the mess that was left from their "experimental" beginner's days and started over.
I used to have a plugin that runs a common event by its name.
Not really helpful if you don't remember their names though.
Actually almost everyone has been in your position.

It is the main reason why we always tell people to start with a scrap project just to learn the engine, never truly expecting that scrap project to be a completed game.
and why almost no one ever completed their first project - they learned to make things in better ways and then became disgusted with the mess that was left from their "experimental" beginner's days and started over.
I'm too deep into my project to scrap it. I'll just Frankenstein through 😉
If part of your issue is that the items and skills are in no logical order when actually playing the game, you could try out my SortKeys plugin. I know it says MV but it seems to also work in MZ. It won't help with Common Events, obviously, and it won't help with finding things during development, but perhaps it will be useful nonetheless.

Also, just checking, but you do know about the Search feature, right?
Also, just checking, but you do know about the Search feature, right?
I know about the Search feature which finds Event Names, Switches and Variables. The Event Name search is very unforgiving; full name and exact case.

Pity it doesn't do Items, Weapons, etc as well. Or is there another search feature I don't know about?
Or is there another search feature I don't know about?
only the very common right-click on an entry and select find that you can see in almost ecvery program, not only the makers.
however for the makers it is very comfortable with options for partial match or not and more
I know about the Search feature which finds Event Names, Switches and Variables. The Event Name search is very unforgiving; full name and exact case.

Pity it doesn't do Items, Weapons, etc as well. Or is there another search feature I don't know about?
I'm not aware of a search feature to find where particular items, skills, actors, weapons, etc are used. But I wasn't referring to the Event Search feature, actually. I was referring to the feature in (nearly?) every list view where you can press Ctrl-F (or right-click and choose it from the menu) and search for items, skills, etc matching certain words.

Original thread: https://forums.rpgmakerweb.com/threads/organise-common-events.178053/