I went through the site ChoiceScript guide, but I feel like I am missing the most basic things. How do I set up the gender choice in the script, or have them input a name? I saw how to do a fake choice, but how do I do a choice that changes a variable yet doesn’t affect which story route is followed?
I’m asking because I am about finished with my outline for a game I want to write, but am not sure how to get going.
Yes. I did a very simple set-up with a couple of stats and one very basic choice path, to include one fake choice and one branching one, just nothing where a choice affected a name, gender, or ability.
I get the idea of having a thread for questions, but due to how this site displays threads, control+f doesn’t work in them, making them hard to search for questions.
Has anyone posted the code to one of the published games so I can see the code and context? Every published game has you choose a name and gender, yet somehow that isn’t addressed in the tutorial (a really frustrating oversight, in my opinion). Too many examples are one-line snippets which are as likely to confuse as explain.
You can see the code for every game by bringing it up in the browser and adding
/scenes/startup.txt
Or
/mygame/scenes/startup.txt behind the games name.
In wips on dashingdon (or if you unlocked a published game on here) you can view all of the code available by replacing startup in the address bar with the scenefiles name (or choicescript_stats.txt) to view the stats file.
If you have not unlocked a published game on here, you can view all files not marked with $.
Edit.
You can unlock a game you already bought elsewhere by sending the receipts to the support after creating a login on the page (not the same as having a forum account)
Thank you so much for this. This walkthrough with an example for reference, was exactly what I needed. I downloaded it last night, and am a couple of lessons in now.