If I understand the tutorial correctly, I just need to create a folder with my game’s name and then save all of the .txt files that I create with any text editor (I will probably us VS code) into said folder. Then at some point, when I’m finished, I somehow compile them into the game?
I’d recommend running through this - Introduction to ChoiceScript - Choice of Games LLC
It’s got a pretty solid set of instructions on how to get a game running and how to export a finished one.
I just started recently too, and I use CSIDE. It has many helpful features that make things easier, and it can compile your game for you.
So to be clear, I have some c/c++/c#, Java, html/css/Javascript programming experience and i have used Twine for a bit as well, so I do have some experience with both programming and interactive fiction. I just want to clarify who ChoiceScript works because the Introduction to ChoiceScript was not clear enough for me.
Well, it depends on what you want to do, but for most people there’s no need to compile anything. The interpreter uses the txt files, and COGDemos has a built-in interpreter.
So, I just write in VS Code, save the files to my game file in the ChoiceScript folder and then run it and it automatically compile?
…no? The txt files stay txt files.
You can export it to HTML if you need a downloadable, but there’s no other amount of compiling needed. You’re not coding the engine, you’re just giving directions to it.
If you’re using vscode, don’t clone the choicescript repo. You can use the choicescript extension. Just create your project like usual (mkdir +git init or whatever is your work flow). The extension let’s you playtest your game, run quick test and random test.
When uploading to cogdemos, you upload the txt files, same as when you’re ready to publish you’ll send the txt files to CoG. There’s no compiling necessary, except in very specific situations, for example, if you tweak the engine internals (not recommended) or if you want to distribute an html file to friends and family (although pointing them in the direction of cogdemos is probably better), or if you want to upload to itch.io instead of cogdemos.
No need to complicate things, though.
If you’ve got an android device, I built an app specifically for choicescript. The app lets you code, run and compile the game very easily.
I do have an android phone… how much is your app…?
Just the small price of your soul.
Joking aside, it’s free. You click on my profile or search for choicescript android in the forum to find it.
I’m working on a new update that should be out either later today or tomorrow. This update will bring more improvements to the UI for smaller screens, collapsible menus, a working error checker and some other things that I cant remember right now.
Is there a command for turnning Part and Chapter titles into headings or do I have to edit the style sheet?
Either edit the style sheet or use an image:

