Resorts to only remembering the second choice

In the first chapter, I have two choices. However leading into the second chapter, it resorts to the second choice outcome and not the first outcome if chosen. I have it written with if and else. And there’s no errors. The coding is messy due to outfit choices for the MC being remembered which also isn’t remembered either and resorts to the last outfit choice regardless.

This is the first outcome using if

The outfit code looks like this : if (GLASSES =1) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow1_FRECKLES AND GLASSES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow1_GLASSES
}
}
elif (GLASSES =0) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow1_FRECKLES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow1
}
}

if (GLASSES =1) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow2_FRECKLES AND GLASSES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow2_GLASSES
}
}
elif (GLASSES =0) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow2_FRECKLES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow2
}
}

if (GLASSES =1) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow3_FRECKLES AND GLASSES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow3_GLASSES
}
}
elif (GLASSES =0) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow3_FRECKLES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow3
}
}

if (GLASSES =1) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow4_FRECKLES AND GLASSES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow4_GLASSES
}
}
elif (GLASSES =0) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow4_FRECKLES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow4
}
}
This is the start of the second outcome.

This is the end of the second outcome under else.

1 Like

Im not sure if coding allows if/else in each other or not, but try one of these

Version 1
if if (GLASSES =1) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow1_FRECKLES AND GLASSES
}
}

I say this because you’d have one of the ifs without a } as there are 2 ifs but only one }

What are the choices to earn points you could try these

Narrator
Pick one if the following

choice
“Freckles only” {
@Freckles =1
}
“Glasses only” {
@Glasses =1
}
“Freckles and Glasses” {
@Both =1
}

if ( Freckles =1)
{
@NAOMI_Meow1_FRECKLES AND GLASSES
}
if (Glasses =1) {
@NAOMI changes into NAOMI_Meow4_GLASSES
}
if (Both =1) {
@NAOMI changes into NAOMI_Meow1_FRECKLES AND GLASSES
}

Or have her out fit change within the choices followed by narrator asking if they are sure they want that choice like this;

label features
Narrator
Pick one

choice
“Glasses only” {
@NAOMI changes into NAOMI_Meow4_GLASSES
}
“ Freckles only” {
@NAOMI changes into NAOMI_Meow4_FRECKLES
}
“Both” {
@NAOMI_Meow1_FRECKLES AND GLASSES
}

Narrator
Are you happy with your choice?

choice
“Yes” {
continue
}
“No” {
goto features
}

So the reason there’s four versions of each is because there is four different outfit choices, with freckles, glasses, freckles and glasses, and plain. The customization template has gains if the reader chooses freckles, glasses or both. Based off the template choice is how that choice is remembered through an outfit.

-wait not gains, but it uses points.

1 Like

I see so would this work

label features
Narrator
Pick one

choice
“Glasses only” {
@NAOMI changes into NAOMI_Meow4_GLASSES
}
“ Freckles only” {
@NAOMI changes into NAOMI_Meow4_FRECKLES
}
“Both” {
@NAOMI changes into
NAOMI_Meow1_FRECKLES AND GLASSES
}
“None” {
@NAOMI changes into NAOMI_Meow4
}

Narrator
Are you happy with your choice?

choice
“Yes” {
continue
}
“No” {
goto features
}

Would this work as they have the choice to choose glasses, freckles, both or neither
once they select their choice they would change into that outfit and then the next choice is to confirm they are happy with what they selected

The author that created it told me once they choose either of these things, they can’t choose what they like with an outfit. Hopefully that makes sense.

I’m using a different template for the dressing part. I started having issues once I added glasses and freckles to it. So I may need to find a different dressing template. I’m not sure.

Are you sure that in the first chapter, the gain is named Awkward and capitalized in the same way?

Also, maybe try this:

if (GLASSES =1) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow1_FRECKLES AND GLASSES
} elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow1_GLASSES
} else {
}}
elif (GLASSES =0) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow1_FRECKLES
} elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow1
} else {
}} else {
}

if (GLASSES =1) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow2_FRECKLES AND GLASSES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow2_GLASSES
} else {
}}
elif (GLASSES =0) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow2_FRECKLES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow2
} else {
}} else {
}

if (GLASSES =1) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow3_FRECKLES AND GLASSES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow3_GLASSES
} else {
}}
elif (GLASSES =0) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow3_FRECKLES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow3
} else {
}} else {
}

if (GLASSES =1) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow4_FRECKLES AND GLASSES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow4_GLASSES
} else {
}}
elif (GLASSES =0) {
if (FRECKLES =1) {
@NAOMI changes into NAOMI_Meow4_FRECKLES
}
elif (FRECKLES =0) {
@NAOMI changes into NAOMI_Meow4
} else {
}} else {
}

The point is exactly capitalized like that yes.

1 Like

Unfortunately I’m not sure how else to help as the coding is a little hard to understand sorry

It’s okay, I know it’s confusing. :confused:

Maybe it wasn’t working before because there wasn’t an else?

Hm could be, I’m trying to code it the way you wrote it and see what happens.

1 Like

Darn. It didn’t work. :confused:

1 Like

Hello :blush: I’m honestly a little confused by the outfit coding for Naomi, it looks like it’s repeated 3 times and maybe one option could potentially contradict another.
If you’re trying to have 4 different outcomes such as,

  1. with glasses and freckles
  2. with glasses only
  3. with freckles only
  4. no glasses, no freckles.
    Then you could use this coding for that:
if (FRECKLES =1) {
if (GLASSES =1) {
@NAOMI changes into NAOMI_Meow1_FRECKLES AND GLASSES
}}

if (FRECKLES =0) {
if (GLASSES =1) {
@NAOMI changes into NAOMI_Meow1_GLASSES
}}

if (FRECKLES =1) {
if (GLASSES =0) {
@NAOMI changes into NAOMI_Meow1_FRECKLES
}}

if (FRECKLES =0) {
if (GLASSES =0) {
@NAOMI changes into NAOMI_Meow1
}}

Darn. I just tried that, but that didn’t work either. :confused:

Aww :unamused: is there a place for them to accumulate those points before hand? And are you getting errors in general? From the screenshots it looks like there’s possibly other errors too.

Actually if you want you could pm me your script By copying and pasting it, starting from line 1 to line 757 so I can see the thing entirely. I’m thinking maybe there’s some bracket issues :thinking: it’s hard to tell broken up :eyes:

1 Like

There is points the reader can accumulate before hand. I’m not having any errors in general.

1 Like

Really you would do that? Thank you! :raised_hands:t2: Possibly there could be some bracket issues.

1 Like

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