Variable-dependent choices

I've noticed that in many modern rpg's there are hidden choices that appear only under certain conditions. So for example if you need to find an apple, you won't be able to say that you've found it until you really do ( switch "apple" = true ).

And we can easilly recreate this in default MV, so there will be just one conditional branch that will show choice with option ("I didn't find it yet") and another choice with options ("yes, this is your apple" or "I didn't find it yet" in case if you don't want to give it to npc) depending on the switch state.

BUT. What iff npc asks you to find several items, for example you need to find 15 apples and each apple has a number on it?
So...okay let's start. There is a choice if you didn't find any, a choice if you found only the first one, then only the second apple, a choice if you have 3, 5 and 10's apples, another choice if you have 1,2 and 14 and so one.

In short, I am not a mathematician, but I know what geometric progression is. Just imagine this small smiling npc that gently asks you to just to found his 15 apples, but inside it's a real abomination with THOUSANDS of lines of code.

But as for my goal, I want to make an npc that will just tell you about different things that you've found in the world. So he will asks you something like "what do you want" and you will always have an option "nothing" to stop the dialogue and different options depending on the things that you've found. So in case if you have an apple, sword and hamburger, when you interact with the npc, you will have 4 options:
what is this?(show apple)/
what is this?(show sword)/
what is this?(show hamburger)/
nothing.

Maybe I missed something in choice events creating, but for now I think that only plugins will help me solve this mystery.
there are 2 kinds of plugins capable to do this, but not working by default.
Hime has a plugins for it and Aloe Guvner I think if not mistaken.

Hime can hide a choice and show them, but also hide easely.
Aloe Guvner can do choices but more complex, like:
show choice 1 if player has apple = 1 but hid if its > 4, so 4 or more
wil hide the choice as well.
Let me find those plugins, so I can link them for you.


Aloe Guvner Conditional Choices read carefully how to use them,

Hime Hidden Choice Condition && Disabled Choice Condition

keep in mind, hidden choice & disabled choice are 2 different plugins,
can be used together, but it depends which works for you,

you can show the choice but disabled, unless the requirement is met to select it.
see what fits for you, and play around with them 🙂
Just tested the aloe's one. It works just like I wanted, the only issue is that it's somehow conflicting with my "GALV visual novel choices" and choices are invisible, but I think I'll do something with it. The most important thing is that it works perfectly with default choices. Thank you very much.
there are 2 kinds of plugins capable to do this, but not working by default.
Hime has a plugins for it and Aloe Guvner I think if not mistaken.

Hime can hide a choice and show them, but also hide easely.
Aloe Guvner can do choices but more complex, like:
show choice 1 if player has apple = 1 but hid if its > 4, so 4 or more
wil hide the choice as well.
Let me find those plugins, so I can link them for you.
Just tested the aloe's one. It works just like I wanted, the only issue is that it's somehow conflicting with my "GALV visual novel choices" and choices are invisible, but I think I'll do something with it. The most important thing is that it works perfectly with default choices. Thank you very much.
Nevermind, I just switch these two plugins and now it works perfectly.
I think galve overwrite them for from default to work differently, the other one
aliased it, to add a new function, so I dont know if its below or above it, but if above,
it should work otherwise vice versa.

the plugin order is most important to be correct, if it was still conflicting, it
could be a relative easy fix or modification to work together.

I am happy you got it to work. Good luck on your project further 🙂

Original thread: https://forums.rpgmakerweb.com/threads/variable-dependent-choices.135907/