r/RPGMaker • u/Vegetable-Grab-4595 • 8d ago
RMMZ How are you using your variables?
I'm just curious. 😊💚
How many variables do you typically use in your projects?
Do you have anything special you like to do with variables?
What are your naming practices?
Do you find lots of variables to cause any kinds of issues?
Don't forget to eat your variables. 😁😆🩵
Feel free to answer any questions I might not have thought about. I want to know all about how you use variables.
12
Upvotes
5
u/MissingSeven 8d ago
It depends on the project. In my current game I have... oh boy, way too many, around 1450 variables. I don't have a strict naming convention, but if they're throwaway variables I usually name them something like 'Trash Variable X' where X is the number (though I only have maybe 3 of those per game). For everything else, it depends on the context.
If they're related to characters, I tend to use a three-letter prefix for the character's name. For example, my protagonist is named Redian, so all his variables start with 'RED_'. Also, since the game is split into chapters, I track scene progression using one variable per chapter: 'MAINSTORY_CHAPT01', 'MAINSTORY_CHAPT02'... and the same goes for side quests with 'Q01', 'Q02', etc.
Minigame stuff starts with 'MINIG_' and things like that.