Help Code Outfit!

Does anyone know how to code a certain outfit for if/elif/else? For example if I have the reader choose from three different outfits but the character depending on what you choose from the three different outfits has to have bruises on her later in the chapter. How would I code that?

1 Like

You can’t code an outfit like this… you’d have to create copies of each one and add bruises. Then use if/else, like this for example:

if (episode2outfit1) {
@CHARACTER changes into outfit1bruises
}elif (episode2outfit2) {
@CHARACTER changes into outfit2bruises
}elif (episode2outfit3) {
@CHARACTER changes into outfit3bruises
}

Okay I did that but how would I code it to change from the regular to the outfit with bruises?

choice
“Outfit 1” {
@CHARACTER changes into OUTFIT_1_BRUISES
gain outfit_1
} “Outfit 2” {
@CHARACTER changes into OUTFIT_2_BRUISES
gain outfit_2
} “Outfit 3” {
@CHARACTER changes into OUTFIT_3_BRUISES
gain outfit_3
}

if (outfit_1) {
@CHARACTER changes into OUTFIT_1
} elif (outfit_2) {
@CHARACTER changes into OUTFIT_2
} else {
@CHARACTER changes into OUTFIT_3
}

But you can also make this with the point system, I usually use this method →

choice
“Outfit 1” {
@CHARACTER changes into OUTFIT_1_BRUISES
@OUTFIT =1
} “Outfit 2” {
@CHARACTER changes into OUTFIT_2_BRUISES
@OUTFIT =2
} “Outfit 3” {
@CHARACTER changes into OUTFIT_3_BRUISES
@OUTFIT =3
}

if (OUTFIT =1) {
@CHARACTER changes into OUTFIT_1
} elif (OUTFIT =2) {
@CHARACTER changes into OUTFIT_2
} else {
@CHARACTER changes into OUTFIT_3
}

Just make sure you made the outfit with bruises and without them (in this script, I refer to the latter as ‘OUTFIT_x’).
I hope this helps!^^

2 Likes

Okay thank you!

1 Like

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