Choice script question

Hi, I’m learning to program in Choice Script and VScode tells me that *scene doesn’t exist, but I want to reference a scene. How do I do that?

You probably want to use *goto. It’s a good idea to take a look at the basic tutorial.

4 Likes

Make sure to include the file with your scene in the *scene_list in your startup file. You should be then able to
*goto_scene filename

1 Like

If you’re getting a message that the scene doesn’t exist, using *goto is indeed the right approach to reference another scene. Just make sure the scene you want to go to is defined in your script.

For example, if you have a scene called “forest”, you would use *goto forest to navigate there. It’s also a good idea to check the spelling and ensure the scene is properly set up in your project.

Note, *goto goes to a label in the same file. If you want to move to another file, you need to use *goto_scene instead.