Help with if elif, else

So when I tried to use the if, elif, and else command for the MC outfits it just kept on the last choice. And I need to know how that is gonna work. Cause for each outfit has a different income. Can somebody help?

can i see your script?

sure


And then here’s the link if you need it

i don’t recommend using that method of remembering outfit choices, because the reader might choose ‘ugly rat’ and go back to make a different choice. so you should probably use points for that. do you need help coding the points?

yes please

could you copy+paste your script?

all of it?

just the dressing game

sure

1 Like

label dressing_game_1

    ALECIA (primp_condescend)
Make me look like a queen

choice (OUTFIT_1)
“Choice 1” {
@ALECIA changes into White Skirt
@ALECIA is arms_crossed

} “Choice 2” {
@ALECIA changes into Going Out
@ALECIA is idle_awkward

} “Choice 3” {
@ALECIA changes into Formal
@ALECIA is idle_happy_glass_raised
}

    ALECIA (blow_kiss)
Should I wear this?

choice
“Queen!” {
@ALECIA is applaud_loop

} “Ugly rat” {
goto dressing_game_1
}

label dressing_game_1

    ALECIA (primp_condescend)
Make me look like a queen

choice (OUTFIT_1)
“Choice 1” {
@ALECIA =1
@ALECIA changes into White Skirt
@ALECIA is arms_crossed

} “Choice 2” {
@ALECIA =2
@ALECIA changes into Going Out
@ALECIA is idle_awkward

} “Choice 3” {
@ALECIA =3
@ALECIA changes into Formal
@ALECIA is idle_happy_glass_raised
}

    ALECIA (blow_kiss)
Should I wear this?

choice
“Queen!” {
@ALECIA is applaud_loop

} “Ugly rat” {
goto dressing_game_1
}

if (ALECIA=1) {
@ALECIA changes into White Skirt
} elif (ALECIA=2) {
@ALECIA changes into Going out
} else {
@ALECIA changes into Formal
}

will this help?

yeah, but you probably don’t have to make her change again after the readers have just picked the outfit. you can use it later on since the outcome changes based on the outfit

so how would i do that? imsorry im new

1 Like

if (ALECIA=1) {
insert whatever happens if the reader chooses the first outfit
} elif (ALECIA=2) {
insert whatever happens if the reader chooses the second outfit
} else {
insert whatever happens if the reader chooses the third outfit
}

ok and the new dressing game you gave me still didnt work

how would i close that choice after the different outcomes happen? like how would i just go to thenext scene without the if elif and else?

like, she still changes into the third outfit? or


yes she still changes to the 3rd outfit