Points & branches

could someone rewrite this correctly?

    JESS
No, thank you
    GALE FROST
Why not?

if (EGO > 300) {

    JESS
Uhm...

choice “Tell them all the truth” {

    JESS
I have a heart problem

}“Lie”{
JESS
I’m pregnant

I want the choice “tell them all the truth” to be locked so it forces the reader to click the “lie” choice

<LOCKED> “Insert text here”{ }

You can make a loop so it keeps coming back to the choice, which forces them to lie… It’s not hard, and it doesn’t take any complex coding to do so…

I hope I helped…

1 Like

example
label choice_locked

    NARR
Tell the truth?

choice
“yes” {
NARR
CHAR tells the truth
} “no” {
NARR
This choice is locked
goto choice_locked
}
NARR
I will lie

in you’re case it’'s something like this I think
JESS
No, thank you
GALE FROST
Why not?
if (EGO > 300){

JESS
Uhm…

label forced_choice

choice " Tell them all the truth"
NARR
This choice is locked!
goto label forced_choice
JESS
I have a heart problem
}“Lie”{
JESS
I’m pregnant

did it work?

Moved to Directing Helps and Tips since this is about coding. Make sure to check out our Forum Tutorial for more info about where to correctly create topics, and feel to PM me if there are any questions. :wink:

You can’t. You can’t have labels/goto inside an if/elif/else statement unless you write like this-

if(EGO > 300){
JESS
Uhm …
goto truth_lie_choice
}

label truth_lie_choice
NARRATOR

choice
”Tell the truth”{
NARRATOR
You have too many EGO points to tell the truth!
goto truth_lie_choice
}
“Lie”{
scene here for lie
goto continue story
}

label continue_story
continue story here

OR
You could give the reader just the ONE choice to lie based on the ego points. -
if(EGO >300){
readerMessage You have too many ego points to tell the truth!
JESS
Uhm …
choice
“Lie”{
scene here for lie
}

story continues here

I hope this helped a little :woman_shrugging:t2::grimacing:

Thank you so much! Yours helped the best

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.