New and need assistance

Unnatural had choices in startup and that’s a released Hosted Game. (It’s mainly a menu with the story starting in the next file but it shouldn’t cause an error having choices)


I just said that because he had the same block of text in 2 .txt files. Kinda confusing :S


I deleted the folder I named scenesalone and dumped the 3 text documents I made in the scenes folder

the 3 scenes I made are called startup1, choicescript_stats1, and dream

this is the dream text document and this

is the startup1 text document

Is there some other file I have to go to, do I have to make a index HTML document separate from the one that they give you when you’re trying to learn how to use it.

it keeps saying I need to verify scene file so im assuming that even though I have the scenes down somehow it doesn’t recognize its existence so after im done using notepad to write a simple scene am I suppose to do anything special with those new text documents I added

Yeah, you need to delete all the .txt files that came with the folder. I guess startup1, choicescript_stats1, and dream are the ones you made, right?

You can delete everything else (animal, choicescript_stats, startup, death, gosub, variables, ending) or just move them.

Rename startup1 to startup, and choicescript_stats1 to choicescript_stats.

In the end, your scenes folder will have

startup (renamed startup1 file)
choicescript_stats (renamed choicescript_stats1)

I hope that helps.


how do I make a HTML index document that when I click on it, it will go straight to my narrative game or if its not to
much trouble can you give me a step by step instruction on how you do things starting from completing scene to where to put it to turn it into the narrative game

You need to compile your game. This link might help you with it.

Another way of compiling your game would be by using the CDE (Choicescript tool for making games), but I would have to post a lot of screenshots showing you how to do it, and it is pretty late where I live, so I’m going to have to do that tomorrow :sweat_smile:

But here is the CDE thread if you want to take a look at it.

Question: does opening the index html that came with the other files work for testing your game?


nevermind checked out link you gave me

Thanks for your help and your patience in answering my questions as of right now I believe I understand how this works the problem I didn’t click compile nor did I download firefox I did both now.

again thanks for your help

No problem, good luck with Choicescript :thumbsup:

take what’s in startup1.txt and stick it in startup.txt you should only have startup.txt


im typing in

percent stamina

is there a way to turn the percent bar from red to green


This is what CJW said about it:

The example game you download with the CS code from GitHub still starts the game with choices in startup.txt.

I understand the bookkeeping convenience of reserving startup for just your scenes, variables, achievements and other admin, but it’s not necessary – I can scroll to the top of startup as readily as I can open a new .txt file. :slight_smile:

1 Like

Actually, I have to disagree (quite a novelty for me where your remarks are concerned, to be honest) as I would always recommend that new users treat startup as purely an “initializing” file, but allow me to expand on my reasons for doing so.

In addition to the basic necessities not permissible in any other CS file (scene list, declaring permanent variables, achievements), if the actual story scripting is properly confined to actual Scene files then the “bottom” of the startup file is the ideal place to easily use for practical purposes. This could range from a whole, bespoke ‘Alpha Testing’ system using both extra / duplicate variables and specific code for this purpose (e.g. to just being an easy place to experiment with and test new code, because when testing locally it will then always run before it launches into the story proper (i.e. before the first Scene file is loaded).

That considerable practical benefit aside, however, the biggest problem for a new author is getting to grips with CS as a whole. The original mygame.js file had one big plus for ease of newcomer understanding (its sole purpose was to initialize the game), and one big negative (it used a completely different format - JavaScript). The startup file has thankfully gotten rid of the latter problem, but instead now somewhat confuses the issue for some people where the former is concerned - not helped (IMO) by the example game’s startup itself immediately launching into story scripting.

What we often fail to consider / remember, is that a non-programmer newcomer to CS is still struggling to come to terms with all these files at the same time as trying to learn coding and elements of basic game design suitable for a Choice Game. The light bulb first clicks on with their understanding that only the \scenes folder is initially of any concern. It helps to then understand that within that folder there are three distinct file types - startup for initializing your game, choicescript_stats for the Stats screen, and multiple Scene files for your actual story scripting. That is certainly the easiest way to explain it, and that is often the easiest and quickest way to actually understand it.

We really should not be confusing the issue. The sooner it clicks for a newcomer, the better, and the more clearly it’s defined and explained in this way, the sooner it will all click into place for more of them.


@dfabulich: what do you think about revising the example game to encourage the use of startup.txt solely for variable creation etc rather than the initial scene? @Vendetta makes a good point about the benefit of clarity for many ChoiceScript learners; and I can’t see how it would inconvenience anyone who nonetheless decides to start the story in their startup file.


you know how when you go to the stats screen and you see a relationship bar but it says unknown then when you get far enough into the story that same relationship bar changes from unknown into a persons name.

what is the code to do that

In startup.txt

*create know_name false

Then in your choicescript_stats.txt, above the stat bar:

*if know_name = false
*if know_name = true

or the same thing, but shorter:

*if not(know_name)
*if know_name

And in the game where you meet John:

*set know_name true
1 Like


I did what you said

*create name_girl false

*if not(name_girl)
*if name_girl

but when I go to stats screen this keep happening

the title says false when I want it to show unknown until I make it true that its lorna and the percent bar is the same but it shows false as a percentage and title name_girl when it should be unknown until proven true its lorna

Ah, I didn’t realize you also wanted it to show up as the title inside the bar. (Should have been obvious, but I haven’t used this myself.)

Can you post the relevant scenes or a link to your scenes folder?




is this good

Cool. I think the quickest fix is to dump “name_girl.” Instead, have a “name_lorna” or “lorna” stat, which is a string, not a Boolean.

*create lorna "Unknown"

*label chart2
  text bond_text Bond
  percent lorna

and then

*set lorna "Lorna"