Bad label chapter2

That’s my ide screen.

I’m getting line 50 bad label . I’ve tried to fix it . I cant

You need *goto_scene, not *goto

4 Likes

goto can only be used for jumping to a label inside the same scene. To go to chapter2, use goto_scene chapter2. Alternatively, you can just use *finish, which will jump to the next scene listed in startup.txt’s scene list.

3 Likes

You can. You are satan’s strongest soldier. You can do this.

Here are the steps to troubleshoot on your own.

  1. Read the error message. It says “line 50: bad label”
  2. Investigate the label. You’ve identified that you do indeed have a scene called chapter2, so you haven’t mislabelled it.
  3. Investigate line 50. You’ve used the goto command.
  4. Search for the goto command.

https://choicescriptdev.fandom.com/wiki/Goto

The solution to your problem is LITERALLY THE FIRST PARAGRAPH. You need to be able to exercise some independence with these types of issues! It’s an extremely important skill to develop! You can do this, god dammit! You are capable! You are brimming with self-efficacy! You can do this!!!

3 Likes