If/elif/else going wrong :(

When I preview it and choose I prefer to date girls, it just says “you prefer to date guys is that correct?” (I checked if I was clicking guys by mistake constantly!)

Check out:

Copy it exactly how it says on the website and post it in your script :heart:

I am not checking the script itself but if you first have chosen guys the script remembers it if you do not refresh the page so you still have the gain boys.

BTW the way you have it if you allow the reader to click on boys he will gain boys than he goes beck and gains girls,but he will still have the gain for boys because he clicked on it so such reader will always fall in this if/else to boys.

using gans hen yu allow reader to go back to make new choice is not good because he will end up geting more gains. As Jemu said - use the template od Dara

You’ll need to have what I call a confirmation choice inside the first choice.

It looks like this:

 label choose_date
 NARRATOR
 First off, what's your dating preference?

 choice
 "I prefer to date guys." {

 NARRATOR
 You prefer to date guys, is that correct?
 choice
 "Yes" {
 gain date_guys
 }
 "No" {
 goto choose_date
 }

 }
 "I prefer to date girls." {

 NARRATOR
 You prefer to date girls, is that correct?
 choice
 "Yes" {
 gain date_girls
 }
 "No" {
 goto choose_date
 }

 }

Then you just continue the story from here!

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