Which is better to use? Switches or Variables?

If I give the player a choice say... these choices when meeting with a character that you can potentially date.

Boy: Want to hangout? We can go to the park tomorrow if you'd like.

Choice 1: I don't know you well enough
Choice 2: You mean like a date?
Choice: Sure, I'm free tomorrow

and the next scene is the park but what is the best way to remember the choice you made? In Rpg Maker MV sometimes I just made a condition where if the variabe if set to 1 for choice 1 or set to 2 for choice 2etc. But the same can be done with a switch. I can just make a seperate switch for each choice.

But which is more logical and why should I use one over the other?
I'll pick the variables, for this kind of scenario seems fore flexible than switches. I usally think of variables as long term conditions and switches for instant use, or something not too far in the future.

Also if you want, thinking about this example of yours, to be building some sort of relationship between player and the NPC's, you could use stored variables value as a friendship meter (Like friendship points or something) so you could create even more derivations for your plot, like if you hang out with an NPC a lot, you unlock a "get serious" choice at some point, otherwise, they could just be good friends.

In short term for your example: FP = Friendship Points (As a variable)

Choice 1: -1 FP
Choice 2: +1 FP
Choice 3: +2 FP

So if you have equal or above 1FP, you get the park scene, otherwise, nothing happens.
In the park scene you get different situations and dialogues. Lets say again:

Dialogue 1: +FP
Dialogue 2: -1FP
Dialogue 3: +2FP

And for the ending of this scene you could get different condtions like:

If FP < 2 They remain as friends
If FP >= 2 They become close friends
If FP >= 6 They become "something"

Switches could be used too but I think the flexibilty offered by variables for this case makes them a better choice, just in my opinion 😅

(Sorry, just noticed its for visual novel, but could it work like that?)
It does work like that for VNM as well.

And I'd say it's about personal preference to be honest. The coding logic is nearly the same between the two (if we get literal, a switch is just a variable check for 1 or 0).

My general method is to use a switch (or a label) for a one time branch, and variables for if I'm keeping track of the "points" awarded from choices the player has taken.

Only thing for VNM is to remember to set your variable or switch to Global if you're planning on reusing the information.
Okay. I am having some trouble with the conditional branches. Some help would be very much appreciated!

I have one variable for my three choices here

Choice 1: I don't know you well enough (set var to 1)
Choice 2: You mean like a date? (set var to 2)
Choice: Sure, I'm free tomorrow (set var to 3)


So I set my messages for my next scene based on what the variable is set to.

Condition if var = 1
Message
Else
Condition if var = 2
Message
Else
Condition if var = 3
Message


But when I choose choice 3 I get the message meant for choice 2? This seems different from Rpg Maker Mv. Is there a proper way to order Conditional branches in VN? (I have checked over to make sure I have set the variables correctly according to the choice)

In MV you could just use Conditional Branches without Else and the event would only show the conditional branch messages depending on what the variable is set to.

I'm kinda stuck here. =/

Edit: Good news! Using Else If is working. 😛 I'm good for now...^^;

Original thread: https://forums.rpgmakerweb.com/threads/which-is-better-to-use-switches-or-variables.116671/