well i am very confused with this but i am determined to finish atleast one game.
things i cant figure out:
how to add a new scene and where it gets placed
how to make an option add stats
how to give a name choice
how to have different options send to different scenes
everything else
yes i have but i dont like the examples or the way they explain things. I still cant figure out how to have a different option go to a different chapter
I want each finish to go to a different scene, but i cant figure out how
here is my mygame
nav = new SceneNavigator([
----“startup”
----,“militarybrothers”
----,“militaryfriend”
----,“militaryrival”
----,“militaryalone”
----,“variables”
----,“gosub”
----,“ending”
----,“death”
Ah. You’re doing the nav right. But to move between chapters, you should add this command:
*finish
If you still have problems with it, or if there are choices leading to different chapters, add this:
*goto_scene
So it would look like this:
*finish
*goto_scene militarybrothers
To make an option add to stats, you can use either use the + or equal signs. For example, you have a Fun stat. If you want to set Fun to 3, you can either use the equal:
*set fun = 3
Or addition:
*set fun +3
To give a name choice, make sure you first have a name stat. Let’s call the stat “name”.
*input_text name
In your mygame.js file, you will see the lines “stats = {” and “debugStats = {”
Under those two, add “name:” and a default value. If you wish to leave the default value as a blank, you can add this behind: " "
That’s a pair of quotation marks with a space in between. I’m not sure if it has any effect, but make sure the arrangement of the values under stats and debugStats are the same just in case.
Try removing the *finish command. That is telling it “this is the end of this scene, move on to the next one in the list” (militaryrival, by the looks?) so your *goto_scene line would not even be reached.