# ChoiceScript Help

**URL:** https://forum.choiceofgames.com/c/game-development/choicescript-help/44.md

[Latest](https://forum.choiceofgames.com/latest.md) · [Categories](https://forum.choiceofgames.com/categories.md) · [Tags](https://forum.choiceofgames.com/tags.md)

---

## [About the ChoiceScript Help category](https://forum.choiceofgames.com/t/about-the-choicescript-help-category/44)

<div class="topic-metadata">

**Author:** [@jasonstevanhill](https://forum.choiceofgames.com/u/jasonstevanhill)\
**Replies:** 0\
**Last updated:** [August 22, 2014, 10:35pm UTC](https://forum.choiceofgames.com/t/about-the-choicescript-help-category/44 "2014-08-22T22:35:41Z")

</div>

Ask questions about ChoiceScript here! But first, be sure to: Read the ChoiceScript tutorial: http://www.choiceofgames.com/make-your-own-games/choicescript-intro/ Consult the ChoiceScript developer’s Wiki: http://choi…

---

## [How to transfer code from laptop to mobile and vice versa without breaking the formatting?](https://forum.choiceofgames.com/t/how-to-transfer-code-from-laptop-to-mobile-and-vice-versa-without-breaking-the-formatting/180168)

<div class="topic-metadata">

**Author:** [@Lekhu](https://forum.choiceofgames.com/u/Lekhu)\
**Replies:** 4\
**Last updated:** [November 27, 2026, 7:07pm UTC](https://forum.choiceofgames.com/t/how-to-transfer-code-from-laptop-to-mobile-and-vice-versa-without-breaking-the-formatting/180168 "2026-11-27T19:07:46Z")

</div>

I’m having trouble with the online transfers as well as copy pasting. I remember oblivion or ellipsus had a mode for that but I can’t figure it out. Everything gets turned into a single chunk of text and I have to manual…

---

## [How to get total word count](https://forum.choiceofgames.com/t/how-to-get-total-word-count/45844)

<div class="topic-metadata">

**Author:** [@CammyCamaro](https://forum.choiceofgames.com/u/CammyCamaro)\
**Replies:** 15\
**Last updated:** [November 23, 2026, 10:22am UTC](https://forum.choiceofgames.com/t/how-to-get-total-word-count/45844 "2026-11-23T10:22:15Z")

</div>

Does anyone have any suggestions about how to get the total word count for your game (so all plot branches are included)? The best I found in the forum is to use randomtest.html to get the average playthrough. Thanks!

---

## [Can't Use "run-server.bat" on Linux Mint](https://forum.choiceofgames.com/t/cant-use-run-server-bat-on-linux-mint/180069)

<div class="topic-metadata">

**Author:** [@VassaBunny](https://forum.choiceofgames.com/u/VassaBunny)\
**Replies:** 2\
**Last updated:** [November 19, 2026, 8:44pm UTC](https://forum.choiceofgames.com/t/cant-use-run-server-bat-on-linux-mint/180069 "2026-11-19T20:44:26Z")

</div>

I have Nodejs installed and ChoiceScript. When I first did both I had no problems starting up the server and messing around. It’s been months since then and now when I try to run run-server.bat it doesn’t do anything; my…

---

## [Line 119: Invalid expression at char 15, expected no more tokens, found: CLOSE\_PARENTHESIS \[)\]](https://forum.choiceofgames.com/t/line-119-invalid-expression-at-char-15-expected-no-more-tokens-found-close-parenthesis/180011)

<div class="topic-metadata">

**Author:** [@shrimper](https://forum.choiceofgames.com/u/shrimper)\
**Replies:** 2\
**Last updated:** [November 14, 2026, 12:56pm UTC](https://forum.choiceofgames.com/t/line-119-invalid-expression-at-char-15-expected-no-more-tokens-found-close-parenthesis/180011 "2026-11-14T12:56:53Z")

</div>

This probably has a super simple fix that I just happen to be missing but no amount of adjusting is working for me. The code I am using I’ve basically copy-and-pasted from another forum topic here – it’s on the stats pag…

---

## [How do I see the status of \*all\* the variables mid-game?](https://forum.choiceofgames.com/t/how-do-i-see-the-status-of-all-the-variables-mid-game/179517)

<div class="topic-metadata">

**Author:** [@gracierocket](https://forum.choiceofgames.com/u/gracierocket)\
**Replies:** 12\
**Last updated:** [November 5, 2026, 7:22pm UTC](https://forum.choiceofgames.com/t/how-do-i-see-the-status-of-all-the-variables-mid-game/179517 "2026-11-05T19:22:31Z")

</div>

Hi all! So, I want to create a character build for playtesting my game (in this case, Captain Picard), and I want to be able to drop in all the relevant stats at the start of any chapter so I can just play the bit I wan…

---

## [Save checkpoint error](https://forum.choiceofgames.com/t/save-checkpoint-error/179734)

<div class="topic-metadata">

**Author:** [@zinx](https://forum.choiceofgames.com/u/zinx)\
**Replies:** 1\
**Last updated:** [October 26, 2026, 12:48pm UTC](https://forum.choiceofgames.com/t/save-checkpoint-error/179734 "2026-10-26T12:48:06Z")

</div>

Hi y’all, I’m zinx, building a narrative medieval kingdom rpg (WIP) There’s some sort of JSON circular routing error when I use \*save\_checkpoint. There’s no other bugs, as removing that one line makes the code work perf…

---

## [Is there a way to transfer steam saves from a COG game](https://forum.choiceofgames.com/t/is-there-a-way-to-transfer-steam-saves-from-a-cog-game/179566)

<div class="topic-metadata">

**Author:** [@Tordiff](https://forum.choiceofgames.com/u/Tordiff)\
**Replies:** 1\
**Last updated:** [October 12, 2026, 3:10am UTC](https://forum.choiceofgames.com/t/is-there-a-way-to-transfer-steam-saves-from-a-cog-game/179566 "2026-10-12T03:10:21Z")

</div>

I’d like to transfer saves from a COG game on steam to my android phone, is there a way to do this? Any help is appreciated.

---

## [Please rescue me from this quicktest error!](https://forum.choiceofgames.com/t/please-rescue-me-from-this-quicktest-error/179531)

<div class="topic-metadata">

**Author:** [@gracierocket](https://forum.choiceofgames.com/u/gracierocket)\
**Replies:** 13\
**Last updated:** [October 9, 2026, 10:34am UTC](https://forum.choiceofgames.com/t/please-rescue-me-from-this-quicktest-error/179531 "2026-10-09T10:34:49Z")

</div>

I have been staring at this code for four hours and I can’t find the error. The game successfully passes 10,000 randomtests, but it keeps throwing this same bug when I try to quicktest it. I have tried (as you will see) …

---

## [For those learning ChoiceScript: what are you struggling with most?](https://forum.choiceofgames.com/t/for-those-learning-choicescript-what-are-you-struggling-with-most/179490)

<div class="topic-metadata">

**Author:** [@DutchFeverDream](https://forum.choiceofgames.com/u/DutchFeverDream)\
**Replies:** 12\
**Last updated:** [October 5, 2026, 7:36pm UTC](https://forum.choiceofgames.com/t/for-those-learning-choicescript-what-are-you-struggling-with-most/179490 "2026-10-05T19:36:13Z")

</div>

For those currently learning ChoiceScript, or who have recently started making their first game, what has been the hardest part so far? Maybe it’s understanding the syntax, figuring out variables, designing branching pa…

---

## [Are Twine files compatible enough to submit as a game?](https://forum.choiceofgames.com/t/are-twine-files-compatible-enough-to-submit-as-a-game/179154)

<div class="topic-metadata">

**Author:** [@WickStitcher](https://forum.choiceofgames.com/u/WickStitcher)\
**Replies:** 6\
**Last updated:** [September 7, 2026, 4:21pm UTC](https://forum.choiceofgames.com/t/are-twine-files-compatible-enough-to-submit-as-a-game/179154 "2026-09-07T16:21:26Z")

</div>

Twine is so much easier to use because I can see where the answers branch off and I don’t have to do as much of my own coding. Is it possible to export a Twine file and adapt it to submit as a game? Example \*commend …

---

## [Code Inconsistencies for my WIP](https://forum.choiceofgames.com/t/code-inconsistencies-for-my-wip/179038)

<div class="topic-metadata">

**Author:** [@eTootsi](https://forum.choiceofgames.com/u/eTootsi)\
**Replies:** 11\
**Last updated:** [September 1, 2026, 2:27am UTC](https://forum.choiceofgames.com/t/code-inconsistencies-for-my-wip/179038 "2026-09-01T02:27:44Z")

</div>

Hey y’all :raising\_hands:t5:, I’m having trouble with getting some of my choices to show up or not cause errors despite the coding looking identical to other choices that show up and don’t cause errors. …

---

## [CSIDE (or coding in general) tutorial](https://forum.choiceofgames.com/t/cside-or-coding-in-general-tutorial/178760)

<div class="topic-metadata">

**Author:** [@LilPaixao](https://forum.choiceofgames.com/u/LilPaixao)\
**Replies:** 3\
**Last updated:** [August 10, 2026, 3:28am UTC](https://forum.choiceofgames.com/t/cside-or-coding-in-general-tutorial/178760 "2026-08-10T03:28:01Z")

</div>

Well, that’s my first ever topic, so if anything is wrong, I’m reeeeeally sorry. But okay, to the question. Recently I got inspiration and after years of playing Choicescript games, decided to make my own (wowwwww). On…

---

## [Illegal to fall out of a \*choice, but no falling out is present](https://forum.choiceofgames.com/t/illegal-to-fall-out-of-a-choice-but-no-falling-out-is-present/178597)

<div class="topic-metadata">

**Author:** [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Replies:** 8\
**Last updated:** [July 30, 2026, 2:26am UTC](https://forum.choiceofgames.com/t/illegal-to-fall-out-of-a-choice-but-no-falling-out-is-present/178597 "2026-07-30T02:26:57Z")

</div>

\*fake\_choice \*hide\_reuse #An option Text Like This \*goto CommandCenter \*if (DebrisLaunch = 0) #I'll review the debris. More Text \*fake\_choice #Another o…

---

## [Screen readers and weird characters](https://forum.choiceofgames.com/t/screen-readers-and-weird-characters/178581)

<div class="topic-metadata">

**Author:** [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Replies:** 11\
**Last updated:** [July 29, 2026, 3:26pm UTC](https://forum.choiceofgames.com/t/screen-readers-and-weird-characters/178581 "2026-07-29T15:26:27Z")

</div>

Hi all. I just realised I’ve given some of my merfolk deliberately impossible names that are not supposed to be pronounceable (like ÇØœÿ§∂) but I just had a thought that I don’t know what screen readers will do with them…

---

## [Nested choices help](https://forum.choiceofgames.com/t/nested-choices-help/178549)

<div class="topic-metadata">

**Author:** [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Replies:** 13\
**Last updated:** [July 28, 2026, 1:44pm UTC](https://forum.choiceofgames.com/t/nested-choices-help/178549 "2026-07-28T13:44:28Z")

</div>

I haven’t written this section of code, because I’m not sure how to and I’ve been mulling it over for about two hours now. I’ll try to explain what I intend to do as best as I can. I need a \*fake\_choice to go into a nes…

---

## [I have no idea what this bug is caused by](https://forum.choiceofgames.com/t/i-have-no-idea-what-this-bug-is-caused-by/178543)

<div class="topic-metadata">

**Author:** [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Replies:** 14\
**Last updated:** [July 27, 2026, 8:36am UTC](https://forum.choiceofgames.com/t/i-have-no-idea-what-this-bug-is-caused-by/178543 "2026-07-27T08:36:44Z")

</div>

New issue: Getting a new error message. c1 line 1912: Invalid option; conflicts with option ‘UNDER CONSTRUCTION’ on line 1907 Whatever it is, there is no option for ‘UNDER CONSTRUCTION’ on line 1907. \*label VoktirReli…

---

## [\*if with a choice](https://forum.choiceofgames.com/t/if-with-a-choice/178537)

<div class="topic-metadata">

**Author:** [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Replies:** 23\
**Last updated:** [July 26, 2026, 1:11pm UTC](https://forum.choiceofgames.com/t/if-with-a-choice/178537 "2026-07-26T13:11:34Z")

</div>

I’m having trouble with… The error I’m getting is:… My code looks like this: \*fake\_choice \*if ((LangNisai = 1) and (Nisai =\< 3)) and (Sexuality != 4) and (Spoken = 0)) \*hide\_reuse #"Sings with Winds, you find me…

---

## [Can't get \*if statement to hide/reveal the associated #choice](https://forum.choiceofgames.com/t/cant-get-if-statement-to-hide-reveal-the-associated-choice/178533)

<div class="topic-metadata">

**Author:** [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Replies:** 4\
**Last updated:** [July 25, 2026, 11:14pm UTC](https://forum.choiceofgames.com/t/cant-get-if-statement-to-hide-reveal-the-associated-choice/178533 "2026-07-25T23:14:35Z")

</div>

It’s telling me there’s an invalid indent and a few other errors since I changed the code to try and get it to function properly. My code looks like this: \*fake\_choice \*hide\_reuse #I'll go and meet Anja. She has to …

---

## [Restoring checkpoints from the stats screen](https://forum.choiceofgames.com/t/restoring-checkpoints-from-the-stats-screen/176741)

<div class="topic-metadata">

**Author:** [@WaveHarvest](https://forum.choiceofgames.com/u/WaveHarvest)\
**Replies:** 15\
**Last updated:** [July 4, 2026, 4:32pm UTC](https://forum.choiceofgames.com/t/restoring-checkpoints-from-the-stats-screen/176741 "2026-07-04T16:32:06Z")

</div>

Hi everyone! I’ve recently been playing around with making some test games and ran into some issues with the checkpoint system. If you use restore\_checkpoint from the stats screen everything works as it should at first,…

---

## [Is there a way to use hover-over text in ChoiceScript?](https://forum.choiceofgames.com/t/is-there-a-way-to-use-hover-over-text-in-choicescript/178176)

<div class="topic-metadata">

**Author:** [@gracierocket](https://forum.choiceofgames.com/u/gracierocket)\
**Replies:** 4\
**Last updated:** [June 28, 2026, 2:23pm UTC](https://forum.choiceofgames.com/t/is-there-a-way-to-use-hover-over-text-in-choicescript/178176 "2026-06-28T14:23:10Z")

</div>

Hi all, Does anyone know of a way to include hover-over text over words in ChoiceScript? Someone has asked for a glossary of the nautical terms in my game, and I thought it might be nice to just press on the word to ge…

---

## [allow\_reuse limited attempts?](https://forum.choiceofgames.com/t/allow-reuse-limited-attempts/178171)

<div class="topic-metadata">

**Author:** [@setsunakutemo](https://forum.choiceofgames.com/u/setsunakutemo)\
**Replies:** 2\
**Last updated:** [June 27, 2026, 9:46pm UTC](https://forum.choiceofgames.com/t/allow-reuse-limited-attempts/178171 "2026-06-27T21:46:26Z")

</div>

Is there a way that allows only a specific number of reusable choices? I was reading the KB but didn’t find anything other than just how to implement disable & reuse. What I’m thinking: \*label friendTexts \*hide\_reuse …

---

## [Is there a way to set parameters for a numerical variable?](https://forum.choiceofgames.com/t/is-there-a-way-to-set-parameters-for-a-numerical-variable/178041)

<div class="topic-metadata">

**Author:** [@gracierocket](https://forum.choiceofgames.com/u/gracierocket)\
**Replies:** 12\
**Last updated:** [June 22, 2026, 10:58am UTC](https://forum.choiceofgames.com/t/is-there-a-way-to-set-parameters-for-a-numerical-variable/178041 "2026-06-22T10:58:55Z")

</div>

Hi all, I’ve just introduced a minor character who has a lot of power, but is only in the game for like two chapters. Instead of giving em a proper percentage relationship score, I decided to just assign a 1, 2, or 3 fo…

---

## [Problems with indents](https://forum.choiceofgames.com/t/problems-with-indents/177600)

<div class="topic-metadata">

**Author:** [@OwletNest](https://forum.choiceofgames.com/u/OwletNest)\
**Replies:** 8\
**Last updated:** [May 31, 2026, 1:18am UTC](https://forum.choiceofgames.com/t/problems-with-indents/177600 "2026-05-31T01:18:21Z")

</div>

I’m having trouble with indenting. The way I got into this is strange, but basically, I have installed a version of Choicescript IDE, forgetting that it is 1.0 v and when it started up there was a pop-up that asked to st…

---

## [I haven't even started and I'm running into errors with the server](https://forum.choiceofgames.com/t/i-havent-even-started-and-im-running-into-errors-with-the-server/177570)

<div class="topic-metadata">

**Author:** [@Brodicus](https://forum.choiceofgames.com/u/Brodicus)\
**Replies:** 7\
**Last updated:** [May 29, 2026, 9:49am UTC](https://forum.choiceofgames.com/t/i-havent-even-started-and-im-running-into-errors-with-the-server/177570 "2026-05-29T09:49:31Z")

</div>

Same as title. I followed the instructions in the ‘Introduction to ChoiceScript’ section on the main site, and I click on run-server.batch. It opens a popup and then throws up this: The code section looks like this: …

---

## [Newest ChoiceScript Template is Broken!](https://forum.choiceofgames.com/t/newest-choicescript-template-is-broken/177232)

<div class="topic-metadata">

**Author:** [@heartbeet](https://forum.choiceofgames.com/u/heartbeet)\
**Replies:** 0\
**Last updated:** [May 6, 2026, 4:44am UTC](https://forum.choiceofgames.com/t/newest-choicescript-template-is-broken/177232 "2026-05-06T04:44:26Z")

</div>

First off, I just wanted to say I could not choose the correct category because it kept crashing my internet browser. (IDK why) The newest code in serve.js: const requestHandler = (request, response) =\> { //console.l…

---

## [Making my own game](https://forum.choiceofgames.com/t/making-my-own-game/177394)

<div class="topic-metadata">

**Author:** [@Justin\_Davis2](https://forum.choiceofgames.com/u/Justin_Davis2)\
**Replies:** 7\
**Last updated:** [May 18, 2026, 4:06am UTC](https://forum.choiceofgames.com/t/making-my-own-game/177394 "2026-05-18T04:06:40Z")

</div>

So I downloaded node like it said then download the choice files and extracted them like it said but when I go to start server I keep getting this error I tried to change the name to what it was looking for and it still …

---

## [Sets and ifs](https://forum.choiceofgames.com/t/sets-and-ifs/177305)

<div class="topic-metadata">

**Author:** [@MeowMeow422](https://forum.choiceofgames.com/u/MeowMeow422)\
**Replies:** 6\
**Last updated:** [May 11, 2026, 2:52pm UTC](https://forum.choiceofgames.com/t/sets-and-ifs/177305 "2026-05-11T14:52:13Z")

</div>

Okay so I know how the \*if variables work when true or false or the ones with percentage. But my question is the variable with names. Examples \*fake\_choice #1 \*set meow "one" #2 \*set meow …

---

## [Losing my mind over "It is illegal to fall out of a \*choice statement; you must \*goto or \*finish before the end of the indented block."](https://forum.choiceofgames.com/t/losing-my-mind-over-it-is-illegal-to-fall-out-of-a-choice-statement-you-must-goto-or-finish-before-the-end-of-the-indented-block/177262)

<div class="topic-metadata">

**Author:** [@sarahlily](https://forum.choiceofgames.com/u/sarahlily)\
**Replies:** 13\
**Last updated:** [May 8, 2026, 5:31pm UTC](https://forum.choiceofgames.com/t/losing-my-mind-over-it-is-illegal-to-fall-out-of-a-choice-statement-you-must-goto-or-finish-before-the-end-of-the-indented-block/177262 "2026-05-08T17:31:56Z")

</div>

Okay guys. I started teaching myself ChoiceScript ONE DAY AGO so give me a break if it sucks and is super convoluted. I just need help figuring out if/else/elseif and the error message “line 67 of party: It is illegal to…

---

## [Inserting spaces, or invisible character " "](https://forum.choiceofgames.com/t/inserting-spaces-or-invisible-character/23544)

<div class="topic-metadata">

**Author:** [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Replies:** 12\
**Last updated:** [April 26, 2026, 8:07am UTC](https://forum.choiceofgames.com/t/inserting-spaces-or-invisible-character/23544 "2026-04-26T08:07:55Z")

</div>

Yet another simple question. How can I add multiple spaces into a single line ? Should I assign a variable with " " and call the variable to create spaces? Or tab character? I would like to see my stats screen tidy …

[Next page](https://forum.choiceofgames.com/c/game-development/choicescript-help/44.md?page=1)
