Im having error choicebody troubles Help!

Ok I know choicebody error is like not giving a command after stated *choice or text

it said it was choicebody error on 398

398 is I don’t want to trash talk, but if you don’t recycle, you’re a waste."

Whelp here you go as promised.
*choice
   #Leader

    *set leadership +5
    *goto toolspt2

   #Strength
     
    *set strength +5
    *goto toolspt2

   #Agility

    *set agility +5
    *goto toolspt2

   #Charm

    *set charm +5
    *goto toolspt2

   #Blunt (also known in your stats as rudeness)

    *set rudeness +5
    *goto toolspt2

   #Intelligence

    *set intelligence +5
    *goto toolspt2

*label toolspt2

*page_break

"Cellphone cellphone cellphone" you mutter looking under the junk you left on the floor.
So what is your power?
*choice
   #Earth
I don't want to trash talk, but if you don't recycle, you're a waste."

    *set has_earth true
    *goto toolpt2.5
    *set power +15

my command was to *goto toolpt2.5

Try changing *goto toolpt2.5 to *goto toolpt2_5 and it’s respective label because I’m pretty sure you can’t have the dot inside commands and label names.

Also the indentation is all incorrect in the line that has the “I don’t want to trash talk, but if you don’t recycle, you’re a waste.”

Thye text after the earth choice seems to have the wrong indentation.

2 Likes

But I’ve been using dots in my text and there hasn’t been any other errors

And I use no spacing in follow-ups and they have also still worked

I use 4 spacings in * related commands and
3 in # questions

Indentation does look like the issue though. Notice how the *set you have under your other choices are all indented but “I don’t want to trash talk” is not? Under a #choice, the next line should not be aligned all the way to the left.

Also I think you might have to *set all your variables before you use the *goto command. So it should look something like:

*choice
    #Earth
        *set power +15
        *set has_earth true
        "I don't want to trash talk..."
        *goto toolpt2.5
4 Likes

Indentation level must be unified across your whole game. If it’s 4 spaces, 4 spaces it is. If it’s a tab, a tab it is.

And then, you can’t leave a choice body (#) empty as CS will recognize this as error: “Cannot have empty choicebody.” Instead, put some placeholder text if you’re running out of steam and wanted to rush through your writing.

1 Like