Is there anyone who knows why it doesn't work?

Is there anyone who knows why it doesn’t work?

if (CARAMEL_LATTE){
RANDOM (talk_cup_neutral_loop)
@add Coffee Cup To Go to RANDOM

Here you go a Caramel latte with almond milk

}elif(ICE_LATTE){
@add Coffee Cup To Go to RANDOM

BROOKE (talk_cup_neutral_loop)
Here you go a ice latte
}elif(WATER){
@add Cup Plastic Blue to RANDOM

    RANDOM (talk_cup_neutral_loop)
Here you go a water

}

Don’t you need to add “RANDOM” before this line?

RANDOM (talk_cup_neutral_loop)
Here you go a Caramel latte with almond milk

I also think it’s correct like this:

if (CARAMEL_LATTE){
@add Coffee Cup to go to RANDOM
RANDOM (talk_cup_neutral_loop)
Here you go a Caramel latte with almond milk.

1 Like

You accidentally put “RANDOM (talk_cup_neutral_loop)” here

Correction (In My Opinion)
@add Coffee Cup To Go to RANDOM

RANDOM (talk_cup_neutral_loop)
Here you go a Caramel latte with almond milk

1 Like

if (CARAMEL_LATTE){
@add Coffee Cup To Go to RANDOM

    RANDOM (talk_cup_neutral_loop)
Here you go a Caramel latte with almond milk

}elif(ICE_LATTE){
@add Coffee Cup To Go to RANDOM
RANDOM (talk_cup_neutral_loop)
Here you go a ice latte
}elif(WATER){
@add Cup Plastic Blue to RANDOM

    RANDOM (talk_cup_neutral_loop)
Here you go a water

}

it still doesn’t work

change last option to }else{

and what exactly it’s not working?

Ok thanks

I will get...

choice
“A caramel latte with almond milk” {
YOU (talk_handsonhips_neutral_loop)
A caramel latte with almond milk

gain CARAMEL_LATTE
} “Ice latte” {
YOU (talk_handsonhips_neutral_loop)
A ice latte

gain ICE_LATTE
}“A water” {
YOU (talk_handsonhips_neutral_loop)
A water

gain WATER
}
YOU (talk_neutral)
And to donuts one Chocolate Caramel and a Chocolate Glossy

    RANDOM (talk_smile_happy_loop)
Ok coming right up

@RANDOM faces left

@RANDOM starts tinker_stand_neutral_loop_rear

@pause for a beat

if (CARAMEL_LATTE) {
@add Coffee Cup To Go to RANDOM

    RANDOM (talk_cup_neutral_loop)
Here you go a Caramel latte with almond milk

} elif(ICE_LATTE) {
@add Coffee Cup To Go to RANDOM
RANDOM (talk_cup_neutral_loop)
Here you go a ice latte
}
else {
@add Cup Plastic Blue to RANDOM

    RANDOM (talk_cup_neutral_loop)
Here you go a water

}

if (CARAMEL_LATTE) {

@RANDOM starst take_object_neutral AND YOU is take_object_neutral

@remove Coffee Cup To Go from RANDOM
@add Coffee Cup To Go to YOU
}elif (ICE_LATTE) {

@RANDOM starst take_object_neutral AND YOU is take_object_neutral

@remove Coffee Cup To Go from RANDOM
@add Coffee Cup To Go to YOU
}else {

@RANDOM starst take_object_neutral AND YOU is take_object_neutral

@remove Cup Plastic Blue from RANDOM
@add Cup Plastic Blue to YOU
}

why doesn’t this workt?

did you reset your story progress?

Multiple times

merge outcomes together like this, reset your story progress and check again.

if (CARAMEL_LATTE) {
@add Coffee Cup To Go to RANDOM

RANDOM (talk_cup_neutral_loop)

Here you go a Caramel latte with almond milk

@RANDOM starst take_object_neutral AND YOU is take_object_neutral

@remove Coffee Cup To Go from RANDOM
@add Coffee Cup To Go to YOU

} elif(ICE_LATTE) {
@add Coffee Cup To Go to RANDOM
RANDOM (talk_cup_neutral_loop)
Here you go a ice latte

@RANDOM starst take_object_neutral AND YOU is take_object_neutral

@remove Coffee Cup To Go from RANDOM
@add Coffee Cup To Go to YOU

}else {
@add Cup Plastic Blue to RANDOM

RANDOM (talk_cup_neutral_loop)

Here you go a water

@RANDOM starst take_object_neutral AND YOU is take_object_neutral

@remove Cup Plastic Blue from RANDOM
@add Cup Plastic Blue to YOU

}

You spelt this wrong. It should say “starts”

1 Like

Ooh yeah i have probably click’t to fast

When you choose “ice latte”
And the waiter gives drink and instead of the character says “here you go a ice latte”
the character says “here you go a caramel latte and almond milk”

it’s nothing wrong with coding, reset your story progress or unflag the gains.

unflag?

Click on Story modifiers and then flags (you can ungain flags, or gain them)

Send us the new version of the coding, if there are still errors

How do you get another overlay over the first one?

change the layers (put one under another one)