Hello. I was wondering if anyone could help me with locked choices? Even though it is locked, I would like to them to be able to choose the other option. Is it possible to label inside IF/ELIF
Go watch on youtube of joseph evans!
He helped me a lot!
Hi sure, I can help you
No, itās not possible to put a label inside of if/elif/else, you will need to put a goto in there that leads to a label outside.
Example using gains:
if (premium1) {
goto prem_1
} elif (premium2) {
goto prem_2
} else {
goto prem_3
}
label prem_1
#premium1 script goes here
goto merge_story
label prem_2
#premium3 script goes here
goto merge_story
label prem_3
#else script goes here
goto merge_story
label merge_story
#now u are back to the main story line.
A locked choice example using 2 options:
NARR
Whatās your fav ice cream flavor?
choice
āMintā{
gain mint
}āMangoā{
gain mango
}
#bla bla bla, later on in the script.
YOU
Iād like ice cream.
MOM
Which flavor would you like?
if (mint){
goto mint_path
}else{
goto mango_path
}
label mint_path
YOU
Iād likeā¦
choice
āMintā{
YOU
Mint ice cream.
}< LOCKED>āMangoā{
NARR
This choice is locked since you picked mint ice cream flavor before!
goto mint_path
}
goto merge_story
label mango_path
YOU
Iād likeā¦
choice
āMangoā{
YOU
Mango ice cream.
}< LOCKED>āMintā{
NARR
This choice is locked since you picked mango ice cream flavor before!
goto mango_path
}
goto merge_story
label merge_story
#story line merges
I also have a different kind of example here: JemU776's Help Thread using character points. The Points system: The Points System
Past choices - Using if/elif/else to Remember Past Choices Color code and lock choices - HOW TO: Color Code and Lock A Choice
Youāre an angel thank you so much this is very helpful
Thanks
If you need to test out other paths, remember to reset your gains (which are also called flags as well):
Thank you so much
No problem
I think I understand it. So I can also use this for I want the choice to loop itself, so that they can pick the other one
Yep, basically if they picked mint ice cream, later on, they choose from mango and mint. Since they didnāt pick mango before, when they try to pick it, itāll say something like this:
NARR
You canāt select this option!
Then right under this, thereāll be a goto that leads to a label back to asking this question since they canāt get past this point, so itās on loop.
And yep, if you want an option in a choice to loop itself, itād look something like this:
label loop
NARR
Pick 1.
choice
āAā{
NARR
You picked A
}< LOCKED >āBā{
NARR
You canāt go past this.
goto loop
}
#continue story here
Thank you so much!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.