searching for common events

hey i was wondering if theres anyway to find common events through some kind of event searcher or plugin to see if it's unused. i have a project that i know has unused common events although im not sure specifically which ones or how many.

am i gonna have to search through each event to see or is there an easier way?
hey i was wondering if theres anyway to find common events through some kind of event searcher or plugin to see if it's unused. i have a project that i know has unused common events although im not sure specifically which ones or how many.

am i gonna have to search through each event to see or is there an easier way?
Atleast in MZ you can use ctrl+f to search anything, I don't know if in mv it's the same.
There is a way, but it's a bit complex. You'd need to open the data files in a text editor and do a search for the "call common event" code in a command parameter object. The good thing is they use a specific format so it's not *hard* to search for them as long as you know what the codes are.
Atleast in MZ you can use ctrl+f to search anything
When I boot up MZ and press Ctrl+F, nothing happens.

If I click on the Event Searcher tool, it only searches map events like in MV, it doesn't do anything to help you find where you called a common event.

Can you explain how you're using this to find references to common events? Which screen?
It depends on what the common event does.

in case of autorun/parallel process those are always activated by a specific switch, so you can use the build-in searcher to find if those switches are used in events. It won't work if the switches are used by javascript, but that would be a rather strange construct that is unlikely to exist as a plugin has better methods for handling things than controlling CEs.

in case of a called common event there is Trihan's solution above - which is anything but easy to handle as you need to know how the data is stored.

In case of attached common events (attached to skills that is) you can either go through the database skill by skill, or you can do the equivalent of the text search described above for the skill database.
But in that case the codes for attached common events are different than the ones for called common events...
I've actually been considering writing an app that searches data files for things like this.
When I boot up MZ and press Ctrl+F, nothing happens.

If I click on the Event Searcher tool, it only searches map events like in MV, it doesn't do anything to help you find where you called a common event.

Can you explain how you're using this to find references to common events? Which screen?
I missunderstood the question, I thought he wanted some shortcut to search trought common events in the editor.
There's a pretty handy plugin that can help out with this, Shaz's Cross Reference Tool.

This plugin adds an option to your title screen, that allows you to see exactly where each Switch, Variable, Actor, Class, Skill, Item, Weapon, Armor, Animation, Enemy, Troop, State, and Common Event is referenced all throughout your game. It's incredibly helpful.

The only thing to keep in mind is that it won't detect any of these that are either referenced by a plugin itself, or if it's referenced in a plugin command/script call.

Original thread: https://forums.rpgmakerweb.com/threads/searching-for-common-events.151809/