Help please with this error EDIT: Yes the best friend and MC are wearing the same thing in the choice "I like my stripes" but even if they aren't she says it

HI! I’m writing a story ad my character is getting changed, and when the other character goes to comment on the outfit she is meant to comment on that specific outfit (Each outfit has a different comment) But it keeps commenting the wrong outfits, is there someone that can help me fix the coding or fix the coding for me?

NARRATOR (MC)
What should I wear tonight?

choice “I like my stripes”{
@MC exits right

@MC changes into MC_party1

gain chose_PARTY1

@MC enters from right to screen center

@pause for a beat

} “Give me that touch of purple”{
@MC exits right

@MC changes into MC_party2

gain chose_PARTY2

@MC enters from right to screen center

@pause for a beat

} “Just a touch of red”{
@MC exits right

@MC changes into MC_party3

gain chose_PARTY3

@MC enters from right to screen center

@pause for a beat

} “Cute and Cozy”{
@MC exits right

@MC changes into MC_party4

gain chose_PARTY4

@MC enters from right to screen center

@pause for a beat

} “Hints of pink” {
@MC exits right

@MC changes into MC_party5

gain chose_PARTY5

@MC enters from right to screen center

@pause for a beat

}
@MC is think
MC (talk_handsonhips)
Hmmm, this is cute!

choice
“Wear this outfit.”{
@MC is head_bob
NARRATOR (MC)
This is perfect!

}“Try something else.”{
@MC is think
goto dressing_game3

}

This is what i wrote, you will see the option to wear the outfit: “I like my stripes”

Now obviously the person playing this story is going to go through every outfit to see what they want to wear to this party, so i do it like that to see if it works, and if they pick an outfit other than the “I like my stripes outfit” the best friend still comments “We’re wearing the same thing!” even if they aren’t.
if (chose_PARTY1){

@speechbubble is 155 277 to 100% with tail_top_right
BEST FRIEND (talk_confused_mind_blown)
We’re wearing the same thing!
BEST FRIEND (flirt_fingersnap)
Shows you have good taste.
@MC is laugh_chuckle

} elif (chose_PARTY3){

@speechbubble is 155 277 to 100% with tail_top_right
BEST FRIEND (talk_think)
Is that my shirt?
@speechbubble is 155 277 to 100% with tail_top_left
MC (flirt_fingersnap)
Maybe.
@MC is laugh_giggle AND BEST FRIEND is laugh_guffaw

} elif (chose_PARTY4){

@speechbubble is 155 277 to 100% with tail_top_right
BEST FRIEND (talk_think)
You look cute
BEST FRIEND (flirt_fingersnap)
Love that jacket.
@speechbubble is 155 277 to 100% with tail_top_left
MC (laugh_chuckle)
Thanks, it’s mums.
@BEST FRIEND is laugh_giggle

}elif (chose_PARTY5){

@speechbubble is 155 277 to 100% with tail_top_right
BEST FRIEND (talk_confused_mind_blown)
Jeeze!
BEST FRIEND (talk_awkward)
It’s a bit too cold for that don’t you think?
@speechbubble is 155 277 to 100% with tail_top_left
MC (talk_apathetic)
With all the alcohol I’m having tonight I won’t feel a thing.
@BEST FRIEND is laugh_crack_up

}elif (chose_PARTY2){

@speechbubble is 155 277 to 100% with tail_top_right
BEST FRIEND (talk_confused_mind_blown)
Jeeze!
BEST FRIEND (talk_awkward)
It’s a bit too cold for that don’t you think?
@speechbubble is 155 277 to 100% with tail_top_left
MC (talk_apathetic)
With all the alcohol I’m having tonight I won’t feel a thing.
@BEST FRIEND is laugh_crack_up

}

Can someone figure out what I have done wrong? Or fix it for me, it’s really getting to me

Hi :smile:

I think the problem are the gains as we select the choices we gain every cloth tried.

I found this on one thread, you don’t have to use gains
Then, when you need to change back the outfit, you need to code:

if (outfit is “Blue Dress”) {
@ALY changes into Blue dress
}
elif (outfit is “Floral Dress”) {
@ALY changes into Floral Dress
}
else {
@ALY changes into Sunrise Fade Dress

2 Likes

Welcome to the forums @Cloud_Episode Here’s the edited game (I used named choice method instead of gains) and fixed if/elif/else code :slight_smile:

NARRATOR (MC)
What should I wear tonight?

choice (party)
“I like my stripes”{
@MC exits right

@MC changes into MC_party1

@MC enters from right to screen center

@pause for a beat

} “Give me that touch of purple”{
@MC exits right

@MC changes into MC_party2

@MC enters from right to screen center

@pause for a beat

} “Just a touch of red”{
@MC exits right

@MC changes into MC_party3

@MC enters from right to screen center

@pause for a beat

} “Cute and Cozy”{
@MC exits right

@MC changes into MC_party4

@MC enters from right to screen center

@pause for a beat

} “Hints of pink” {
@MC exits right

@MC changes into MC_party5

@MC enters from right to screen center

@pause for a beat

}

if (party is "I like my stripes" ){

} elif (party is "Give me that touch of purple"){


} elif (party is "Just a touch of red"){


} elif (party is "Cute and Cozy"){


}else{
#scene for the last choice 

}
1 Like

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