Hello, I apologise if any of this is confusing, I'm still a beginner at the software.
Here is a bit of backstory that may help explain my problem. I am making a dating game, and for now I have one NPC and one MC. To improve the relationship, the MC has to complete a task, and then the 'love meter' changes. This task is the part I am having trouble coding. First, the NPC will talk with the MC, and occasionally a coloured word will appear in dialogue. When this occurs, a hidden value will be applied to the MC. Then, once the dialogue is complete, the NPC will allow the MC to talk to them and choose one of these hidden values to present. For example, the NPC may say "I love apples, I hate oranges, I'm neutral to grapes." Then the player can choose to present 'apples', 'oranges', 'grapes' or cancel. If they choose correct, love goes up. If they choose neutral, it stays the same. If they choose wrong, love goes down. You get the idea. However, sometimes they may have to search for additional information. Maybe the NPC will only tell them they hate grapes, and the MC will have to search their diary to find how they feel about apples, or talk to their friend to learn they're neutral to oranges. Again, once they learn this information, it will give the hidden value to the MC so it can be presented as an option. The event should check which of these hidden values the MC has found, and present them as choices. However, if the MC has only collected a few, the NPC should only ask for those choices. That is to say, if the only thing they have learnt is that the NPC hates apples, the only choice in dialogue will be to talk about apples or cancel.
It worked easy enough as an if/else statement for just one hidden value, but I am worried how it will play out now that I am trying to code multiple values. I could hypothetically write an if/else statement for each set of hidden values (e.g. apples, apples oranges, oranges grapes, etc) however I worry that will be a huge amount of unnecessary code. I have searched for similar plugins or threads about this, but they were not for MV and weren't very clear. I also have to figure out whether or not the event should check for these hidden values as hidden items or as variables. I've had my demo set to items since I found it easier to keep track of, but I'm open to suggestions on what the best system is.
So here is my question: How do I set my events to allow different choices based on which of these hidden values my MC has?
Here is a bit of backstory that may help explain my problem. I am making a dating game, and for now I have one NPC and one MC. To improve the relationship, the MC has to complete a task, and then the 'love meter' changes. This task is the part I am having trouble coding. First, the NPC will talk with the MC, and occasionally a coloured word will appear in dialogue. When this occurs, a hidden value will be applied to the MC. Then, once the dialogue is complete, the NPC will allow the MC to talk to them and choose one of these hidden values to present. For example, the NPC may say "I love apples, I hate oranges, I'm neutral to grapes." Then the player can choose to present 'apples', 'oranges', 'grapes' or cancel. If they choose correct, love goes up. If they choose neutral, it stays the same. If they choose wrong, love goes down. You get the idea. However, sometimes they may have to search for additional information. Maybe the NPC will only tell them they hate grapes, and the MC will have to search their diary to find how they feel about apples, or talk to their friend to learn they're neutral to oranges. Again, once they learn this information, it will give the hidden value to the MC so it can be presented as an option. The event should check which of these hidden values the MC has found, and present them as choices. However, if the MC has only collected a few, the NPC should only ask for those choices. That is to say, if the only thing they have learnt is that the NPC hates apples, the only choice in dialogue will be to talk about apples or cancel.
It worked easy enough as an if/else statement for just one hidden value, but I am worried how it will play out now that I am trying to code multiple values. I could hypothetically write an if/else statement for each set of hidden values (e.g. apples, apples oranges, oranges grapes, etc) however I worry that will be a huge amount of unnecessary code. I have searched for similar plugins or threads about this, but they were not for MV and weren't very clear. I also have to figure out whether or not the event should check for these hidden values as hidden items or as variables. I've had my demo set to items since I found it easier to keep track of, but I'm open to suggestions on what the best system is.
So here is my question: How do I set my events to allow different choices based on which of these hidden values my MC has?