Search unused switch/variable

Let me explain: So RMMV has a tool called "Event Searcher" where you can search for a switch/variable, and see *where* it's being used. So, in order to delete unused switches/variables, you have to search each one separately, and delete it if it's not being used anywhere. This is fine if you have ~50, but not if you have ~1000.

I have been cleaning up my systems and scenes, and I found out that I now have many unused switches/variables that are mixed in with used ones. Is there a tool to at least find those automatically?

If not, can someone tell me where that tool's code can be found so that I can perhaps alter it to make it do what I want it to? xD
You can try my cross-reference tool. It will give you a list of all switches and variables, and you can see which ones are used and where. I think if one is not used, it's shown in grey, like unusable items in the menu.

It will not tell you if you have switches or variables used in plugins, plugin calls, or script calls (including conditional branch, movement routes, control variables, or damage formulae), but then I don't believe any tool could possibly give you all of that with any certainty.

But all you can do is remove its name if it has one - you can't "delete" them because they are elements in an array, so they will always be there, with a null value.
You can try my cross-reference tool. It will give you a list of all switches and variables, and you can see which ones are used and where. I think if one is not used, it's shown in grey, like unusable items in the menu.

It will not tell you if you have switches or variables used in plugins, plugin calls, or script calls (including conditional branch, movement routes, control variables, or damage formulae), but then I don't believe any tool could possibly give you all of that with any certainty.

But all you can do is remove its name if it has one - you can't "delete" them because they are elements in an array, so they will always be there, with a null value.

Sure! How do I get that / install it?
... you search the forum for "cross reference tool" and then you follow the instructions in the thread?
... you search the forum for "cross reference tool" and then you follow the instructions in the thread?

Ok found it. Thanks a lot!
... you search the forum for "cross reference tool" and then you follow the instructions in the thread?

Wow, this is actually exactly what I needed! Thanks so much!

Original thread: https://forums.rpgmakerweb.com/threads/search-unused-switch-variable.131964/