Help using the if/else

So I want to get my character to get dress but I want the outfit the character chose to wear to be remember for the next episode

1 Like

I’d recommend using gains. Your code would look like this:

label outfit

NARR
What do you want to wear?
choice
“OUTFIT 1”{
@CHAR is undress_top
@CHAR changes into OUTFIT 1
@pause for a beat
&CHAR is idle
NARR
Is this what you want to wear?
choice
“Yes!” {
gain OUTFIT 1
} “On second thought
”{
goto outfit
}
} “OUTFIT 2”{
@CHAR is undress_top
@CHAR changes into OUTFIT 2
@pause for a beat
&CHAR is idle
NARR
Is this what you want to wear?
choice
“Yes!” {
gain OUTFIT 2
} “On second thought
”{
goto outfit
}
} “OUTFIT 3”{
@CHAR is undress_top
@CHAR changes into OUTFIT 3
@pause for a beat
&CHAR is idle
NARR
Is this what you want to wear?
choice
“Yes!” {
gain OUTFIT 3
} “On second thought
”{
goto outfit
}
}

Then, to remember the choice it would look like this

if (OUTFIT 1){
@CHAR changes into OUTFIT 1
} elif (OUTFIT 2){
@CHAR changes into OUTFIT 1
} else {
@CHAR changes into OUTFIT 1
}

1 Like

Thanks

1 Like

When it says gain outfit am I supposed to put the clothes name?

yes! or you can change it to something else. the name of the gain can really be anything you want â—ĄÌˆ

1 Like

Thanks you’re the best :heart:

1 Like

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