Hi guys,
So I’ve been using this if /elif/else option throughout my entire story. However, in chapter 3 it doesn’t seem to work even though I did it exactly the same as the other ones.
Here is my script for selecting the outfit:
label choosing_outfit
AMARA (talk_think_neutral)
(What do I want to wear for the Dinner?)
choice
“Red Spaghetti Strap”{
@AMARA exits left
@AMARA changes into AMARA_Dinner_1
@AMARA enters from left to screen center
gain Red_Spaghetti_Strap
}
“Satin Green”{
@AMARA exits left
@AMARA changes into AMARA_Dinner_2
@AMARA enters from left to screen center
gain Satin_Green
}
“Purple Dress”{
@AMARA exits left
@AMARA changes into AMARA_Dinner_3
@AMARA enters from left to screen center
gain Purple_Dress
}
@AMARA stands screen center
@pause for a beat
AMARA
(Do I want to wear this one, or choose something else?)
choice
“Choose this outfit”{
AMARA (flirt_wink_atcamera)
Yes, this is hot af!
}
“Try something else”{
goto choosing_outfit
}
And here is my script for the if/elif thing:
if (Red_Spaghetti_Strap) {
@AMARA changes into AMARA_Dinner_1
}
elif (Satin_Green) {
@AMARA changes into AMARA_Dinner_2
}
else {
@AMARA changes into AMARA_Dinner_3
}
Can someone help me pls? xxx
this kind of code doesn’t work, because if you try an outfit you gain a flag, but if then decide to try another one you gain another flag, so the if/elif doesn’t work
I’m not sure what that means 
What do I have to do?
And why did it work with every other outfit?
change the outfit choice to this
choice
“Red Spaghetti Strap”{
@AMARA exits left
@AMARA changes into AMARA_Dinner_1
@AMARA enters from left to screen center
@AMARA stands screen center
@pause for a beat
AMARA
(Do I want to wear this one, or choose something else?)
choice
“Choose this outfit”{
gain Red_Spaghetti_Strap
AMARA (flirt_wink_atcamera)
Yes, this is hot af!
}
“Try something else”{
goto choosing_outfit
}
}
“Satin Green”{
@AMARA exits left
@AMARA changes into AMARA_Dinner_2
@AMARA enters from left to screen center
@AMARA stands screen center
@pause for a beat
AMARA
(Do I want to wear this one, or choose something else?)
choice
“Choose this outfit”{
gain Satin_Green
AMARA (flirt_wink_atcamera)
Yes, this is hot af!
}
“Try something else”{
goto choosing_outfit
}
}
“Purple Dress”{
@AMARA exits left
@AMARA changes into AMARA_Dinner_3
@AMARA enters from left to screen center
@AMARA stands screen center
@pause for a beat
AMARA
(Do I want to wear this one, or choose something else?)
choice
“Choose this outfit”{
gain Purple_Dress
AMARA (flirt_wink_atcamera)
Yes, this is hot af!
}
“Try something else”{
goto choosing_outfit
}
}
And will the outfit be remembered with this?
let’s say that you choose to try on the Red Spaghetti Strap, you gain Red_Spaghetti_Strap, but then decide to try something else and click on Purple Dress, gaining Purple_Dress
the if/elif won’t work because you gained two different things
Ohhhh I understand now. How odd, because I did this same method for every other chapter in which she changes outfit and I never had a problem. Do you know why that is?
I’d try to play them again, choosing firstly the first outfit and then one of the others
1 Like
I did that and it was never a problem. I only noticed it with this scene because 2 readers pointed it out specifically for this scene 
1 Like
So will I just copy paste what you gave me and delete the if/elif thing I had previously? Sorry I am still new to this hahah
I don’t know, I haven’t coded a clothing choice like this in a while but in my opinion you should check them, it’s weird that they work with that kind of coding 
No the if/elif/else is good, I changed the clothing choice. I put the “Do I want to wear this outfit?” part in each of the clothing choices, so the reader can earn only one gain
1 Like
Ok perfect ! Thank you so much !!!
I will check the other outfits again, just in case 
1 Like
if you don’t understand what I did or need help with something else feel free to pm me!
1 Like
That will possibly happen ahaha thanks x
1 Like