Automatically to the first option of the choice


#1

Hey, I have something that really drives me crazy

The problem is that it automatically goes to the first option of the choice, even if you choose the second or third option. I have to do it this way because I need a dressing game inside the choice.

Can anyone see what is wrong? I copied this from another choice that is working just fine, so I do not know what the problem could be.

choice
“Go for a run” {

gain RUN

} “Get a coffee with your best friend” {

gain COFFEE

} “Stay home, talk to your mother and do some last minute studying” {

gain HOME

}

if (RUN) {

goto RUN

} elif (COFFEE) {

goto COFFEE

} elif (HOME) {

goto HOME

}

label RUN
text
goto NEXT
label COFFEE
text
goto NEXT
label HOME
text
goto NEXT
label NEXT


#2

You don’t write “elif” the third time. Try “else” instead or check out this thread!
Remember past choices

Hope this helps!


#3

They use the same thing in the tutorial for choices between episode, 3 choices and if, elif, elif.
So I do not think that is the problem


#4

Change it to else like @E.M.Y said and see if it works.


#5

I already tried, it isn’t working.


#6

I have no idea if this will help or if this may be a problem, but did you tried using small letters instead of capitals?


#7

I will try it


#8

It worked! Thanks, I would have never been able to figure that out by myself!


#9

Glad this got resolved! Closing :v:t2:


#10