Okay three thing I see in mygame.js that haven’t been mentioned (as far as I can see):
In the SceneNavigator: Each of the scenes needs to be in “quotation marks”.
After the mother scene, you have another line with a comma. You don’t need that.
debugStats = {stats}: The {} around stats should not be there.
(Not sure if the last two break anything, but I know that the first one is necessary.)
@Rob *create still does work. It’s sorta ‘legacy code’ in that it’s old and doesn’t really need to be used, but isn’t being taken out.
@peglegpenguin Couple of things, try to stay away from negative numbers in ChoiceScript. It handles them fine, but inputting them is enough of a pain to at least consider alternatives as being a better choice. Also, CS can convert numbers held in a string to standard variables, so long as there are no non-numeric characters in the string. “2”=2.
EDIT: There is an extra space in front of your name variable in mygame.js.
The two lines after opposed_pair needs to be indented.
I just copied your code into a game file of my own, made the changes suggested above, and ran it. It works fine. Also, I apologize about what I said about the *line_break command - it’s a real command… I probably did something wrong when I tested it.
Anyway, the changes I made were as follows:
Put quotation marks around “startup” and “mother” in the mygame.js
Removed the comma under “mother” in mygame.js
Changed {stats}; to stats (Got rid of braces { and } and semicolon in mygame.js
Changed agilit to agility in stats screen
Indentation could not be copied from the forum (try to copy it and paste it into a text file, you’ll see it removes the indentation) so I went through and indented it. I do not know if you had any errors in indentation. As Reapora said, you need more indentation for the purity and evilness lines under the opposed_pair line. Texts, percents, and opposed_pairs belong to/are nested inside of *stat_chart, and the purity/evilness lines belong to/are nested inside of *opposed_pair evil. As a result, you need to give purity and evilness the same indentation as what own them, plus some more indentation to show that they are even lower on the code totem pole. Similarly, the the choices (the things that start with #s) belong to *choice, and the results of choosing a choices (in this case, the text below the choice and the *finish below that) belong to the choices. Since the results belong to the choices, they get belongs-to-someone-who-belongs-to-someone indentation, which is more than belongs-to-someone indentation.
If these changes don’t work, please paste your changed code as well as the error messages that you get when trying to run the game.
this:unable to get the value of the property ‘set starting stats clone’: object is null or undefined
and this: invalid character happen whene i start it and this happens at the stats page.
unable to get the value of the property ‘scene’ object is null or undefined
`
It was a dark and stormy night, two figures where running under the rain. Running and running, the sound of metal and soldiers could be heard in the distance.
*line_break
They hid withing a cave and hid theire till their pursuers left. A fash of lighting revealed that one of them was a…
*choice
#…human male
*set fathers_race “human”
*finish
#…vampire male
*set fathers_race “vampire”
*finish
#…werewolfe male
*set fathers_race “Werewolfe”
*finish
#…draconian male
*set fathers_race “draconian”
*finish
I have no idea what’s wrong. Do you have your files in the right place? Your game folder should have the index, a folder called “scenes”, and a mygame.js. Your scenes folder should have a startup.txt and a choicescript_stats.txt. Your game folder should be in the folder called “web”.
Yup. Mind pasting the current version? If nobody can find anything wrong with it, then I’d suggest re-downloading choicescript, and pasting your code into the second choicescript’s mygame.js and startup.txt. I think someone else had an issue like this before, and that seemed to fix it. I really don’t know what the issue is, but it might be choicescript being a big glitchy jerk. If that doesn’t fix it, then… I dunno, indentation might be the issue. That could explain the weird error messages - it might be complaining that something doesn’t exist because it is too stupid to realize that it does exist, but with an extra space before it.
Hi, I need help on making a game on Choice Script, it all seems pretty complicated at the moment. I was wondering if someone could do a step by step on making a game on Choice Script or even making a video clip and posting it on YouTube, it would be a big help because I simply can’t do it! There’s so many files, I don’t get how to ‘extract a zip file’ or something. Thanks.
@Bookworm Extracting a .zip file is not so much a specific ChoiceScript skill as a basic computer literacy skill. All you have to do is right click on the file and click extract. Your computer most likely came with WinZip pre-installed, that’ll handle the rest for you. http://www.choiceofgames.com/make-your-own-games/choicescript-intro/ contains all the information you need to create a game. It’s step by step, just like you asked for. I trust you know how to copy and paste an URL into your address bar?
Yes I did find the extract thing but it said extract all so I assumed that wasn’t it, backed up and then clicked on the same thing and it didn’t even have extract, typed choice of games search box in libraries and this black screen came up, so I tried to type something and it just made a beep, it had some random letters. So backed off it because I was confused, clicked back on and it flashed off, tried again and it did the same. I think its me that is doing something wrong so I’m going to just leave it!
@Bookworm While I don’t think you need actual programming skill to write simple ChoiceScript games (though it definitely helps) I do believe that you at least need to be comfortable with your computer folders and files and relatively common stuff like unzipping. By the sounds of it, you’ve probably made the sensible decision–at least until someone writes a thorough guide from start or finish (or ChoiceScript gets a web-based editor / creator; whichever comes first).