Variables?

Im new to RPG Maker MV and i was wondering what variables are used for and what they are supposed to do for your game.
I recommend reading these as it covers things such as switches and variables:
Im new to RPG Maker MV and i was wondering what variables are used for and what they are supposed to do for your game.



Variables are already used by the MV System for holding on to values such as Gold or HP and MP. Mostly, in any Game, there will be a need for the Game-Maker to hold on to other values, such as number of times a Door has been opened, or how many Pick-Axe strokes have been used (just dumb examples; every Game will be different...). That's why 'blank' Variables have been made available to the Game-Maker. The MV folks can't know beforehand exactly what the Game will need; it's up to the Game-Maker to decide these needs and use the Variables as the Game needs arise. The Tutorials mentioned above will demonstrate how to use them; they are very useful indeed.
Variables are often used in combination with conditional Branches or eventpage conditions.


Variables are mostly used as placeholders for number values. Those can be includet in conditions which are for the game logic.


Simple spoken Switches are  kind of the same but they just got the value false or true (0 or 1) while variables can be from -99999999 to 99999999 or more.

Original thread: https://forums.rpgmakerweb.com/threads/variables.70667/