I made a new folder under the scenes folder that already came with the download, I named this folder scenesalone and I created my personal startup and choicescript_stats in that folder. I ran into some error messages while doing this but been able to resolve most of them then I got stuck on what to do next after I finished the startup scene(only creating one scene to play around with it to get a better understanding of how it works hands on). so I found out about Basic ChoiceScript Editor and assumed this to be my next step and here is what I wrote in that editor
*title Alone
*author Hazard
nav = new SceneNavigator([
name:âscenesaloneâ
âstartupâ
]);
*create sanity 100
*create light 50
You hear a voice calling out to you, ignoring the voice you fall
into a deep sleep. What are you dreaming about?
*choice #A dark cave
You walk aimlessly in this dark cave, occasionally you bump into a
wall or two. Bumping into another wall you look left and see a small
orange light, you look right and see nothing but darkness. If you wished
you could head towards the orange light but it may not be a simple walk
over there.
On the other hand you could forget the orange light and turn right into the
darkness and try and find your way out.
So which will it be?
*choice
#Head towards the small, orange light.
You see that it's a torch.
*finish
#Turn right into the dark path and hope you find your way out.
You turn right and start walking. As you walk you instantly feel yourself
falling down.
*finish
so when I go to click âtry itâ(with debug checked) an error message pops up that has got me stuck and was hoping someone could help me
Error message: Unable to set property âinnerHTMLâ of undefined or null reference.
You hear a voice calling out to you, ignoring the voice you fall
into a deep sleep. What are you dreaming about?
*choice
#A dark cave
You walk aimlessly in this dark cave, occasionally you bump into a
wall or two. Bumping into another wall you look left and see a small
orange light, you look right and see nothing but darkness. If you wished
you could head towards the orange light but it may not be a simple walk
over there.
On the other hand you could forget the orange light and turn right into the
darkness and try and find your way out.
So which will it be?
*choice
#Head towards the small, orange light.
You see that it's a torch.
*finish
#Turn right into the dark path and hope you find your way out.
You turn right and start walking. As you walk you instantly feel yourself
falling down.
*finish
This is what is generating the errors:
nav = new SceneNavigator([
name:'scenesalone'
"startup"
]);
You hear a voice calling out to you, ignoring the voice you fall
into a deep sleep. What are you dreaming about?
*choice #A dark cave
You walk aimlessly in this dark cave, occasionally you bump into a
wall or two. Bumping into another wall you look left and see a small
orange light, you look right and see nothing but darkness. If you wished
you could head towards the orange light but it may not be a simple walk
over there.
On the other hand you could forget the orange light and turn right into the
darkness and try and find your way out.
So which will it be?
*choice
#Head towards the small, orange light.
You see that it's a torch.
*finish
#Turn right into the dark path and hope you find your way out.
You turn right and start walking. As you walk you instantly feel yourself
falling down.
*finish
im getting an error message that says (object doesnât support property or method âverifySceneFileâ)
how do I verify scene file
The problem is that you have choices in the startup file. That file should only have *title, *autor, *scene_list, *create, and *finish.
You could simply remove this part from the startup:
You hear a voice calling out to you, ignoring the voice you fall
into a deep sleep. What are you dreaming about?
*choice
#A dark cave
You walk aimlessly in this dark cave, occasionally you bump into a
wall or two. Bumping into another wall you look left and see a small
orange light, you look right and see nothing but darkness. If you wished
you could head towards the orange light but it may not be a simple walk
over there.
On the other hand you could forget the orange light and turn right into the
darkness and try and find your way out.
So which will it be?
*choice
#Head towards the small, orange light.
You see that it's a torch.
*finish
#Turn right into the dark path and hope you find your way out.
You turn right and start walking. As you walk you instantly feel yourself
falling down.
*finish
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)
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
@Hazard
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.
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
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
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.
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.