Help with locked choices based on past?

So, my MC is going to attend an interview, and how well she does is based on a past choice of whether she has gained enough information, or she hasn’t.
I want to lock the choice for anyone who has picked the latter.
Can someone help me with that?

A locked choice, like a gold choice, is just a colour that you can make the choice button; to make it lock, you’ve gotta use code. You’d have to use if/else to bring them to two different versions of the choice, one with the lock, one without.

##the scene where she gains the info goes here

gain has_info

##the first part of the interview goes here

if (has_info){
goto interview_unlocked
}else{
goto interview_locked
}

label interview_unlocked

PEARL
What would you contribute to our company?

choice
“Tell them the info”{

##scene where she tells the info

}“Stammer”{

##scene where she fails the question

}

goto after_question

label interview_locked

PEARL
What would you contribute to our company?

choice
< LOCKED>“Tell them the info”{
##drop the space before “LOCKED”

goto interview_locked

}“Stammer”{

##scene where she fails the question

}

label after_question

##both branches converge here

:+1: You can put the failed interview scene in a label rather than in the choice, so you don’t have to paste it twice, completely up to you. You could also add a bit of dialogue into the locked choice if you want to, like “Since you didn’t learn the information, you cannot use it now.” Main idea is that you need 2 versions of the choice, and the locked one has to have a goto in it, bringing you right up to the top.

Lmao I’m kinda tired and rambly, so if you have questions, let me know haha.

1 Like

Thank you so much! Okay, so I have just one question.
In the previous chapter, the MC meets someone relating to the interview and that person asked her to wear a certain outfit.
If she wears it, she unlocks information which helps her in the interview.
So, the gain has happened during the outfit choice,
and I’ve used the if and else command to give her the information based on the gain.
Should I have another gain in the scene where she gets the information?

And then follow the steps above?

You can use the outfit gain if you want to, or make another, whichever is easier or helps you organise your thoughts. :+1: Point being that the reader only has the gain if they have the information. :grin:

Also, I want the locked choice to be one of two choices which the reader can pick.

Like, there’s a question the interviewer asks
And she has two possible answers. One of which is locked due to lack of information.

Sorry if I’m asking too many questions, I’m really confused :see_no_evil::see_no_evil:

1 Like

No worries, questions are good haha.

Slightly edited my first post to show that the branch happens just before the choice, and can converge whenever you’d like.

1 Like

Thank you so much! You’re truly a godsend! I think I finally understand it now! :heart:

1 Like

Eyy, glad I could help haha! :grin:

1 Like

Closed: Marked as solved by Op :yay: