[SOLVED]Checking if a Variable|Switch is being used

Hello!

Just a quick question, is there a way to check if any variable or any switch is being used by the RPGMV itself?

I'll be honest, I have a lot of them and I don't remember if some of them are even being used by any event.
I would like to delete them if not since they're a waste of slot.
The first thing you can try using the editor itself is the 'Event Searcher'.
That's the button in the toolbar to the right of the audio test.



The second thing you can use is a plugin by @Shaz which I also frequently use.
It is the Cross Reference Tool , which you install like any other plugin.

It's also plug-and-play, meaning you don't have to do anything to get it to work.

The plugin will add another option to your title-screen, where you can check almost all of your database objects and where they are used and/or referenced in your game.
1) for the future, you should always name the switch or variable when fist used.

2) the event search function
I second Andar, give names that are as self-explanatory as possible to your switches. When I started doing that it helped me win A LOT of time!

No "afouiahfoihefo" switch. It's now forbidden lol.
In addition to naming switches, also, what I do (and I have been doing this since the haydays of the PS1 version of RPG Maker) is logging my switches in Excel.

I create two very wide (thinking about switching it to three for my next project) columns in Excel.

Cell numbers represent switch number so I do not put any headers.

Column A is location and event. Column B is what it does or what it triggers.

Normal text is a permanent switch
italics is a switch that turns on but will turn off permanently
Bold is an on and off switch.

My workbook for my current project looks something like this:

1690196504095.png
1) for the future, you should always name the switch or variable when fist used.

2) the event search function
I did name them all. The problem was I am still learning RPGMV, so whenever I try something, and it didn’t work, I would sometimes forget the switches/variables I did name but no more use for.

Thank you I will try that!
In addition to naming switches, also, what I do (and I have been doing this since the haydays of the PS1 version of RPG Maker) is logging my switches in Excel.

I create two very wide (thinking about switching it to three for my next project) columns in Excel.

Cell numbers represent switch number so I do not put any headers.

Column A is location and event. Column B is what it does or what it triggers.

Normal text is a permanent switch
italics is a switch that turns on but will turn off permanently
Bold is an on and off switch.

My workbook for my current project looks something like this:

View attachment 270500
Whoa i wish i thought about doing this when i started my project!!! Very good advice!

Original thread: https://forums.rpgmakerweb.com/threads/solved-checking-if-a-variable-switch-is-being-used.159652/