SOLVED! How can two characters change clothes at the same time?

Hi guys :hugs:

I need your help urgently.

Actually FIRSTNAME and depending on which of her friends she has chosen before, should slip into a costume at the same time, but unfortunately this doesn’t happen. :cry:

FIRSTNAME does change, but Vanity / Viscardi in this case does not.
So, what’s wrong with my code?
Does anyone have a solution?

HERE IS THE CODE:

NARRATOR
Great!
Now, choose your halloween costume for both of you.

choice
“Pumpkin’s Ghost” {

if (Vanity) {

@VANITY changes into VANITY_hw1
@pause for 0
@FIRSTNAME changes into FIRSTNAME_hw1

@pause for 2

    NARRATOR
Would you like to wear this costume?

choice “Jabadoo!” {

goto choose_animation

} “No, absolutely not.” {

goto choose_outfit

}

} elif (Viscardi) {

@FIRSTNAME changes into FIRSTNAME_hw1
@pause for 0
@VISCARDI changes into VISCARDI_hw1

@pause for 2

    NARRATOR
Would you like to wear this costume?

choice “Jabadoo!” {

goto choose_animation

} “No, absolutely not.” {

goto choose_outfit

}

Thanks in advance! :smiling_face_with_three_hearts:

1 Like

Hmmm, looks fine to me, try using the command AND, so instead, try something like this:

@VANITY changes into VANITY_hw1 AND FIRSTNAME changes into FIRSTNAME_hw1

@FIRSTNAME changes into FIRSTNAME_hw1 AND VISCARDI changes into VISCARDI_hw1

2 Likes

Thank you it worked! :smiling_face_with_three_hearts: :partying_face: