How to start making a new game from scratch?

Congrats on fixing your own errors.

The illegal to fall out statement means that every section of a *choice statement needs a *goto or a *finish after it.

So the following won’t work and will give the illegal statement

*choice
    #Choice 1
        Text
    #Choice 2
        Text

And this will

*choice
    #Choice 1
        Text
        *go choice1
    #Choice 2
        Text
        *goto choice2

Make sense?

You can see the code for most of the games on the website. I generally suggest having a look at Dragon, since it’s a nice and simple game.

You’ll find the files for Dragon at https://www.choiceofgames.com/dragon/scenes/ Ignore the .json and .js files in the folder since you don’t need to worry about those and just look at the .txt ones. I’d suggest starting at https://www.choiceofgames.com/dragon/scenes/startup.txt and then using the scenes list to tell you the order of the files to go to next (so https://www.choiceofgames.com/dragon/scenes/lair.txt next.)

If it doesn’t make any sense to you and doesn’t help though, don’t worry. I just found that looking at other games and seeing everything in actual effect worked best for me and helping me learn.

[Tool] ChoiceScript Development Environment is really useful too.

1 Like