What to use: Switches or Variables

So i've reached a point in my game where i've now started to code events for my game, that being said, i'm getting like really unorganized with literally only the first 10 mins of gameplay.

(i will say i have only been using switches and mainly conditional branches). mainly cause i literally cannot wrap my mind around what in the world variables are for. 😢


anyways, i was wondering what was the best way to organize events: via switches or variables.
especially if its in like the same event location spot.

[EX: plot line about a key in a plant]
im not sure if they're supposed to take up this many lines but yea.
Screenshot (211).png


Also i will say that this is obviously my first game, and my first experience with making a game or anything like that so like explain it to me like im five. 😅
While you can do it with switches only in alot of cases variables help, like in quests with more things to do or multiple items to find... like find water, bottle ect... you can do this with conditionals at the end but variable are easier i think... like when you find water just +1 to variable, you find bottle another +1... and at the npc who gave the just a condition when variable is +2 then....
There are many more things you can do with variable, my advice would be to watch on youtube some vids about variables in rpg makers.. or any tutorials here.
Use both, depending if you need a yes/no thing... or a number thing.
Switches, when you need to check if something else happened:
For example, does the hero talk with NPC "A"? Yes - switch TRUE, no, Switch FALSE

Variables, when you need to count something:
example from my project: Depending on how many NPC hero talked, start a different dialogue

Original thread: https://forums.rpgmakerweb.com/threads/what-to-use-switches-or-variables.146916/