Variables that you forgot or don't even remember setting.

I'm sure we've all done this. Worked on a project for a good while, setting up variables but never actually using them, and due to whatever reasons, we just didn't delete them.

Fast forward in time about 3 months or so, and now we're checking through our variable list and see...."Crazy Clock" "mountain Rotation?" "Silent switch 2"? But no "Silent Switch 1"?

I don't even remember the reason why I named a variable Crazy Clock, XD

You guys ever made variables/switches, forgotten about them, and just thought......what was the plan with it?
Can't say I have. And even if I would, you can check where switches and variables are used. There's also no real harm in just making a new one, provided you've not left the system only partially finished I guess.
I do have some variables (used before) and swapped, and kept them for safety.
why delete them if it could break something if it is still in use somewhere?

but I mostly create variables and switches when needed, and there are some
that only for for debugging, same for switches, so I call then debug switches/variables.
I've really only created a variable that was going to be put to immediate usage in something. If I scrap the idea that's associated with it, then I tend to remove it everywhere its referenced and then "delete" it from the list. I also tend to label them their exact usage or their usage location.

Easy example:
1764666616534.png


The Chest Rolls are for "on the map" skills, where a dice is rolled to determine how they're used.

"Sweet Retreats" is for a Quest associated with that shop, and helps determine the "outcome" of that quest, dependent on what the player has done.
All the "Diamonds" stuff is just to track if the player has gotten all the Diamonds from each of the four hubs. Same with the "Keys" and "Certs (Guild Certificates)". The "Diamonds Held" variable is just to track if the player is holding enough Diamonds when I need to do a check for them (and turning them in).

It really helps to make sure you label everything properly. If you don't, it's easy to forget the point of each variable and whether you need to use them or not.
I have hundred of switches ad variables.... Most of them in use. But I also have a lot that aren't in use, but I don't remember what they're for. Then there's the variables that I set up for a certain mechanic and it didn't work out and I moved on to something else forgetting about it.... Then I make another variable to do the same thing....

I have no organization skills when it comes to these things....
Yes...yes I have.

I will make a Variable or Switch and name it something that makes sense at the time and I almost always immediately use them. But as projects get bigger and bigger, I start to lose track of what I was doing and what certain Variables were for, even with names.

I need to do a much better job of tracking those.

And Picture IDs...I use a lot of images on the screen at one time. And I start to lose track of what IDs I've already used across numerous Events and Common Events.

I also look back on Events I made and don't even remember making them or how I did it. Which is why I have started using many more Comments in my Events.

Organization is something I need to improve upon.
When you develop a game for over 9 years, taking some extended breaks whether that is away from game dev or just away from the engine itself, yeah you can forget some things here and there. I have a lot of switches and variables that are just left blank for what I can only assume to be organization purposes, but I've never had the courage to touch them! I figure there's no harm in leaving them there as they are and adding new ones instead, just in case.

My personal favorite switch is "****thisswitch" and the variable winner goes to "leave this alone" lol.
My personal favorite switch is "****thisswitch"
"This switch" or "Thiss witch" ?
"This switch" or "Thiss witch" ?

"Not this Switch"

"Not that Switch"

"The one below the 2nd one"
@Martin_Arcainess

That just makes me think of this:
1764710084247.png
I didn't like that I get to name the variables but had to reference them with numbers in the script calls when not using event commands so I made it to where I can get and set the variables/switches based on their name.

...
...

I forget why I named this one czxmvcjawoeurL, the other one THEBESTVARTHEREIS, and the other thereIsNoCowLevel.
One complication is that the event searcher built into the editor is quite good at looking for editor commands setting switches and variables, and also event page conditions. It doesn't seem too good at spotting editor commands that just read them. What it can't do is look at script calls or plugin parameters, which can lead to "interesting" results during play-testing.
I coded a feature twice because I forgot I added it as a side feature to one of my plugin files

Original thread: https://forums.rpgmakerweb.com/threads/variables-that-you-forgot-or-dont-even-remember-setting.181267/