Coding Error Help Please


So I put in the template from @Dara.Amarie website that allows the reader to choose their outfit, however when I had previewed it, I choose outfit #1 and when I pressed confirm it changed the outfit to number 3. I tried it again but wih outfit 2 and the same thing happened. Even if I choose option 1 or 2 itt gets changed to option 3. Does anyone know what I am doing wrong?

This is the script if you couldn’t tell
label dressing_game_2

    ARIA (talk_think_neutral)
What should I wear to the interview?

choice (OUTFIT_1)
“Outfit 1” {
@ARIA changes into ARIA_INTERVIEW_OUTFIT 1
@pause for a beat

} “Outfit 2” {
@ARIA changes into ARIA_iNTERVIEW_OUTFIT2
@pause for a beat
} “Outfit 3” {
@ARIA changes into ARIA_INTERVIEW_OUTFIT3
}
@pause for a beat

    ARIA (idle_shiftweight_neutral_loop)
Do I want to wear this one?

choice
“Lookin like a snack!” {

} “No ewww!” {
goto dressing_game_2
}

if (OUTFIT_1 is “Option 1”) {
@ARIA changes into ARIA_INTERVIEW_OUTFIT 1

} elif (OUTFIT_1 is “Option 2”) {
@ARIA changes into ARIA_iNTERVIEW_OUTFIT2

} else {
@ARIA changes into ARIA_INTERVIEW_OUTFIT3
}

No space between outfit and the number, do exactly what you did for outfit_1

1 Like

what do you mean? and where?

Sorry I reread it that’s wrong what I said.[quote=“Writer_SA, post:1, topic:272156”]
choice (OUTFIT_1) choice should just be outfit, or have outfit_1 then option 1, option 2 and option 3 with the outfit changes
“Outfit 1” {
@ARIA changes into ARIA_INTERVIEW_OUTFIT 1
@pause for a beat

} “Outfit 2” {
@ARIA changes into ARIA_iNTERVIEW_OUTFIT2
@pause for a beat
} “Outfit 3” {
@ARIA changes into ARIA_INTERVIEW_OUTFIT3
}
@pause for a beat
[/quote]

1 Like

let me try that?

@Katie36 it didn’t work

if (OUTFIT_1 is “Option 1”) {
@ARIA changes into ARIA_INTERVIEW_OUTFIT 1

} elif (OUTFIT_1 is “Option 2”) {
@ARIA changes into ARIA_iNTERVIEW_OUTFIT2

} else {
@ARIA changes into ARIA_INTERVIEW_OUTFIT3
}

is my if/elif/else code right?

1 Like

To make it easier go to Confused with choices pick the style your using, ink or limelight and put your character in the script code then just change want you need to.

2 Likes

@Katie36 OMG thank you let me see if that works

if (OUTFIT_1 is “Outfit 1”) {
@ARIA changes into ARIA_INTERVIEW_OUTFIT 1

} elif (OUTFIT_1 is “Outfit 2”) {
@ARIA changes into ARIA_iNTERVIEW_OUTFIT2

} else {
@ARIA changes into ARIA_INTERVIEW_OUTFIT3
}

The name in the " " needs to be the one you wrote, word for word, for the choice.

Can read about the choice name and option method here: Using if/elif/else to Remember Past Choices

A snippet:

Also, you don’t need the if/elif/else coding below it. it’s repetitive. if you character changes into something, they’ll remain in it unless u change them out of it. if/elif/else should be used for remembering choices that happen later on, usually (in your case, it’s not needed right below).

2 Likes

There you go, she knows more about it than me.

2 Likes

@Katie36 the link worked thanks
@JemU776 I am so dumb :laughing: for all my other dressing games I put the if/elif/else code and I was so confused why I put it now I know that its for alter choices
Thank you @Katie36 and @JemU776 :star_struck:

1 Like

psh, Katie you are too modest, we all know u are a genius, OP don’t listen to her, she is amazing at helping :100: :disco: :blob_hearts:

2 Likes

Whatever lol I got the link for the confused with choices from you when you helped someone.

2 Likes

Marked as solved and closed. Thanks all! :wave: