Is storing dialogue choices as hidden items the best/easiest way to make branching dialogue paths?

I'm pretty sure I worded it poorly, so I'll give an example of how I do it:

Let's say at one point the player needs to choose a decision (e.g A or B ) and later on in the game, the player will have an option to do something else, that will vary on whether they picked A or B before. What I do is I create a hidden item (let's call it 'choice A') that the player receives when they make that decision, and then when that choice is relevant, to do an if statement to check if the player has that hidden item in their inventory.

So is there a better way to store choices/actions?

I've only used RPG maker for about 2 months now, so I don't know that much
It's not a bad idea to use the "Select Item window" as an alternative to the "Show Choice Window".
I've made the recommendation in the past. If you like, you can use a script call before the window that can alter the window dimensions and columns.

However the Show Choice Window accepts text control characters, so you can gray out text, and display text strings stored as variables.
using \c[] and \v[]
Which don't work in item names. (At least, not without a plugin )

I think the "best" design choice, for your situation, is the one that's going to inform the player.
You can nest these text control characters. \c[\v1] So Greying out "Option B" is a matter of variable control. And it tells the player that Option B exists under certain conditions.

I know some developers would rather not show choices that are unavailable, and toil through conditional branches to have different Show Choice Windows with different number of items. But personally, I think that's bad design to keep the player in the dark about what they're missing.
Something like an option "Tell a Lie (require: INT > 20)" or "Form an alliance (require: Sacrificed Harold)"
I'm pretty sure I worded it poorly, so I'll give an example of how I do it:

Let's say at one point the player needs to choose a decision (e.g A or B ) and later on in the game, the player will have an option to do something else, that will vary on whether they picked A or B before. What I do is I create a hidden item (let's call it 'choice A') that the player receives when they make that decision, and then when that choice is relevant, to do an if statement to check if the player has that hidden item in their inventory.

So is there a better way to store choices/actions?

I've only used RPG maker for about 2 months now, so I don't know that much

That's a functional way to do it without plugins, sure. But it's certainly a bit clunky.

I know at least for MV, there are a few "Choice Condition" plugins, which are kind of indispensable. They way they work is, let's say the player talks to an NPC and learns about a monster. You'd just set a switch to ON called "knows monster", right? Let's say it's switch #50 that's now on.

Then, later on the player talks to another NPC and wants to ask about the monster. What the plugin allows you to do is hide the choice to ask about the monster, if switch #50 is off.

This is probably the cleanest and most efficient way to do it. The question is, are any of these sorts of plugins available for MZ yet!
@mistaron As you probably have guessed from the answers above, I think you mixed up two different aspects:

storing choices and making choices

For storing choices, yes there are better ways: that is what switches and variables are for, to store data of any kind, including player choices.

hidden items themselves have two more functions that go beyond storing data.
1) selections: if you give multiple hidden items, you can ask the player which to use in an interface with an image. This can be used for asking the player about choices (and against the show choices command it has the advantage that the options are variable and depend on the hidden items in inventory). But to use it this way you often have to add or remove items to change the choice options, and that means this is at an advantage if you want multiple selections.

2) hidden keys: you can give the player tokens that the events react to (item in inventory) without ever being visible. yes, switches can be used the same way (and you even have two switch conditions compared to one item condition on the events) but again there are advantages and disadvantages depending on how it is used.

So while it is not wrong to use hidden items the way you use them, they have more uses and you might want to consider if you block them for this or use switches to keep hidden items as a different tool in reserve.

Original thread: https://forums.rpgmakerweb.com/threads/is-storing-dialogue-choices-as-hidden-items-the-best-easiest-way-to-make-branching-dialogue-paths.151075/