I am terrible at coding can someone help?

So this is my coding

    CUSTOMGB
Oh my god, I am so sorry!

    NARRATOR
Hi

choice “Be nice” {
CUSTOMMC1 (admire_happy)
It’s okay, why the hurry?
Gain You_was_nice
} “Be rude” {
CUSTOMMC1 (idle_armscrossed_angry_loop)
Watch where you’re going!
Gain You_was_rude
}

If (you_was_nice) {
    CUSTOMMC1 (admire_happy)
Hi, this is random

} else {
CUSTOMMC1 (idle_armscrossed_angry_loop)
This is also random
}

and this is the error
Expected CHARACTER or SCENE change. Found 'If (You_was_nice) {"instead. Did you forget to CAPITALIZE the name, or close the () around the animation?

How do I fix this?

1 Like

Try capitalizing the “Y” in (you_was_nice). I noticed you named your gain "You_was_nice.
Maybe that should work. Otherwise, check out this article for further details!

:kissing_heart:

CUSTOMGB
Oh my god, I am so sorry!

NARRATOR

Hi
choice “Be nice” {
CUSTOMMC1 (admire_happy)
It’s okay, why the hurry?
gain You_was_nice
} “Be rude” {
CUSTOMMC1 (idle_armscrossed_angry_loop)
Watch where you’re going!
gain You_was_rude
}

if (You_was_nice) {
CUSTOMMC1 (admire_happy)
Hi, this is random

} else {
CUSTOMMC1 (idle_armscrossed_angry_loop)
This is also random
}

1 Like

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