Help with if/elif/else plss!

Hi guys, I made a dressing game in one of my episodes and used the if/elif/else code because the outfit goes on in two episodes. But when I test it in app it automatically chooses the last option, so in this case elif. Is that normal or am I doing something wrong?

Make sure that you check your story modifiers to see if the correct option is selected (if that makes sense)

When I click on it it shows two buttons that say chose_outfit2 and chose_outfit 1 (my names for the gains) is that how its supposed to be or only the choice the player chose in the previous episode?

1 Like

Hopefully you did it with points if so,

If you code it on the second episode for example:

if (CHARACTER =1){
@CHARACTER changes into CHARACTER_outfit
}
elif (CHARACTER =2){
@CHARACTER changes into CHARACTER_outfit
}
else{
@CHARACTER changes into CHARACTER_outfit
}

It should show up like that, and the one that is selected I believe will be in gold

No I used gains should I use points then? I don’t really know how that works…

I don’t use gains because it’s confusing to me, pretty much points is easier for me but I found this on Dara Amaris’s website using gains. Maybe this would help out more

DRESSING GAME {

&ui ARROW_LEFT create and ui ARROW_LEFT scales to 0.307 0.307 in 0 and ui ARROW_LEFT shifts to 53 318 in 0 and ui ARROW_LEFT opacity 1 in 0.5
&ui ARROW_RIGHT create and ui ARROW_RIGHT scales to 0.307 0.307 in 0 and ui ARROW_RIGHT shifts to 53 201 in zone 1 in 0 and ui ARROW_RIGHT opacity 1 in 0.5
&ui THIS_ONE create and ui THIS_ONE scales to 0.993 0.993 in 0 and ui THIS_ONE shifts to 117 104 in zone 1 in 0 and ui THIS_ONE opacity 1 in 0.5

@OUTFIT =0
label outfitchoice
tappable
“THIS_ONE”{
if (OUTFIT =0) {
readerMessage Tap on the arrows
@speechbubble is 100 100 to 0%
goto outfitchoice
} else {
goto outfitchoiceend
}
}“ARROW_RIGHT” {
if (OUTFIT =0) {
@OUTFIT =1
goto outfitcheck
} else {
goto outfitcheck
}
}“ARROW_LEFT” {
if (OUTFIT =0) {
@OUTFIT =1
goto outfitcheck
} else {
goto outfitcheck
}
}else {
readerMessage on the arrows to view the outfits. with messageTitle | bold, |Tap
goto outfitchoice
}

label outfitcheck
if (OUTFIT =1) {
if (PRESTIGEPLUS) {
@PRESTIGEPLUS becomes PRESTIGE
@PRESTIGEPLUS changes into PRESTIGEPLUS_default
@PRESTIGE becomes PRESTIGEPLUS
} else {
@MADELEINE changes into cutegrocery
}
tappable
“THIS_ONE”{
@OUTFIT =1
goto outfitchoiceend
} “ARROW_LEFT” {
@OUTFIT =4
goto outfitcheck
} “ARROW_RIGHT” {
@OUTFIT =2
goto outfitcheck
}
} elif (OUTFIT =2) {
if (PRESTIGEPLUS) {
@PRESTIGEPLUS becomes PRESTIGE
@PRESTIGEPLUS changes into PRESTIGEPLUS_default
@PRESTIGE becomes PRESTIGEPLUS
} else {
@MADELEINE changes into grocery4
}
tappable
“THIS_ONE”{
@OUTFIT =2
goto outfitchoiceend
}“ARROW_LEFT” {
@OUTFIT =1
goto outfitcheck
} “ARROW_RIGHT” {
@OUTFIT =3
goto outfitcheck
}
} elif (OUTFIT =3) {
if (PRESTIGEPLUS) {
@PRESTIGEPLUS becomes PRESTIGE
@PRESTIGEPLUS changes into PRESTIGEPLUS_default
@PRESTIGE becomes PRESTIGEPLUS
} else {
@MADELEINE changes into grocery2
}
tappable
“THIS_ONE”{
@OUTFIT =3
goto outfitchoiceend
}“ARROW_LEFT” {
@OUTFIT =2
goto outfitcheck
} “ARROW_RIGHT” {
@OUTFIT =4
goto outfitcheck
}
} elif (OUTFIT =4) {
if (PRESTIGEPLUS) {
@PRESTIGEPLUS becomes PRESTIGE
@PRESTIGEPLUS changes into PRESTIGEPLUS_default
@PRESTIGE becomes PRESTIGEPLUS
} else {
@MADELEINE changes into grocery3
}

tappable
“THIS_ONE”{
@OUTFIT =4
goto outfitchoiceend
}“ARROW_LEFT”{
@OUTFIT =3
goto outfitcheck
} “ARROW_RIGHT” {
@OUTFIT =1
goto outfitcheck
}
}

label outfitchoiceend
@speechbubble reset
NARR
Is this the look?
choice
“Yes!” {
&ui ARROW_RIGHT opacity 0 in .25
&ui ARROW_LEFT opacity 0 in .25
&ui THIS_ONE opacity 0 in .25
readerMessage @andrea.t.episode on IG with messageTitle |color:purple, bold|Dressing Game Template
} “I made a mistake.” {
&PRESTIGE is idle_armscrossed_awkward_loop
@speechbubble is 100 100 to 0%
redo outfitchoice
}
#}

This is the one I use! If you don’t have a plus-size, you still need to put an outfit there. It will not mess up your coding! It’s from @AndreaT and you can find the arrows in her drive <3

tysm to both you and @Ryder14 for sending me these templates <3