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

community

#1

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

}


#2

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

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


#3

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.


#4

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


#5

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


#6

change last option to }else{

and what exactly it’s not working?


#7

Ok thanks


#8
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?


#9

did you reset your story progress?


#10

Multiple times


#11

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

}


#12

You spelt this wrong. It should say “starts”


#13

Ooh yeah i have probably click’t to fast


#14

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”


#15

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


#16

unflag?


#17

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


#18

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


#19

How do you get another overlay over the first one?


#20

change the layers (put one under another one)